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() |
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() |
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, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
renderContent, validateContent
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()
showNotify
in interface ej.mwt.Renderable
showNotify
in class ej.mwt.Widget
public void hideNotify()
hideNotify
in interface ej.mwt.Renderable
hideNotify
in class ej.mwt.Widget