public class Status extends Component implements HasIcon
Modifier and Type | Class and Description |
---|---|
static interface |
Status.BoxStatusAppearance |
static interface |
Status.StatusAppearance |
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 |
---|
Status()
Creates a status component with the default appearance.
|
Status(Status.StatusAppearance appearance)
Creates a status component with the specified appearance.
|
Modifier and Type | Method and Description |
---|---|
void |
clearStatus(String text)
Clears the current status by removing the current icon and change the text.
|
Status.StatusAppearance |
getAppearance() |
String |
getHTML() |
ImageResource |
getIcon()
Returns the icon.
|
String |
getText() |
void |
setBusy(String text)
Enables a busy icon and displays the given text.
|
void |
setHTML(SafeHtml html) |
void |
setIcon(ImageResource icon)
Sets the icon.
|
void |
setText(String text) |
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, getElement, getFocusEl, 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, onAfterFirstAttach, onAttach, onBlur, onBrowserEvent, onDetach, onDisable, onEnable, onFocus, onHide, onHideContextMenu, onLoad, onPosition, onResize, 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 Status()
public Status(Status.StatusAppearance appearance)
appearance
- the appearance of the status widget.public void clearStatus(String text)
text
- the new text valuepublic Status.StatusAppearance getAppearance()
public String getHTML()
public ImageResource getIcon()
HasIcon
public String getText()
public void setBusy(String text)
text
- the text to displaypublic void setHTML(SafeHtml html)
public void setIcon(ImageResource icon)
HasIcon
public void setText(String text)
Copyright © 2018. All rights reserved.