Class ProgressItem

java.lang.Object
org.apache.wiki.ui.progress.ProgressItem

public abstract class ProgressItem extends Object
Provides access to an progress item.
Since:
2.6
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Status: The PI is created.
    static final int
    Status: The PI is finished.
    protected int
     
    static final int
    Status: The PI is started.
    static final int
    Status: The PI is stopped.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract int
    Returns the progress in percents.
    int
    Get the state of the ProgressItem.
    void
    setState(int state)
    Sets the state of the ProgressItem.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

  • Method Details

    • getState

      public int getState()
      Get the state of the ProgressItem.
      Returns:
      CREATED, STARTED, STOPPED or FINISHED.
    • setState

      public void setState(int state)
      Sets the state of the ProgressItem.
      Parameters:
      state - One of the CREATED, STARTED, STOPPED or FINISHED.
    • getProgress

      public abstract int getProgress()
      Returns the progress in percents.
      Returns:
      An integer 0-100.