|
||||||||||
| 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>
net.sf.doolin.gui.display.AdaptedContextPropertyDisplayStateHandler<S>
S - Type of the property to convert to a display statepublic class AdaptedContextPropertyDisplayStateHandler<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 | |
|---|---|
AdaptedContextPropertyDisplayStateHandler()
Default constructor |
|
AdaptedContextPropertyDisplayStateHandler(String propertyPath,
Adapter<S,DisplayState> adapter)
Constructor. |
|
| Method Summary | |
|---|---|
Adapter<S,DisplayState> |
getAdapter()
Gets the adapter. |
protected DisplayState |
getDisplayState(S property)
Computes the display state from the given property value |
void |
setAdapter(Adapter<S,DisplayState> adapter)
Sets the adapter. |
| Methods inherited from class net.sf.doolin.gui.display.AbstractContextPropertyDisplayStateHandler |
|---|
getDisplayState, getPropertyPath, setPropertyPath, subscribe |
| 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 AdaptedContextPropertyDisplayStateHandler()
public AdaptedContextPropertyDisplayStateHandler(String propertyPath,
Adapter<S,DisplayState> adapter)
propertyPath - Path to the property of the context to take into accountadapter - Adapter from the property to the display date| Method Detail |
|---|
public Adapter<S,DisplayState> getAdapter()
public void setAdapter(Adapter<S,DisplayState> adapter)
adapter - the adapterprotected DisplayState getDisplayState(S property)
AbstractContextPropertyDisplayStateHandler
getDisplayState in class AbstractContextPropertyDisplayStateHandler<S>property - Property value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||