|
||||||||||
| 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.MultiDisplayStateHandler
public abstract class MultiDisplayStateHandler
Display state handler that operates an operation between several handlers.
| Constructor Summary | |
|---|---|
MultiDisplayStateHandler()
Default constructor |
|
MultiDisplayStateHandler(DisplayStateHandler... handlers)
Constructor from an array |
|
MultiDisplayStateHandler(List<DisplayStateHandler> handlers)
Constructor from a list. |
|
| Method Summary | |
|---|---|
List<DisplayStateHandler> |
getHandlers()
Gets the handlers. |
void |
setDisplayStateHandler(DisplayStateHandler handler)
Utility method to add one DisplayStateHandler to the list. |
void |
setHandlers(List<DisplayStateHandler> handlers)
Sets the handlers. |
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 |
| Methods inherited from interface net.sf.doolin.gui.display.DisplayStateHandler |
|---|
getDisplayState |
| Constructor Detail |
|---|
public MultiDisplayStateHandler()
public MultiDisplayStateHandler(DisplayStateHandler... handlers)
handlers - Array of handlerspublic MultiDisplayStateHandler(List<DisplayStateHandler> handlers)
handlers - List of handlers| Method Detail |
|---|
public List<DisplayStateHandler> getHandlers()
public void setDisplayStateHandler(DisplayStateHandler handler)
DisplayStateHandler to the list.
handler - DisplayStateHandler to addpublic void setHandlers(List<DisplayStateHandler> handlers)
handlers - the new handlers
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 | |||||||||