|
||||||||||
| 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.AbstractContextPropertyDisplayStateHandler<S>
S - Type of the property to convert to a display statepublic abstract class AbstractContextPropertyDisplayStateHandler<S>
This display state handler is based on a property of the context. This property is adapted to a display state using an adapter.
| Constructor Summary | |
|---|---|
AbstractContextPropertyDisplayStateHandler()
Default constructor |
|
AbstractContextPropertyDisplayStateHandler(String propertyPath)
Constructor. |
|
| Method Summary | |
|---|---|
DisplayState |
getDisplayState(ActionContext actionContext)
Gets the current DisplayState for the given action context |
protected abstract DisplayState |
getDisplayState(S property)
Computes the display state from the given property value |
String |
getPropertyPath()
Gets the property path. |
void |
setPropertyPath(String propertyPath)
Sets the property path. |
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 AbstractContextPropertyDisplayStateHandler()
public AbstractContextPropertyDisplayStateHandler(String propertyPath)
propertyPath - Path to the property of the context to take into account| Method Detail |
|---|
public DisplayState getDisplayState(ActionContext actionContext)
DisplayStateHandlerDisplayState for the given action context
actionContext - Action context.
protected abstract DisplayState getDisplayState(S property)
property - Property value
public String getPropertyPath()
public void setPropertyPath(String propertyPath)
propertyPath - the new property path
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 | |||||||||