public class VProgressBar
extends com.google.gwt.user.client.ui.Widget
implements com.google.gwt.user.client.ui.HasEnabled
The default mode is to show the current progress internally represented by a floating point value between 0 and 1 (inclusive). The progress bar can also be in an indeterminate mode showing an animation indicating that the task is running but without providing any information about the current progress.
| Modifier and Type | Field and Description |
|---|---|
static String |
PRIMARY_STYLE_NAME
Default classname for this widget.
|
| Constructor and Description |
|---|
VProgressBar()
Constructs a widget for the ProgressBar component or renderer.
|
| Modifier and Type | Method and Description |
|---|---|
float |
getState()
Returns the current value of this progress bar.
|
boolean |
isEnabled() |
boolean |
isIndeterminate()
Gets whether or not this progress indicator is indeterminate.
|
void |
setEnabled(boolean enabled) |
void |
setIndeterminate(boolean indeterminate)
Sets whether or not this progress indicator is indeterminate.
|
void |
setState(float state)
Sets the value of this progress bar.
|
void |
setStylePrimaryName(String style) |
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEventsaddStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toStringpublic static final String PRIMARY_STYLE_NAME
public VProgressBar()
public void setStylePrimaryName(String style)
setStylePrimaryName in class com.google.gwt.user.client.ui.UIObjectpublic void setIndeterminate(boolean indeterminate)
indeterminate - true to set to indeterminate mode, false
otherwisepublic void setState(float state)
float between
0 and 1 where 0 represents no progress at all and 1 represents fully
completed.state - the new progress valuepublic boolean isIndeterminate()
true if set to indeterminate mode, false
otherwisepublic float getState()
float between 0 and 1 where 0 represents no progress at all and 1
represents fully completed.public boolean isEnabled()
isEnabled in interface com.google.gwt.user.client.ui.HasEnabledpublic void setEnabled(boolean enabled)
setEnabled in interface com.google.gwt.user.client.ui.HasEnabledCopyright © 2023 Vaadin Ltd. All rights reserved.