public class EnabledDisabledStates
extends java.lang.Object
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.Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
EnabledDisabledStates() |
public static final int ALWAYS_ENABLED
public static final int NEEDS_GRID
public static final int NEEDS_APP_WAITING
public static final int NEEDS_APP_RUNNING
public static final int NEEDS_GRID_AND_APP_WAITING
public static final int NEEDS_GRID_AND_APP_RUNNING
public static final int ALWAYS_DISABLED