public class ToolTip extends Tip
Tip.TipAppearance
Modifier and Type | Field and Description |
---|---|
protected XElement |
anchorEl |
protected SafeHtml |
body |
protected Timer |
dismissTimer |
protected Timer |
hideTimer |
protected Timer |
showTimer |
protected Element |
target |
protected Point |
targetXY |
protected SafeHtml |
title |
close, constrainPosition, quickShowInterval, showing
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 |
---|
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 |
---|---|
protected void |
clearTimer(String timer) |
protected void |
clearTimers() |
void |
delayHide() |
protected void |
delayShow() |
protected Style.AnchorAlignment |
getAnchorAlign() |
protected int[] |
getOffsets() |
int |
getQuickShowInterval()
Returns the quick show interval.
|
protected Point |
getTargetXY(int targetCounter) |
ToolTipConfig |
getToolTipConfig()
Returns the current tool tip config.
|
void |
hide()
Hide this widget.
|
protected void |
init()
Creates a new tool tip.
|
void |
initTarget(Widget widget)
Binds the tool tip to the target widget.
|
protected void |
onAfterFirstAttach()
Called immediately after the first time the widget becomes attached to the browser's document only the first time.
|
protected void |
onMouseMove(Event event) |
protected void |
onTargetMouseMove(MouseMoveEvent event) |
protected void |
onTargetMouseOut(MouseOutEvent event) |
protected void |
onTargetMouseOver(MouseOverEvent event) |
protected void |
onTargetOut(Event ce) |
protected void |
onTargetOver(Event ce) |
protected void |
onTargetTouchMove(TouchMoveEvent event) |
protected void |
onWindowResize(int width,
int height) |
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.
|
protected void |
syncAnchor() |
void |
update(ToolTipConfig config)
Updates the tool tip with the given config.
|
protected void |
updateContent() |
doAttachChildren, doDetachChildren, getAppearance, getMaxWidth, getMinWidth, isClosable, onDisable, setClosable, setMaxWidth, setMinWidth, showAt
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, onAttach, onBlur, onBrowserEvent, onDetach, onEnable, onFocus, onHide, onHideContextMenu, onLoad, onPosition, onResize, onRightClick, onShow, onShowContextMenu, onTouch, onUnload, 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, sync, syncSize, unmask
protected XElement anchorEl
protected Timer dismissTimer
protected Timer hideTimer
protected Timer showTimer
protected Element target
protected Point targetXY
protected SafeHtml title
protected SafeHtml body
public ToolTip(Widget target)
target
- the target widgetpublic 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 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 configprotected void clearTimer(String timer)
protected void clearTimers()
public void delayHide()
protected void delayShow()
protected Style.AnchorAlignment getAnchorAlign()
protected int[] getOffsets()
protected void init()
protected void onAfterFirstAttach()
Component
onAfterFirstAttach
in class Component
protected void onMouseMove(Event event)
protected void onTargetMouseMove(MouseMoveEvent event)
protected void onTargetMouseOut(MouseOutEvent event)
protected void onTargetMouseOver(MouseOverEvent event)
protected void onTargetOut(Event ce)
protected void onTargetOver(Event ce)
protected void onTargetTouchMove(TouchMoveEvent event)
protected void onWindowResize(int width, int height)
onWindowResize
in class Component
protected void syncAnchor()
protected void updateContent()
updateContent
in class Tip
protected Point getTargetXY(int targetCounter)
Copyright © 2018. All rights reserved.