Package org.apache.wiki.ui.progress
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
-
Constructor Summary
Constructors Constructor Description ProgressItem()
-
Method Summary
Modifier and Type Method Description abstract int
getProgress()
Returns the progress in percents.int
getState()
Get the state of the ProgressItem.void
setState(int state)
Sets the state of the ProgressItem.
-
Field Details
-
CREATED
Status: The PI is created.- See Also:
- Constant Field Values
-
STARTED
Status: The PI is started.- See Also:
- Constant Field Values
-
STOPPED
Status: The PI is stopped.- See Also:
- Constant Field Values
-
FINISHED
Status: The PI is finished.- See Also:
- Constant Field Values
-
m_state
-
-
Constructor Details
-
ProgressItem
public ProgressItem()
-
-
Method Details
-
getState
Get the state of the ProgressItem.- Returns:
- CREATED, STARTED, STOPPED or FINISHED.
-
setState
Sets the state of the ProgressItem.- Parameters:
state
- One of the CREATED, STARTED, STOPPED or FINISHED.
-
getProgress
Returns the progress in percents.- Returns:
- An integer 0-100.
-