|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.fuin.apps4swing.ControllerTaskExecutor<CONTROLLER>
CONTROLLER - Type of controller the task executor acts on.public class ControllerTaskExecutor<CONTROLLER>
Executes tasks submitted for a controller in sequential order. During the execution the view of the controller will be blocked.
| Constructor Summary | |
|---|---|
ControllerTaskExecutor()
Default constructor. |
|
| Method Summary | |
|---|---|
void |
cancel()
Cancel the task. |
void |
execute(java.lang.Runnable event)
Executes the task. |
boolean |
isCanceled()
Returns if the execution has been canceled. |
void |
run()
|
void |
setEvents(java.util.concurrent.ArrayBlockingQueue<java.lang.Runnable> events)
Set an event queue. |
void |
setExecutorService(java.util.concurrent.ExecutorService executor)
Set an executor service. |
void |
setView(org.fuin.apps4j.View<CONTROLLER> view)
Set the view to block during task execution. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ControllerTaskExecutor()
| Method Detail |
|---|
public final boolean isCanceled()
true else
false.public final void cancel()
public final void execute(java.lang.Runnable event)
event - Event to handle.public final void run()
run in interface java.lang.Runnablepublic final void setEvents(java.util.concurrent.ArrayBlockingQueue<java.lang.Runnable> events)
events - Event queue to use.public final void setExecutorService(java.util.concurrent.ExecutorService executor)
executor - Executor to use.public final void setView(org.fuin.apps4j.View<CONTROLLER> view)
view - View
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||