public class State
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static State |
construct(int state)
Serializes a
State object;
should not be used directly. |
static State |
construct(java.lang.String val)
Serializes a
State object from a string |
boolean |
equals(java.lang.Object right)
Compares state values.
|
int |
getState()
Used in serialization of a
State object; should not be used directly. |
static java.lang.String[] |
getStateNames() |
static java.lang.String[] |
getStateText()
Specifies the names used in the editing of the state setting; is a name array.
|
static State |
indeterminate()
Creates an
INDETERMINATE state object. |
boolean |
isIndeterminate()
Returns
true if this state represents an
INDETERMINATE state. |
boolean |
isNotSelected()
Returns
true if this state represents a NOT_SELECTED state. |
boolean |
isSelected()
Returns
true if this state represents a SELECTED state. |
static State |
notSelected()
Creates a
NOT_SELECTED state object. |
static State |
selected()
Creates a
SELECTED state object. |
java.lang.String |
toString()
Sets
toString to the value that this class represents. |
void |
updateState(int newState)
Updates the internal state setting appropriately.
|
public static State notSelected()
NOT_SELECTED state object.public boolean isNotSelected()
true if this state represents a NOT_SELECTED state.public static State selected()
SELECTED state object.public boolean isSelected()
true if this state represents a SELECTED state.public static State indeterminate()
INDETERMINATE state object.public boolean isIndeterminate()
true if this state represents an
INDETERMINATE state.public static State construct(int state)
State object;
should not be used directly.public static State construct(java.lang.String val)
State object from a stringval - public int getState()
State object; should not be used directly.public static java.lang.String[] getStateText()
public static java.lang.String[] getStateNames()
public void updateState(int newState)
public java.lang.String toString()
toString to the value that this class represents.toString in class java.lang.Objectpublic boolean equals(java.lang.Object right)
equals in class java.lang.Object