public class ProgressBar extends CellComponent<Double>
updateProgress(double, java.lang.String)
) and
clearing the progress bar as needed from your own code. This method is most
appropriate when you want to show progress throughout an operation that has
predictable points of interest at which you can update the control.valueUpdater
adjustSize, allowTextSelection, cacheSizes, disableContextMenu, disabled, disabledStyle, ensureVisibilityOnSizing, height, hidden, lastSize, layer, left, mask, maskMessage, monitorWindowResize, pageX, pageY, resizeHandler, shim, tabIndex, toolTip, toolTipConfig, top, width, windowResizeDelay, windowResizeTask
Constructor and Description |
---|
ProgressBar()
Creates a new progress bar with the default progress bar cell.
|
ProgressBar(ProgressBarCell cell)
Creates a new progress bar with the specified progress bar cell.
|
Modifier and Type | Method and Description |
---|---|
ProgressBarCell |
getCell()
Get the
Cell wrapped by this widget. |
int |
getIncrement()
Returns the bar's increment value.
|
void |
reset()
Resets the progress bar value to 0 and text to empty string.
|
void |
setIncrement(int increment)
The number of progress update segments to display within the progress bar
(defaults to 10).
|
void |
updateProgress(double value,
String text)
Updates the progress bar value, and optionally its text.
|
void |
updateText(String text)
Updates the progress bar text.
|
addValueChangeHandler, createContext, getElement, getFocusEl, getKey, getKeyProvider, getValue, onAfterFirstAttach, onBrowserEvent, onDisable, onEnable, onRedraw, onResize, redraw, redraw, setKeyProvider, setValue, setValue, setValue
addBeforeHideHandler, addBeforeShowContextMenuHandler, addBeforeShowHandler, addBlurHandler, addDisableHandler, addEnableHandler, addFocusHandler, addHideHandler, addMoveHandler, addResizeHandler, addShowContextMenuHandler, addShowHandler, addStyleDependentName, addStyleOnOver, adjustPosition, adjustSize, applyState, assertAfterRender, assertPreRender, blur, clearSizeCache, disable, disableContextMenu, disableEvents, enable, enableEvents, fireCancellableEvent, fireEvent, focus, getData, getFocusSupport, getHideMode, getId, getItemId, getOffsetHeight, getOffsetWidth, getPositionEl, getShadow, getShadowPosition, getStateId, getTabIndex, getToolTip, hide, hideShadow, hideToolTip, isAllowTextSelection, isAutoHeight, isAutoWidth, isDeferHeight, isEnabled, isMonitorWindowResize, isRendered, isStateful, isVisible, isVisible, mask, mask, notifyHide, notifyShow, onAttach, onBlur, onDetach, onFocus, onHide, onHideContextMenu, onLoad, onPosition, onRightClick, onShow, onShowContextMenu, onUnload, onWindowResize, removeStyleDependentName, removeStyleOnOver, removeToolTip, setAllowTextSelection, setBorders, setBounds, setBounds, setContextMenu, setData, setDeferHeight, setEnabled, setHeight, setHeight, setHideMode, setId, setItemId, setMonitorWindowResize, setPagePosition, setPixelSize, setPosition, setShadow, setShadowPosition, setSize, setStateful, setStateId, setStyleDependentName, setTabIndex, setToolTip, setToolTipConfig, setVisible, setWidth, setWidth, show, sync, syncSize, unmask
public ProgressBar()
public ProgressBar(ProgressBarCell cell)
cell
- the progress bar cellpublic int getIncrement()
public void reset()
public void setIncrement(int increment)
increment
- the new incrementpublic void updateProgress(double value, String text)
reset()
to clear and/or hide the control.value
- A value between 0 and 1 (e.g., .5, defaults to 0)text
- the string to display in the progress text element or nullpublic ProgressBarCell getCell()
CellComponent
Cell
wrapped by this widget.getCell
in class CellComponent<Double>
Cell
being wrappedpublic void updateText(String text)
text
- the text to displayCopyright © 2018. All rights reserved.