|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.cc.framework.common.CheckState
Defines check states used by the common controls framework
Field Summary | |
private static CheckState[] |
ALL
Collection with all kinds of check states |
static CheckState |
CHECKED
CheckState: CHECKED (1 = The object is checked) |
private int |
intValue
Unique Identifier / key / type |
static int |
N_CHECKED
int value of CHECKED (1 = The object is checked) |
static int |
N_NONE
int value of NONE (-2 = Don't show any checkboxes) |
static int |
N_UNCHECKED
int value of UNCHECKED (0 = The object is not checked) |
static int |
N_UNDEFINED
int value of UNDEFINED (2 = The check sate is undefined, checked gray) |
static int |
N_UNSELECTABLE
int value of UNSELECTABLE (-1 = The object is not selectable, unchecked gray) |
static CheckState |
NONE
CheckState: NONE (-2 = Don't show any checkboxes) |
private static long |
serialVersionUID
Serial Version UID |
private java.lang.String |
strValue
Display value / nice name |
static CheckState |
UNCHECKED
CheckState: UNCHECKED (0 = The object is not checked) |
static CheckState |
UNDEFINED
CheckState: UNDEFINED (2 = The check sate is undefined) (checked gray) |
static CheckState |
UNSELECTABLE
CheckState: UNSELECTABLE (-1 = The object is not selectable) (unchecked gray) |
Constructor Summary | |
private |
CheckState(int key,
java.lang.String value)
Constructor |
Method Summary | |
SimpleEnumType2[] |
elements()
Returns an array with all elements of the enumeration |
boolean |
equals(int other)
Compares this check state to the specified integer. |
boolean |
equals(java.lang.Object obj)
Compares this check state to the specified object. |
java.lang.String |
getKey()
Returns the internal key |
java.lang.String |
getValue()
Returns the internal value |
int |
hashCode()
|
int |
intValue()
|
static CheckState |
parse(java.lang.Object obj)
Creates for the argument an Object of type CheckState |
static CheckState |
parseInt(int i)
Creates for the argument an Object of type CheckState |
int |
toInt()
Deprecated. please use intValue() instead |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final long serialVersionUID
public static final int N_NONE
public static final int N_UNSELECTABLE
public static final int N_UNCHECKED
public static final int N_CHECKED
public static final int N_UNDEFINED
public static final CheckState NONE
public static final CheckState UNSELECTABLE
public static final CheckState UNCHECKED
public static final CheckState CHECKED
public static final CheckState UNDEFINED
private int intValue
private java.lang.String strValue
private static final CheckState[] ALL
Constructor Detail |
private CheckState(int key, java.lang.String value)
key
- The keyvalue
- The value / nice nameMethod Detail |
public SimpleEnumType2[] elements()
SimpleEnumType2
elements
in interface SimpleEnumType2
SimpleEnumType2.elements()
public java.lang.String getKey()
SimpleEnumType2
getKey
in interface SimpleEnumType2
SimpleEnumType2.getKey()
public java.lang.String getValue()
SimpleEnumType2
getValue
in interface SimpleEnumType2
SimpleEnumType2.getValue()
public boolean equals(java.lang.Object obj)
obj
- The object to compare this CheckState
against.
true
if the check states
are equal;
false
otherwise.public int hashCode()
Object.hashCode()
public boolean equals(int other)
other
- The integer to compare this CheckState
against.
true
if the check states
are equal;
false
otherwise.public static CheckState parseInt(int i)
i
- Integer to parse
public static CheckState parse(java.lang.Object obj)
obj
- Object to parse
public int toInt()
public int intValue()
public java.lang.String toString()
Object.toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |