MDACC
Biostatistics

org.mdanderson.biostat.util
Class AbstractStateMonitor

java.lang.Object
  extended byorg.mdanderson.biostat.util.AbstractStateMonitor

public abstract class AbstractStateMonitor
extends Object

AbstractStateMonitor - Responsible for enabling or disabling GUI components whenever application state changes.


Field Summary
protected  Map active
          Maps states to components
protected  Map components
          Maps components to activity count
protected  List states
          Currently active states
 
Constructor Summary
AbstractStateMonitor()
          Class constructor
 
Method Summary
 void activate(Component component, Object state)
          Returns the data that was checked
 void addState(Object state)
          Adds a state to the list of monitored states and updates :TODO: , if it doesn't already exist
 void removeState(Object state)
          Removes a state from the list of monitored states, :TODO: if it doesn't already exist
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

states

protected List states
Currently active states


active

protected Map active
Maps states to components


components

protected Map components
Maps components to activity count

Constructor Detail

AbstractStateMonitor

public AbstractStateMonitor()
Class constructor

Method Detail

activate

public void activate(Component component,
                     Object state)
Returns the data that was checked

Returns:
data that was checked

addState

public void addState(Object state)
Adds a state to the list of monitored states and updates :TODO: , if it doesn't already exist

Parameters:
state - object representing state information

removeState

public void removeState(Object state)
Removes a state from the list of monitored states, :TODO: if it doesn't already exist

Parameters:
state - object representing state information

MDACC
Biostatistics

Copyright © 2002 M.D. Anderson Cancer Center. All Rights Reserved.