public interface ProgressBarHandler extends ComponentHandler<Integer>
A specialized component handler that represents a progress bar component.
The most important property of a progress bar is its current value. This is an integer value indicating the progress of the operation that is visualized by the bar. It is also possible to set a text value, which will be displayed in front of the progress bar (as far as the used GUI library supports this feature). A text will only be displayed if support for texts was enabled when the progress bar component was created.
Modifier and Type | Method and Description |
---|---|
String |
getProgressText()
Returns the text of the progress bar.
|
int |
getValue()
Returns the current value of the progress bar.
|
void |
setProgressText(String s)
Sets the text of the progress bar.
|
void |
setValue(int v)
Sets the current value of the progress bar.
|
getComponent, getData, getOuterComponent, getType, isEnabled, setData, setEnabled
int getValue()
void setValue(int v)
v
- the current valueString getProgressText()
void setProgressText(String s)
s
- the progress textCopyright © 2016 The JGUIraffe Team. All rights reserved.