public class TaskEvent extends GenericEvent
AsyncTask
instance.Modifier and Type | Class and Description |
---|---|
static interface |
TaskEvent.Listener |
static interface |
TaskEvent.Source |
Constructor and Description |
---|
TaskEvent(RunStateFlag stateFlag) |
TaskEvent(RunStateFlag stateFlag,
java.lang.Object result) |
TaskEvent(RunStateFlag stateFlag,
java.lang.Object result,
int step,
int maxSteps,
java.lang.String message) |
Modifier and Type | Method and Description |
---|---|
int |
getChildCount() |
int |
getChildNestingDepth() |
TaskId |
getCurrentChild() |
java.lang.Exception |
getError() |
int |
getMaxChildTasks() |
int |
getMaxProgressSteps()
Returns the estimated number of steps - used for displaying length of progress bar
|
java.lang.String |
getProgressMessage()
Returns the current progress state message of the running action
|
int |
getProgressPercentage() |
int |
getProgressStep()
Returns the current step (of progressCount) of the running action
|
java.lang.Object |
getResult()
Returns the result object if the run-state is SUCCEEDED or PROGRESS.
|
RunState |
getRunState() |
RunStateFlag |
getRunStateFlag() |
TaskId |
getTaskId() |
java.lang.String |
getTaskName() |
boolean |
isCancellable() |
boolean |
isCancelled() |
boolean |
isChildEvent() |
boolean |
isChildFinished() |
boolean |
isChildStarted() |
boolean |
isChildSucceeded() |
boolean |
isFailed() |
boolean |
isFinished() |
boolean |
isProgress() |
boolean |
isRunning() |
boolean |
isStarted() |
boolean |
isSucceeded() |
DumpString |
toDumpString(DumpString s)
This method allows subclasses to add values to the existing DumpString of the superclass.
|
ToString |
toString(ToString s)
This method allows subclasses to add values to the existing ToString of the superclass.
|
boolean |
wasCancelled() |
boolean |
wasFailed() |
boolean |
wasSucceeded() |
clone, deepClone
configureDumpHeadlineLength, configureDumpMaxElementsPrinted, copyDumpStringValues, copyToStringValues, createDumpHeader, toDumpString, toString
public TaskEvent(RunStateFlag stateFlag)
public TaskEvent(RunStateFlag stateFlag, java.lang.Object result)
public TaskEvent(RunStateFlag stateFlag, java.lang.Object result, int step, int maxSteps, java.lang.String message)
public java.lang.String getTaskName()
public TaskId getTaskId()
public RunStateFlag getRunStateFlag()
public boolean isStarted()
public boolean isProgress()
public boolean isSucceeded()
public boolean isCancelled()
public boolean isFailed()
public boolean isFinished()
public boolean isRunning()
public RunState getRunState()
public int getProgressStep()
public int getProgressPercentage()
public java.lang.Exception getError()
public int getMaxProgressSteps()
public java.lang.String getProgressMessage()
public boolean isChildEvent()
public boolean isChildStarted()
public boolean isChildFinished()
public boolean isChildSucceeded()
public int getMaxChildTasks()
public TaskId getCurrentChild()
public int getChildNestingDepth()
public int getChildCount()
public boolean wasSucceeded()
public boolean wasCancelled()
public boolean wasFailed()
public java.lang.Object getResult()
public boolean isCancellable()
public ToString toString(ToString s)
Dumpable
toString
in interface Dumpable
toString
in class DumpableObject
public DumpString toDumpString(DumpString s)
Dumpable
toDumpString
in interface Dumpable
toDumpString
in class DumpableObject
Copyright © 2014 EsprIT-Systems. All Rights Reserved.