Schnittstelle ProgressBarHandler
- Alle Superschnittstellen:
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.
- Version:
- $Id: ProgressBarHandler.java 205 2012-01-29 18:29:57Z oheger $
- Autor:
- Oliver Heger
-
Methodenübersicht
Von Schnittstelle geerbte Methoden net.sf.jguiraffe.gui.forms.ComponentHandler
getComponent, getData, getOuterComponent, getType, isEnabled, setData, setEnabled
-
Methodendetails
-
getValue
int getValue()Returns the current value of the progress bar.- Gibt zurück:
- the current value
-
setValue
void setValue(int v) Sets the current value of the progress bar. This value will determine the length of the bar. It should be between the minimum and the maximum value defined during creation of the component.- Parameter:
v
- the current value
-
getProgressText
String getProgressText()Returns the text of the progress bar.- Gibt zurück:
- the current progress text
-
setProgressText
Sets the text of the progress bar. This text will be displayed in front of the progress bar if this allowed.- Parameter:
s
- the progress text
-