edu.kzoo.grid.gui
Class EnabledDisabledStates

java.lang.Object
  |
  +--edu.kzoo.grid.gui.EnabledDisabledStates

public class EnabledDisabledStates
extends java.lang.Object

Grid GUI Support Package:
The EnabledDisabledStates class provides a set of constants describing possible criteria for graphical user interface components to be enabled or disabled. This class should be replaced with an enumerated type under Java 1.5.

Version:
29 July 2004
Author:
Alyce Brady

Field Summary
static int ALWAYS_DISABLED
          Indicates that a component should always be disabled.
static int ALWAYS_ENABLED
          Indicates that a component should always be enabled.
static int NEEDS_APP_RUNNING
          Indicates that a component should be enabled when the application is actively executing (responding to another button, for example) and disabled whenever the application is waiting for user input, as for a stop button.
static int NEEDS_APP_WAITING
          Indicates that a component should be enabled whenever the application is waiting for user input (regardless of whether the user interface's grid has been set) and disabled when the application is actively executing (responding to another button, for example).
static int NEEDS_GRID
          Indicates that a component should be enabled if the grid associated with the component's user interface is not null.
static int NEEDS_GRID_AND_APP_RUNNING
          Indicates that a component should be enabled when the grid has been set and the application is actively executing (responding to another button, for example).
static int NEEDS_GRID_AND_APP_WAITING
          Indicates that a component should be enabled whenever the grid has been set and the application is waiting for user input.
 
Constructor Summary
EnabledDisabledStates()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ALWAYS_ENABLED

public static final int ALWAYS_ENABLED
Indicates that a component should always be enabled.

See Also:
Constant Field Values

NEEDS_GRID

public static final int NEEDS_GRID
Indicates that a component should be enabled if the grid associated with the component's user interface is not null.

See Also:
Constant Field Values

NEEDS_APP_WAITING

public static final int NEEDS_APP_WAITING
Indicates that a component should be enabled whenever the application is waiting for user input (regardless of whether the user interface's grid has been set) and disabled when the application is actively executing (responding to another button, for example).

See Also:
Constant Field Values

NEEDS_APP_RUNNING

public static final int NEEDS_APP_RUNNING
Indicates that a component should be enabled when the application is actively executing (responding to another button, for example) and disabled whenever the application is waiting for user input, as for a stop button. The component's enabled/disabled status does not depend on whether the user interface's grid has been set.

See Also:
Constant Field Values

NEEDS_GRID_AND_APP_WAITING

public static final int NEEDS_GRID_AND_APP_WAITING
Indicates that a component should be enabled whenever the grid has been set and the application is waiting for user input. If the grid has not been set, or if the application is actively executing (responding to another button, for example), the component should be disabled.

See Also:
Constant Field Values

NEEDS_GRID_AND_APP_RUNNING

public static final int NEEDS_GRID_AND_APP_RUNNING
Indicates that a component should be enabled when the grid has been set and the application is actively executing (responding to another button, for example). If the grid has not been set, or if the application is waiting for user input, the component should be disabled.

See Also:
Constant Field Values

ALWAYS_DISABLED

public static final int ALWAYS_DISABLED
Indicates that a component should always be disabled.

See Also:
Constant Field Values
Constructor Detail

EnabledDisabledStates

public EnabledDisabledStates()