public class Progressbar extends Canvas implements HasPercentChangedHandlers
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled| Modifier and Type | Field and Description |
|---|---|
static ProgressbarCssResource |
_CSS |
_CONTENT_CHANGED_EVENT_TYPE, _HISTORY_ENABLED, _REQUEST_SCROLL_TO_EVENT_TYPE, id, touched| Constructor and Description |
|---|
Progressbar()
Uses the css settings under theme/public/iOS/progressbar.css which defines both styling and animation
|
| Modifier and Type | Method and Description |
|---|---|
com.google.gwt.event.shared.HandlerRegistration |
addPercentChangedHandler(PercentChangedHandler handler)
Add a percentChanged handler.
|
int |
getBreadth()
Thickness of the progressbar in pixels.
|
int |
getLength()
Length of the progressbar in pixels.
|
int |
getPercentDone()
Number from 0 to 100, inclusive, for the percentage to be displayed graphically in this progressbar.
|
java.lang.Boolean |
getVertical()
Indicates whether this is a vertical or horizontal progressbar.
|
void |
onBrowserEvent(com.google.gwt.user.client.Event event) |
void |
setBreadth(int breadth)
Thickness of the progressbar in pixels.
|
void |
setLength(int length)
Length of the progressbar in pixels.
|
void |
setPercentDone(int newPercentDone,
int duration)
Number from 0 to 100, inclusive, for the percentage to be displayed graphically in this progressbar.
|
void |
setVertical(java.lang.Boolean vertical)
Indicates whether this is a vertical or horizontal progressbar.
|
_add, _booleanValue, _fireContentChangedEvent, _fireContentChangedEvent, _fireRequestScrollToEvent, _getAndroidWindowSoftInputMode, _getAttributeFromSplitLocator, _getChildFromLocatorSubstring, _getFixNavigationBarPositionDuringKeyboardFocus, _getHideTabBarDuringKeyboardFocus, _getInnerAttributeFromSplitLocator, _getInnerElement, _hideAddressBar, _hideAddressBarNow, _insert, _isDifferent, _isHDPIDisplay, _isIOS4OrOlder, _isIOS5, _isIOSMin6_0, _isStandaloneMode, _nativeParseFloat, _removeClassName, _setClassName, _setHandleDisabled, _sinkAnimationEndEvent, _sinkContentChangedEvent, _sinkFocusInEvent, _sinkFocusOutEvent, _sinkInputEvent, _sinkRequestScrollToEvent, _sinkTransitionEndEvent, _triggerDebugger, addChild, addChild, addChild, addClickHandler, addShowContextMenuHandler, destroy, disable, enable, getContextMenu, getID, getInnerHTML, getMargin, hasChild, hasChild, isAndroid, isDisabled, isEnabled, isIPad, isIPhone, isSafari, isStandAlone, isUIWebView, parseDimension, removeChild, removeChild, setContents, setContextMenu, setDisabled, setElement, setID, setMargin, setStyleName, split, useIOSNativeScrollingadd, add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, insert, iterator, remove, removeadd, add, adopt, clear, doAttachChildren, doDetachChildren, orphan, removeaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, 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, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString@SGWTInternal public static final ProgressbarCssResource _CSS
public Progressbar()
public void setBreadth(int breadth)
This property must be set instead of setting width or height.
Sets the breadth of the progressbar to newLength. This is the height of a horizontal progressbar, or the width of a vertical progressbar.
breadth - the new breadth of the progressbar. Default value is 20public final int getBreadth()
This property must be set instead of setting width or height.
public void setLength(int length)
This property must be set instead of setting width or height.
Sets the length of the progressbar to newLength. This is the width of a horizontal progressbar, or the height of a vertical progressbar.
length - the new length of the progressbar. Default value is 100public int getLength()
This property must be set instead of setting width or height.
public void setPercentDone(int newPercentDone,
int duration)
percentDone to newPercentDone.newPercentDone - percent to show as done (0-100). Default value is 0duration - in seconds for bar to reach this percent donepublic int getPercentDone()
public void setVertical(java.lang.Boolean vertical)
vertical - vertical Default value is falsepublic java.lang.Boolean getVertical()
public void onBrowserEvent(com.google.gwt.user.client.Event event)
onBrowserEvent in interface com.google.gwt.user.client.EventListeneronBrowserEvent in class Canvaspublic com.google.gwt.event.shared.HandlerRegistration addPercentChangedHandler(PercentChangedHandler handler)
addPercentChangedHandler in interface HasPercentChangedHandlershandler - the percentChanged handlerHandlerRegistration used to remove this handler