iCMS.applet
Class GuiUpdater

java.lang.Object
  extended by iCMS.applet.GuiUpdater
All Implemented Interfaces:
Runnable

public class GuiUpdater
extends Object
implements Runnable

The GuiUpdater class is created to store events that need to be processed synchroniously with the AWT loop. The events are stored and excuted on a run the class should be invoked by SwingUtilities.invokeLater(updateGUI);

Version:
1.00
Author:
Chris Lukassen
 

Constructor Summary
GuiUpdater(DefaultListModel list, TokenTree tree, int maxListSize)
          Constructor
 
Method Summary
 void addStateChange(String token, String status)
          addStateChange adds a statechange when the time is right
 void addTrap(AdvancedTrapLine trap)
          addTrap adds a trap when the time is right
 void addTrap(TrapLine trap)
          addTrap adds a trap when the time is right
 void run()
          main loop, updates the list or tree if needed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GuiUpdater

public GuiUpdater(DefaultListModel list,
                  TokenTree tree,
                  int maxListSize)
Constructor

Parameters:
list - pointer to the applets traplist
tree - pointer to the applets tree
maxListSize - max size of the list
Method Detail

addTrap

public void addTrap(TrapLine trap)
addTrap adds a trap when the time is right

Parameters:
trap - the trap to be added

addTrap

public void addTrap(AdvancedTrapLine trap)
addTrap adds a trap when the time is right

Parameters:
trap - the trap to be added

addStateChange

public void addStateChange(String token,
                           String status)
addStateChange adds a statechange when the time is right

Parameters:
token - the token which has a state change
status - the new status

run

public void run()
main loop, updates the list or tree if needed

Specified by:
run in interface Runnable