Class Progress


  extended by Object
      extended by Component
          extended by 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:


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 class Object
toString, equals, hashCode
 
Methods inherited from
equals, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Progress

public Progress(Style style,
                int width,
                int height)
Creates new progress indicator.

Parameters:
style - Style to use
width - Width of progress indicator
height - Height of progress indicator
Method Detail

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