|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.fuin.apps4swing.ControllerQueue<CONTROLLER,VIEW>
CONTROLLER - Type of the controller.VIEW - Type of the view.public abstract class ControllerQueue<CONTROLLER,VIEW>
Queues commands for the controller and executes them in sequential order.
| Constructor Summary | |
|---|---|
ControllerQueue()
Default constructor. |
|
| Method Summary | |
|---|---|
protected java.lang.Object |
execute(java.util.concurrent.Callable<java.lang.Object> callable)
Executes a task and returns the result of the command. |
CONTROLLER |
getController()
Returns the controller that contains the real application logic. |
void |
setController(CONTROLLER ctrl)
Sets the controller that contains the real application logic. |
void |
setControllerTaskExecutor(ControllerTaskExecutor<CONTROLLER> ctrlTaskExecutor)
Sets the executor that actually does the work. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ControllerQueue()
| Method Detail |
|---|
protected final java.lang.Object execute(java.util.concurrent.Callable<java.lang.Object> callable)
callable - Task to execute.
public final void setControllerTaskExecutor(ControllerTaskExecutor<CONTROLLER> ctrlTaskExecutor)
ctrlTaskExecutor - Task executor to set.public final CONTROLLER getController()
null.public final void setController(CONTROLLER ctrl)
ctrl - Controller to set or null.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||