|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.cc.framework.common.ButtonState
The different states a button can have
Field Summary | |
static ButtonState |
ACTIVE
Active button |
private static ButtonState[] |
ALL
Collection with all kinds of alignment types |
static ButtonState |
HOVER
Active button hover effect only for completeness. this is not realy an button state |
static ButtonState |
INACTIVE
Inactive button |
private int |
index
State index |
static ButtonState |
PRESSED
Pressed button |
static ButtonState |
SELECTED
Selected button |
static ButtonState |
SELHOVER
Selected button hover effect only for completeness. this is not really an button state |
private java.lang.String |
state
The internal state name |
Constructor Summary | |
private |
ButtonState(java.lang.String type,
int index)
Constructor for ButtonState |
Method Summary | |
boolean |
equals(java.lang.Object obj)
Compares this state the specified object. |
int |
getIndex()
|
int |
intValue()
|
boolean |
isHover()
|
static ButtonState |
parse(java.lang.String code)
Creates for the argument an object of type ButtonState |
java.lang.String |
toString()
Returns the state |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final ButtonState ACTIVE
public static final ButtonState INACTIVE
public static final ButtonState HOVER
public static final ButtonState PRESSED
public static final ButtonState SELECTED
public static final ButtonState SELHOVER
private java.lang.String state
private int index
private static final ButtonState[] ALL
Constructor Detail |
private ButtonState(java.lang.String type, int index)
type
- The state to initialize the Objectindex
- IndexMethod Detail |
public int intValue()
public java.lang.String toString()
public boolean isHover()
true
if this is any of the hover statespublic boolean equals(java.lang.Object obj)
obj
- The object to compare this ButtonState
against.
true
if the state
are equal;
false
otherwise.public static ButtonState parse(java.lang.String code) throws java.lang.IllegalArgumentException
code
- String to parse
java.lang.IllegalArgumentException
- if the argument is not matchedpublic int getIndex()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |