|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.lang.enums.Enum
org.apache.commons.lang.enums.ValuedEnum
org.apache.cocoon.forms.formmodel.WidgetState
public class WidgetState
The state of a widget. States are ordered from the most featured ("active") to the most constrained ("invisible"), so that state combinations can be computed: a widget's combined state is the strictest between the widget's own state and its parent state.
| Field Summary | |
|---|---|
static WidgetState |
ACTIVE
Active state. |
static WidgetState |
DISABLED
Disabled state, value is displayed but user input is ignored. |
static WidgetState |
INVISIBLE
Invisible state. |
static WidgetState |
OUTPUT
Output state, value is displayed but user input is ignored. |
| Fields inherited from class org.apache.commons.lang.enums.Enum |
|---|
iToString |
| Method Summary | |
|---|---|
boolean |
isAcceptingInputs()
Does this state accept user inputs? |
boolean |
isDisplayingValues()
Does this state display widget values? |
boolean |
isValidatingValues()
Does this state validate widget values? |
static WidgetState |
stateForName(String name)
Get a state given its name. |
boolean |
stricterThan(WidgetState other)
Test if the current state is stricter than another one. |
static WidgetState |
strictest(WidgetState one,
WidgetState two)
Determine the strictest of two states. |
| Methods inherited from class org.apache.commons.lang.enums.ValuedEnum |
|---|
compareTo, getEnum, getValue, toString |
| Methods inherited from class org.apache.commons.lang.enums.Enum |
|---|
equals, getEnum, getEnumClass, getEnumList, getEnumMap, getName, hashCode, iterator, readResolve |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final WidgetState ACTIVE
public static final WidgetState DISABLED
public static final WidgetState OUTPUT
public static final WidgetState INVISIBLE
| Method Detail |
|---|
public static WidgetState stateForName(String name)
name - the state name
null if name doesn't
denote a known state name
public static WidgetState strictest(WidgetState one,
WidgetState two)
one - a statetwo - another state
one and twopublic boolean stricterThan(WidgetState other)
other - a state
true if this is stricter
than otherpublic boolean isAcceptingInputs()
true if this state accepts user inputs.public boolean isDisplayingValues()
true if this state displays widget values.public boolean isValidatingValues()
true if this state validates widget values.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||