| org.apache.cocoon.forms.formmodel.WidgetState
WidgetState | public class WidgetState extends ValuedEnum (Code) | | 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.
version: $Id: WidgetState.java 449149 2006-09-23 03:58:05Z crossley $ |
ACTIVE | final public static WidgetState ACTIVE(Code) | | Active state. This is the default state, where widgets read their values
from the request and display them.
|
DISABLED | final public static WidgetState DISABLED(Code) | | Disabled state, value is displayed but user input is ignored. The widget should be
rendered in a manner that indicates that this widget could be active, but is currently not.
|
INVISIBLE | final public static WidgetState INVISIBLE(Code) | | Invisible state. Values are not displayed and user input is ignored.
|
OUTPUT | final public static WidgetState OUTPUT(Code) | | Output state, value is displayed but user input is ignored. The widget should be rendered
as plain text, giving no indication that it could be input.
|
isAcceptingInputs | public boolean isAcceptingInputs()(Code) | | Does this state accept user inputs?
true if this state accepts user inputs. |
isDisplayingValues | public boolean isDisplayingValues()(Code) | | Does this state display widget values?
true if this state displays widget values. |
isValidatingValues | public boolean isValidatingValues()(Code) | | Does this state validate widget values?
true if this state validates widget values. |
stateForName | public static WidgetState stateForName(String name)(Code) | | Get a state given its name. Valid names are "active", "disabled",
"invisible".
Parameters: name - the state name the state, or null if name doesn'tdenote a known state name |
stricterThan | public boolean stricterThan(WidgetState other)(Code) | | Test if the current state is stricter than another one.
Parameters: other - a state true if this is stricterthan other |
strictest | public static WidgetState strictest(WidgetState one, WidgetState two)(Code) | | Determine the strictest of two states. "invisible" is stricter than
"disabled" which is stricter than "active"
Parameters: one - a state Parameters: two - another state the strictes of one and two |
|
|