Class Progress
Object
Component
Progress
public class Progress
- extends Component
Progress component implements user interface element
for definite and continuous progress indicators.
Progress indicator has following special style customizations:
indicator-background: background of definite indicator
indicator-foreground: foreground of definite indicator
indicator-height: height of indicator bar
(style may consume additional space)
image: image of continuous indicator
|
Constructor Summary |
Progress(Style style,
int width,
int height)
Creates new progress indicator. |
|
Method Summary |
void |
update(int current,
int max)
Sets the current progress of this indicator. |
| Methods inherited from class Component |
add, appendText, clear, find, first, get, getAction, getData, getElement, getFlags, getImage, getLocation, getParent, getShell, getSize, getStyle, getText, getViewPort, hasLinefeed, indexOf, insert, isFocusable, isShown, isVisible, isWrapping, last, operator_get, operator_set, remove, remove, repaint, set, setAction, setData, setElement, setFlags, setImage, setLocation, setPreferredHeight, setPreferredSize, setPreferredWidth, setStyle, setText, size |
| Methods inherited from |
equals, getClass, notify, notifyAll, toString, wait, wait, wait |
Progress
public Progress(Style style,
int width,
int height)
- Creates new progress indicator.
- Parameters:
style - Style to usewidth - Width of progress indicatorheight - Height of progress indicator
update
public void update(int current,
int max)
- Sets the current progress of this indicator.
If the
current and max arguments
are both zero the progress indicator changes into continuous
mode, in which it will automatically animate
image taken from the stylesheet.
- Parameters:
current - Current progress, must be on range [0..max]max - Maximum progress, must be >=0