Thread.State, Thread.UncaughtExceptionHandler
Modifier and Type | Field and Description |
---|---|
protected List<String> |
blockIds
List of IDs of components that should be blocked during execution.
|
protected GUIBlockingScope |
blockScope
GUI blocking scope.
|
protected String |
controllerId
ID of controller to execute.
|
protected boolean |
progressAware
Whether task is progress aware or not.
|
protected String |
progressViewId
ID of view that displays progress.
|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Constructor and Description |
---|
DMXBasicTask(String controllerId)
Creates new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
addIdsToBlock(String... ids)
Add IDs of GUI components that should be blocked while task is executing.
|
void |
addTaskStatusListener(TaskStatusListener listener)
Add listener to track changes to task status.
|
GUIBlockingScope |
getBlockingScope()
Returns GUI block scope for this task.
|
String |
getControllerId()
Returns ID of controller that should be executed with this task.
|
String[] |
getIdsToBlock()
Returns an array of IDs of GUI components that should be blocked while this task is executing.
|
String |
getProgressViewId()
Returns ID of view that should display progress for this task.
|
boolean |
isProgressAware()
Indicates whether this task should track it's progress.
|
void |
run() |
void |
setArguments(Object... args)
set arguments for controller execution.
|
void |
setBlockScope(GUIBlockingScope blockScope)
Sets blocking scope for this task.
|
void |
setController(DMXController controller)
Set controller which will be executed as task action.
|
void |
setIdsToBlock(String... ids)
Set IDs of GUI components to block.
|
void |
setProgressAware(boolean progressAware)
Set whether this task is progress aware or not.
|
void |
setProgressViewId(String progressViewId)
Set ID of view which will display progress information.
|
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
protected String controllerId
protected GUIBlockingScope blockScope
protected List<String> blockIds
protected boolean progressAware
protected String progressViewId
public DMXBasicTask(String controllerId)
controllerId
- controller IDpublic String getControllerId()
DMXTask
getControllerId
in interface DMXTask
public GUIBlockingScope getBlockingScope()
DMXTask
getBlockingScope
in interface DMXTask
public void setBlockScope(GUIBlockingScope blockScope)
blockScope
- blocking scopepublic String[] getIdsToBlock()
DMXTask
DMXView
instances or individual GUI components (eg. buttons, labels, etc).getIdsToBlock
in interface DMXTask
public void setIdsToBlock(String... ids)
ids
- component IDspublic void addIdsToBlock(String... ids)
ids
- component IDspublic boolean isProgressAware()
DMXTask
false
isProgressAware
in interface DMXTask
true
if task supports publishing progress info, false
otherwisepublic void setProgressAware(boolean progressAware)
true
. If not, or task progress is indeterminate, set to false
.progressAware
- progress awarenesspublic String getProgressViewId()
DMXTask
getProgressViewId
in interface DMXTask
public void setProgressViewId(String progressViewId)
progressViewId
- view IDpublic void addTaskStatusListener(TaskStatusListener listener)
DMXTask
addTaskStatusListener
in interface DMXTask
listener
- task listenerpublic void setController(DMXController controller)
setController
in interface DMXTask
controller
- controller to setpublic void setArguments(Object... args)
setArguments
in interface DMXTask
args
- argumentsCopyright © 2012-2014 Vektor Software. All Rights Reserved.