|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DisplayStateHandler
Defines the display state of a field.
| Method Summary | ||
|---|---|---|
void |
connect(ActionContext actionContext,
Object bean,
String propertyPath)
Connects this DisplayStateHandler to the given property and for
the given ActionContext. |
|
|
connect(ActionContext actionContext,
Object bean,
String propertyPath,
Adapter<DisplayState,T> adapter)
Connects this DisplayStateHandler to the given property and for
the given ActionContext. |
|
DisplayState |
getDisplayState(ActionContext actionContext)
Gets the current DisplayState for the given action context |
|
void |
subscribe(ActionContext actionContext,
Runnable task)
Subscribes a task that is executed each time this display state handler changes its state. |
|
| Method Detail |
|---|
void connect(ActionContext actionContext,
Object bean,
String propertyPath)
DisplayStateHandler to the given property and for
the given ActionContext. Each time this display state handler
changes its state, this new state will be set in the given property of
the given bean.
actionContext - Action contextbean - Target beanpropertyPath - Path to the property in the target bean that will contain the
new state
<T> void connect(ActionContext actionContext,
Object bean,
String propertyPath,
Adapter<DisplayState,T> adapter)
DisplayStateHandler to the given property and for
the given ActionContext. Each time this display state handler
changes its state, this new state will be converted to another type and
will be set in the given property of the given bean.
T - Type of the target propertyactionContext - Action contextbean - Target beanpropertyPath - Path to the property in the target bean that will contain the
converted new stateadapter - Adapter to convert the new state to the type of the target
property
void subscribe(ActionContext actionContext,
Runnable task)
actionContext - Action context for this display state handlertask - Task to run each time the state changeDisplayState getDisplayState(ActionContext actionContext)
DisplayState for the given action context
actionContext - Action context.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||