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 TypeMethodDescriptionvoidapplyTo(ProgressListener listener) Copies the values of this task progress listener to another.getNote()intintbooleanbooleanvoidsetFinished(boolean finished) voidsetIndeterminate(boolean indeterminant) Allows the object performing the action to indicate that it won't be able to report back progress information.voidSets some sort of note or information about the current position.voidsetProgress(int value) Used to update the current progress value, should be between 0 and the value sent to setProgressMax.voidsetProgressMax(int max) Used to indicate the upper bound of value that will be passed to setProgress.voidtoString()
-
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:ProgressListenerAllows the object performing the action to indicate that it won't be able to report back progress information.- Specified by:
setIndeterminatein interfaceProgressListener
-
getProgressMax
public int getProgressMax() -
setProgressMax
public void setProgressMax(int max) Description copied from interface:ProgressListenerUsed to indicate the upper bound of value that will be passed to setProgress.- Specified by:
setProgressMaxin interfaceProgressListener
-
getProgress
public int getProgress() -
setProgress
public void setProgress(int value) Description copied from interface:ProgressListenerUsed to update the current progress value, should be between 0 and the value sent to setProgressMax.- Specified by:
setProgressin interfaceProgressListener
-
getNote
-
setNote
Description copied from interface:ProgressListenerSets some sort of note or information about the current position.- Specified by:
setNotein interfaceProgressListener
-
applyTo
Copies the values of this task progress listener to another. -
toString
-