public class Info extends Component
Modifier and Type | Class and Description |
---|---|
static interface |
Info.InfoAppearance |
Modifier and Type | Field and Description |
---|---|
protected InfoConfig |
config |
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 |
---|
Info()
Creates a new info instance.
|
Info(Info.InfoAppearance appearance)
Creates a new info appearance.
|
Modifier and Type | Method and Description |
---|---|
protected void |
afterHide() |
protected void |
afterShow() |
static void |
display(InfoConfig config)
Displays a message using the specified configuration
|
static void |
display(SafeHtml title,
SafeHtml message)
Displays a message with the given title and content.
|
static void |
display(String title,
String message)
Displays a message with the given title and text.
|
Info.InfoAppearance |
getAppearance()
Returns the appearance.
|
void |
hide()
Hide this widget.
|
protected void |
onShowInfo() |
protected Point |
position() |
void |
show(InfoConfig config)
Displays the info.
|
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, 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
protected InfoConfig config
public Info()
public Info(Info.InfoAppearance appearance)
appearance
- the info appearancepublic static void display(InfoConfig config)
config
- the info configurationpublic static void display(String title, String message)
title
- the title as textmessage
- the message as textpublic static void display(SafeHtml title, SafeHtml message)
title
- the title as HTMLmessage
- the message as HTMLpublic Info.InfoAppearance getAppearance()
public void hide()
Component
public void show(InfoConfig config)
config
- the info configuration.protected void afterHide()
protected void afterShow()
protected void onShowInfo()
protected Point position()
Copyright © 2018. All rights reserved.