|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.cc.framework.ui.MenuStateType
Enumeration for the states of menu items
Field Summary | |
private static MenuStateType[] |
ALL
Collection of all elements (menu states) |
static MenuStateType |
CHECKED
state: CHECKED |
static MenuStateType |
DISABLED
state: DISABLED |
static MenuStateType |
ENABLED
state: ENABLED |
static MenuStateType |
GRAYED
state: GRAYED |
static MenuStateType |
INVISIBLE
state: INVISIBLE |
private int |
mask
State bit mask |
static MenuStateType |
POPUP
state: POPUP |
static MenuStateType |
SELECTED
state: SELECTED |
static MenuStateType |
SEPARATOR
state: SEPARATOR |
private static long |
serialVersionUID
Serial Version UID |
private java.lang.String |
type
The internal type |
static MenuStateType |
UNCHECKED
state: UNCHECKED |
static MenuStateType |
UNSELECTED
state: UNSELECTED |
private int |
value
State value |
static MenuStateType |
VISIBLE
state: VISIBLE |
Constructor Summary | |
MenuStateType(java.lang.String type,
int mask,
int value)
Constructor for MenuStateType |
Method Summary | |
boolean |
equals(java.lang.Object obj)
Compares this type to the specified object. |
int |
hashCode()
|
static MenuStateType |
parse(java.lang.String code)
Creates for the argument an object of type MenuStateType |
static int |
parseMask(java.lang.String stateList)
Converts the semicolon delimited list of menu states into a state mask |
java.lang.String |
toString()
Returns a string representation for the object |
static java.lang.String |
toString(int state,
java.lang.String prefix,
java.lang.String separator)
Creates a separated list for the given menu state |
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 MenuStateType CHECKED
public static final MenuStateType UNCHECKED
public static final MenuStateType ENABLED
public static final MenuStateType DISABLED
public static final MenuStateType VISIBLE
public static final MenuStateType INVISIBLE
public static final MenuStateType GRAYED
public static final MenuStateType POPUP
public static final MenuStateType SEPARATOR
public static final MenuStateType SELECTED
public static final MenuStateType UNSELECTED
private java.lang.String type
private int mask
private int value
private static final MenuStateType[] ALL
Constructor Detail |
public MenuStateType(java.lang.String type, int mask, int value)
type
- The menu statemask
- the value's bit maskvalue
- the valueMethod Detail |
public boolean equals(java.lang.Object obj)
obj
- The object to compare this MenuStateType
object
against.
true
if the internal types are equal;
false
otherwise.public int hashCode()
Object.hashCode()
public static int parseMask(java.lang.String stateList)
stateList
- semicolon delimited list of menu states
public static MenuStateType parse(java.lang.String code)
code
- String to parse
public static java.lang.String toString(int state, java.lang.String prefix, java.lang.String separator)
state
- the state to processprefix
- optional state prefixseparator
- separator
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |