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(SafeHtml html)
Clears the current status by removing the current icon and change the html.
|
void |
clearStatus(String text)
Clears the current status by removing the current icon and change the text.
|
Status.StatusAppearance |
getAppearance() |
String |
getHTML()
Returns the status html.
|
ImageResource |
getIcon()
Returns the icon.
|
SafeHtml |
getSafeHtml()
Returns the status html.
|
String |
getText()
Returns the status text.
|
void |
setBusy(SafeHtml html)
Enables a busy icon and displays the given html.
|
void |
setBusy(String text)
Enables a busy icon and displays the given text.
|
void |
setHTML(SafeHtml html)
Sets the status html.
|
void |
setIcon(ImageResource icon)
Sets the icon.
|
void |
setText(String text)
Sets the status text.
|
addBeforeHideHandler, addBeforeShowContextMenuHandler, addBeforeShowHandler, addBlurHandler, addDisableHandler, addEnableHandler, addFocusHandler, addGestureRecognizer, 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, getGestureRecognizer, getGestureRecognizerCount, 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, onTouch, 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 void clearStatus(SafeHtml html)
html
- the new html valuepublic Status.StatusAppearance getAppearance()
public void setBusy(String text)
text
- the text to displaypublic void setBusy(SafeHtml html)
html
- the html to displaypublic ImageResource getIcon()
HasIcon
public void setIcon(ImageResource icon)
HasIcon
public String getText()
getHTML()
public void setText(String text)
text
- the textpublic SafeHtml getSafeHtml()
public String getHTML()
public void setHTML(SafeHtml html)
html
- the htmlCopyright © 2018. All rights reserved.