|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.fuin.apps4swing.AbstractControllerQueue<CONTROLLER,VIEW>
CONTROLLER - Type of the controller.VIEW - Type of the view.public abstract class AbstractControllerQueue<CONTROLLER,VIEW>
Queues commands for the controller and executes them in sequential order.
| Constructor Summary | |
|---|---|
AbstractControllerQueue()
Default constructor. |
|
| Method Summary | |
|---|---|
protected Object |
execute(Callable<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 |
| Methods inherited from interface org.fuin.apps4j.base.Controller |
|---|
getControllerUI |
| Methods inherited from interface org.fuin.apps4j.base.ModuleImplIntf |
|---|
cancel, getModuleUI, getName |
| Constructor Detail |
|---|
public AbstractControllerQueue()
| Method Detail |
|---|
protected final Object execute(Callable<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 | ||||||||