org.fife.rtext
Class StoreKeeper

java.lang.Object
  extended by org.fife.rtext.StoreKeeper

public class StoreKeeper
extends java.lang.Object

Keeps track of all org.fife.rtext.RText instances (windows) that are open, and provides an interface to update their Look and Feels together.

Version:
1.0
Author:
Robert Futrell

Constructor Summary
StoreKeeper()
           
 
Method Summary
static void addRTextInstance(RText rtext)
          Notes that a new RText window is open.
static int getInstanceCount()
          Gets the number of RText instances (windows) that are currently open.
static void removeRTextInstance(RText rtext)
          Removes an RText instance.
static void updateLookAndFeels(javax.swing.LookAndFeel lnf)
          Updates the Look and Feel of all RText instances.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StoreKeeper

public StoreKeeper()
Method Detail

addRTextInstance

public static void addRTextInstance(RText rtext)
Notes that a new RText window is open.

Parameters:
rtext - The RText instance to remember.

getInstanceCount

public static int getInstanceCount()
Gets the number of RText instances (windows) that are currently open.

Returns:
The number of RText instances open.

removeRTextInstance

public static void removeRTextInstance(RText rtext)
Removes an RText instance.

Parameters:
rtext - The RText to remove.
Throws:
java.lang.NullPointerException - If no RText instances have been remembered yet.

updateLookAndFeels

public static void updateLookAndFeels(javax.swing.LookAndFeel lnf)
Updates the Look and Feel of all RText instances.

Parameters:
lnf - The Look and Feel to change to.