|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.fuin.apps4swing.ToControllerDispatcher<CTRL,VIEW>
CTRL - Type of the controller.VIEW - Type of the view.public abstract class ToControllerDispatcher<CTRL extends org.fuin.apps4j.Controller<VIEW>,VIEW>
Dispatch events from the view to the controller using a new thread.
| Constructor Summary | |
|---|---|
ToControllerDispatcher()
Default constructor. |
|
| Method Summary | |
|---|---|
protected void |
execute(java.lang.Runnable runnable)
Execute the runnable in the controller's thread. |
CTRL |
getController()
Returns the controller the dispatcher works on. |
void |
setController(CTRL controller)
Sets the controller the dispatcher works on. |
void |
setExecutorService(java.util.concurrent.ExecutorService executor)
Sets the executor service. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ToControllerDispatcher()
| Method Detail |
|---|
protected final void execute(java.lang.Runnable runnable)
runnable - Runnable to execute.public final CTRL getController()
public final void setController(CTRL controller)
controller - Controller.public final void setExecutorService(java.util.concurrent.ExecutorService executor)
executor - Executor to set.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||