public abstract class AbstractProgress extends BoundedRange
EMPTY_ELEMENT_ARRAY
Constructor and Description |
---|
AbstractProgress(BoundedRangeModel model)
Creates a progress bar with the given model.
|
AbstractProgress(int min,
int max,
int initialValue)
Creates a progress bar with a default bounded range model as model.
|
Modifier and Type | Method and Description |
---|---|
void |
hideNotify()
This method is called as soon as the renderable is hidden.
|
protected void |
indeterminateTick()
Indeterminate animation tick.
|
boolean |
isIndeterminate()
Gets whether or not the progress bar is in an indeterminate state.
|
void |
setIndeterminate(boolean indeterminate)
Sets whether or not the progress bar is in an indeterminate state.
|
void |
showNotify()
This method is called as soon as the renderable is visible.
|
protected void |
startIndeterminateAnimation()
Starts the indeterminate animation.
|
protected void |
stopIndeterminateAnimation()
Stops the indeterminate animation.
|
addOnValueChangeListener, getMaximum, getMinimum, getPercentComplete, getValue, removeOnValueChangeListener, reset, setMaximum, setMinimum, setModel, setValue
addClassSelector, contains, gainFocus, getAttribute, getChild, getChildrenCount, getChildrenElements, getContentBounds, getParentElement, getStyle, hasClassSelector, isInState, isTransparent, lostFocus, mergeStyle, removeAllClassSelectors, removeClassSelector, removeInstanceStyle, render, setClassSelectors, setEnabled, updateStyle, updateStyleOnly, validate
getAbsoluteX, getAbsoluteX, getAbsoluteY, getAbsoluteY, getEventHandler, getHeight, getPanel, getParent, getPreferredHeight, getPreferredWidth, getRelativeX, getRelativeY, getWidgetAt, getWidth, getX, getY, handleEvent, hasFocus, invalidate, isEnabled, isShown, isValid, isVisible, repaint, repaint, requestFocus, requestFocus, revalidate, revalidateSubTree, setBounds, setEventHandler, setLocation, setPreferredSize, setSize, setVisible
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
renderContent, validateContent
getEventHandler, getHeight, getWidth, getX, getY, handleEvent, isShown, repaint, repaint, setEventHandler
public AbstractProgress(BoundedRangeModel model)
model
- the model to use.public AbstractProgress(int min, int max, int initialValue)
min
- the minimum value of the progress bar.max
- the maximum value of the progress bar.initialValue
- the initial value of the progress bar.DefaultBoundedRangeModel
public void setIndeterminate(boolean indeterminate)
indeterminate
- the new state of the progress bar.protected void startIndeterminateAnimation()
protected void stopIndeterminateAnimation()
protected void indeterminateTick()
Do nothing by default, subclasses can add behavior to animate the progress bar.
public boolean isIndeterminate()
public void showNotify()
Renderable
showNotify
in interface Renderable
showNotify
in class Widget
public void hideNotify()
Renderable
hideNotify
in interface Renderable
hideNotify
in class Widget