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 SummaryConstructorsConstructorDescriptionTaskProgressState(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 SummaryModifier 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
- 
TaskProgressStateFinished constructor - sets result, and sets finished to true.
 
- 
- 
Method Details- 
isFinishedpublic boolean isFinished()
- 
setFinishedpublic void setFinished(boolean finished) 
- 
getResult
- 
setResult
- 
getTaskUID
- 
isIndeterminantpublic boolean isIndeterminant()
- 
setIndeterminatepublic 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 interface- ProgressListener
 
- 
getProgressMaxpublic int getProgressMax()
- 
setProgressMaxpublic 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 interface- ProgressListener
 
- 
getProgresspublic int getProgress()
- 
setProgresspublic 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 interface- ProgressListener
 
- 
getNote
- 
setNoteDescription copied from interface:ProgressListenerSets some sort of note or information about the current position.- Specified by:
- setNotein interface- ProgressListener
 
- 
applyToCopies the values of this task progress listener to another.
- 
toString
 
-