Class TaskProgressState

java.lang.Object
com.inductiveautomation.ignition.common.gui.progress.TaskProgressState
All Implemented Interfaces:
ProgressListener, Serializable

public class TaskProgressState extends Object implements Serializable, ProgressListener
Provides the current state of a progress operation.
See Also:
  • Constructor Details

    • TaskProgressState

      public TaskProgressState(String uid)
    • TaskProgressState

      public TaskProgressState(String taskId, boolean indeterminant, int max, int value, String note)
    • TaskProgressState

      public TaskProgressState(String taskId, Object result)
      Finished constructor - sets result, and sets finished to true.
  • Method Details

    • isFinished

      public boolean isFinished()
    • setFinished

      public void setFinished(boolean finished)
    • getResult

      public Object getResult()
    • setResult

      public void setResult(Object result)
    • getTaskUID

      public String 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 interface ProgressListener
    • 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 interface ProgressListener
    • 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 interface ProgressListener
    • getNote

      public String getNote()
    • setNote

      public void setNote(String note)
      Description copied from interface: ProgressListener
      Sets some sort of note or information about the current position.
      Specified by:
      setNote in interface ProgressListener
    • applyTo

      public void applyTo(ProgressListener listener)
      Copies the values of this task progress listener to another.
    • toString

      public String toString()
      Overrides:
      toString in class Object