com.borland.primetime.ide
Class KeymapManager.UpdateTimer

java.lang.Object
  |
  +--javax.swing.Timer
        |
        +--com.borland.primetime.ide.KeymapManager.UpdateTimer
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
KeymapManager

protected static class KeymapManager.UpdateTimer
extends javax.swing.Timer

Helper class whose main task is to call the "update" function of all the UpdateableActions that were registered.

See Also:
Serialized Form

Fields inherited from class javax.swing.Timer
listenerList
 
Constructor Summary
KeymapManager.UpdateTimer(int delay)
          Create a new instance.
 
Method Summary
 void addAction(javax.swing.Action a)
          Register an action so its update function will get called at regular times, and start the timer if this is the first action to be registered.
 void clearActions()
          Clear the cache of registered actions and stop the timer.
 int getActionCount()
          How many actions are currently registered.
 void removeAction(javax.swing.Action a)
          Un-register an action that was previously registered through addAction, and stop the timer if there are no more registered actions.
 
Methods inherited from class javax.swing.Timer
addActionListener, fireActionPerformed, getDelay, getInitialDelay, getListeners, getLogTimers, isCoalesce, isRepeats, isRunning, removeActionListener, restart, setCoalesce, setDelay, setInitialDelay, setLogTimers, setRepeats, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeymapManager.UpdateTimer

public KeymapManager.UpdateTimer(int delay)
Create a new instance.
Parameters:
delay - The time to wait inbetween updates.
Method Detail

addAction

public void addAction(javax.swing.Action a)
Register an action so its update function will get called at regular times, and start the timer if this is the first action to be registered. Only objects derived from UpdateableAction will have their update action called.
Parameters:
a - The action to be registered.

removeAction

public void removeAction(javax.swing.Action a)
Un-register an action that was previously registered through addAction, and stop the timer if there are no more registered actions.
Parameters:
a - The action to be unregistered.

clearActions

public void clearActions()
Clear the cache of registered actions and stop the timer.

getActionCount

public int getActionCount()
How many actions are currently registered.
Returns:
The number of actions registered.