|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Controllable
A Controllable defines a class that can be controlled (i.e. interrupted, paused, etc.).
| Method Summary | |
|---|---|
void |
addControllableListener(ControllableListener listener)
Adds a ControllableListener. |
void |
clearControllableListener()
Clears the list of listeners. |
ControllableState |
getState()
Gets the controllable state. |
void |
interrupt()
Sends to the command the order to interrupt its current tasks as soon as possible. |
boolean |
isInterrupted()
Checks whether this Controllable has been interrupted. |
boolean |
isInterruptible()
Checks whether this Controllable can be interrupted. |
boolean |
isPausable()
Checks whether this Controllable can be paused. |
void |
pause()
Pauses this Command. |
void |
removeControllableListener(ControllableListener listener)
Removes a ControllableListener. |
void |
resume()
Resumes a paused Command. |
| Method Detail |
|---|
boolean isInterrupted()
Controllable has been interrupted.
Controllable has been interrupted.boolean isInterruptible()
Controllable can be interrupted.
Controllable can be interrupted.void interrupt()
boolean isPausable()
Controllable can be paused.
Controllable can be paused.void pause()
Command.
void resume()
Command.
ControllableState getState()
void addControllableListener(ControllableListener listener)
ControllableListener.
listener - the ControllableListener to add.void removeControllableListener(ControllableListener listener)
ControllableListener.
listener - the ControllableListener to remove.void clearControllableListener()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||