Class TaskProgressState
java.lang.Object
com.inductiveautomation.ignition.common.gui.progress.TaskProgressState
- All Implemented Interfaces:
ProgressListener
,Serializable
Provides the current state of a progress operation.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionTaskProgressState
(String uid) TaskProgressState
(String taskId, boolean indeterminant, int max, int value, String note) TaskProgressState
(String taskId, Object result) Finished constructor - sets result, and sets finished to true. -
Method Summary
Modifier and TypeMethodDescriptionvoid
applyTo
(ProgressListener listener) Copies the values of this task progress listener to another.getNote()
int
int
boolean
boolean
void
setFinished
(boolean finished) void
setIndeterminate
(boolean indeterminant) Allows the object performing the action to indicate that it won't be able to report back progress information.void
Sets some sort of note or information about the current position.void
setProgress
(int value) Used to update the current progress value, should be between 0 and the value sent to setProgressMax.void
setProgressMax
(int max) Used to indicate the upper bound of value that will be passed to setProgress.void
toString()
-
Constructor Details
-
TaskProgressState
-
TaskProgressState
-
TaskProgressState
Finished constructor - sets result, and sets finished to true.
-
-
Method Details
-
isFinished
public boolean isFinished() -
setFinished
public void setFinished(boolean finished) -
getResult
-
setResult
-
getTaskUID
-
isIndeterminant
public boolean isIndeterminant() -
setIndeterminate
public void setIndeterminate(boolean indeterminant) Description copied from interface:ProgressListener
Allows the object performing the action to indicate that it won't be able to report back progress information.- Specified by:
setIndeterminate
in interfaceProgressListener
-
getProgressMax
public int getProgressMax() -
setProgressMax
public void setProgressMax(int max) Description copied from interface:ProgressListener
Used to indicate the upper bound of value that will be passed to setProgress.- Specified by:
setProgressMax
in interfaceProgressListener
-
getProgress
public int getProgress() -
setProgress
public void setProgress(int value) Description copied from interface:ProgressListener
Used to update the current progress value, should be between 0 and the value sent to setProgressMax.- Specified by:
setProgress
in interfaceProgressListener
-
getNote
-
setNote
Description copied from interface:ProgressListener
Sets some sort of note or information about the current position.- Specified by:
setNote
in interfaceProgressListener
-
applyTo
Copies the values of this task progress listener to another. -
toString
-