public abstract class BlockingExecutable extends NodeImpl implements Executable, KeyEventDispatcher
| Constructor and Description |
|---|
BlockingExecutable() |
BlockingExecutable(String defaultId) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel()
Cancels the task.
|
protected void |
cancelExecution()
Called when cancel successfully acquires the finish execution lock.
|
boolean |
dispatchKeyEvent(KeyEvent e) |
void |
execute()
Implementation of execute.
|
protected void |
finishExecution()
Call this method to finish execution.
|
ExecutionContext |
getExecutionContext() |
protected boolean |
getFinishExecutionLock()
Request the lock to finish execution.
|
void |
setExecutionContext(ExecutionContext executionContext) |
protected abstract void |
startExecution()
Start actual execution.
|
assignParent, assignParent, assignParents, getId, getLocalId, getParent, setId, setLocalId, setParentclearProperties, getKeys, getProperty, removeProperty, setPropertyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclearProperties, getId, getKeys, getProperty, removeProperty, setPropertypublic BlockingExecutable()
public BlockingExecutable(String defaultId)
public ExecutionContext getExecutionContext()
public void setExecutionContext(ExecutionContext executionContext)
setExecutionContext in interface Executablepublic final void execute()
execute in interface Executableprotected abstract void startExecution()
protected boolean getFinishExecutionLock()
protected void finishExecution()
public void cancel()
cancel in interface Executableprotected void cancelExecution()
public boolean dispatchKeyEvent(KeyEvent e)
dispatchKeyEvent in interface KeyEventDispatcherCopyright © 2012. All Rights Reserved.