public class ToolTip extends Tip
Tip.TipAppearance
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled
DEBUG_ID_PREFIX
Constructor and Description |
---|
ToolTip(Tip.TipAppearance appearance)
Creates a new tool tip.
|
ToolTip(ToolTipConfig config)
Creates a new tool tip.
|
ToolTip(Widget target)
Creates a new tool tip.
|
ToolTip(Widget target,
Tip.TipAppearance appearance)
Creates a new tool tip.
|
ToolTip(Widget target,
ToolTipConfig config)
Creates a new tool tip for the given target.
|
Modifier and Type | Method and Description |
---|---|
int |
getQuickShowInterval()
Returns the quick show interval.
|
ToolTipConfig |
getToolTipConfig()
Returns the current tool tip config.
|
void |
hide()
Hide this widget.
|
void |
initTarget(Widget widget)
Binds the tool tip to the target widget.
|
void |
setQuickShowInterval(int quickShowInterval)
Sets the quick show interval (defaults to 250).
|
void |
show()
Show this widget.
|
void |
showAt(int x,
int y)
Shows this tip at the specified position.
|
void |
update(ToolTipConfig config)
Updates the tool tip with the given config.
|
getAppearance, getMaxWidth, getMinWidth, isClosable, setClosable, setMaxWidth, setMinWidth, showAt
addBeforeHideHandler, addBeforeShowContextMenuHandler, addBeforeShowHandler, addBlurHandler, addDisableHandler, addEnableHandler, addFocusHandler, addHideHandler, addMoveHandler, addResizeHandler, addShowContextMenuHandler, addShowHandler, addStyleOnOver, clearSizeCache, disable, disableEvents, enable, enableEvents, fireEvent, focus, getData, getElement, getFocusSupport, getHideMode, getId, getItemId, getOffsetHeight, getOffsetWidth, getShadow, getShadowPosition, getStateId, getTabIndex, getToolTip, hideToolTip, isAllowTextSelection, isAutoHeight, isAutoWidth, isDeferHeight, isEnabled, isRendered, isStateful, isVisible, isVisible, mask, mask, onBrowserEvent, removeToolTip, setAllowTextSelection, setBorders, setBounds, setBounds, setContextMenu, setData, setDeferHeight, setEnabled, setHeight, setHeight, setHideMode, setId, setItemId, setPagePosition, setPixelSize, setPosition, setShadow, setShadowPosition, setSize, setStateful, setStateId, setTabIndex, setToolTip, setToolTip, setToolTipConfig, setVisible, setWidth, setWidth, sync, syncSize, unmask
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, getLayoutData, getParent, isAttached, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getOffsetHeight, getOffsetWidth, getStyleName, getStylePrimaryName, getTitle, isVisible, removeStyleDependentName, removeStyleName, setStyleDependentName, setStyleName, setStyleName, setStylePrimaryName, setTitle, setVisible, sinkBitlessEvent, toString
public ToolTip(Widget target)
target
- the target widgetpublic ToolTip(Tip.TipAppearance appearance)
appearance
- the appearancepublic ToolTip(Widget target, Tip.TipAppearance appearance)
target
- the target widgetappearance
- the appearancepublic ToolTip(Widget target, ToolTipConfig config)
target
- the target widgetconfig
- the tool tip configpublic ToolTip(ToolTipConfig config)
config
- the tool tip configpublic int getQuickShowInterval()
public ToolTipConfig getToolTipConfig()
public void hide()
Component
public void initTarget(Widget widget)
widget
- the target widgetpublic void setQuickShowInterval(int quickShowInterval)
quickShowInterval
- the quick show intervalpublic void show()
Component
public void showAt(int x, int y)
Tip
public void update(ToolTipConfig config)
config
- the tool tip configCopyright © 2015. All rights reserved.