|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.doolin.gui.display.AbstractStateAdapter<S>
net.sf.doolin.gui.display.MapStateAdapter<S>
S - Type of the sourcepublic class MapStateAdapter<S>
Adapter based on a map.
| Constructor Summary | |
|---|---|
MapStateAdapter()
|
|
| Method Summary | |
|---|---|
DisplayState |
convertSubjectToTarget(S subjectValue)
Conversion from the subject to the target |
DisplayState |
getDefaultState()
Gets the default state. |
Map<S,DisplayState> |
getMap()
Gets the map. |
void |
setDefaultState(DisplayState defaultState)
Default state when not mapped |
void |
setMap(Map<S,DisplayState> map)
Map of subject values to the display state |
| Methods inherited from class net.sf.doolin.gui.display.AbstractStateAdapter |
|---|
convertTargetToSubject |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MapStateAdapter()
| Method Detail |
|---|
public DisplayState getDefaultState()
public void setDefaultState(DisplayState defaultState)
defaultState - the new default statepublic Map<S,DisplayState> getMap()
public void setMap(Map<S,DisplayState> map)
map - the mappublic DisplayState convertSubjectToTarget(S subjectValue)
Adapter
subjectValue - Subject value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||