|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.doolin.gui.display.AbstractDisplayStateHandler
net.sf.doolin.gui.display.ValidationDisplayStateHandler
public class ValidationDisplayStateHandler
Display state handler based on the validation status of a GUI model.
ActionContext.getView(),
GUIView.getViewData(),
ActionContext.getValidationSupport(),
ValidationSupport.getValidation()| Constructor Summary | |
|---|---|
ValidationDisplayStateHandler()
|
|
| Method Summary | |
|---|---|
DisplayState |
getDisplayState(ActionContext actionContext)
Gets the current DisplayState for the given action context |
DisplayState |
getNotValidState()
Gets the not valid state. |
void |
setNotValidState(DisplayState notValidState)
State when the validation is not valid |
void |
subscribe(ActionContext actionContext,
Runnable task)
Subscribes a task that is executed each time this display state handler changes its state. |
| Methods inherited from class net.sf.doolin.gui.display.AbstractDisplayStateHandler |
|---|
connect, connect |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ValidationDisplayStateHandler()
| Method Detail |
|---|
public DisplayState getNotValidState()
public void setNotValidState(DisplayState notValidState)
notValidState - the new not valid statepublic DisplayState getDisplayState(ActionContext actionContext)
DisplayStateHandlerDisplayState for the given action context
actionContext - Action context.
public void subscribe(ActionContext actionContext,
Runnable task)
DisplayStateHandler
actionContext - Action context for this display state handlertask - Task to run each time the state change
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||