|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.extjs.gxt.ui.client.widget.Component
com.extjs.gxt.ui.client.widget.BoxComponent
com.extjs.gxt.ui.client.widget.Container<T>
com.extjs.gxt.ui.client.widget.ScrollContainer<Component>
com.extjs.gxt.ui.client.widget.LayoutContainer
com.extjs.gxt.ui.client.widget.ContentPanel
com.extjs.gxt.ui.client.widget.tips.Tip
com.extjs.gxt.ui.client.widget.tips.ToolTip
public class ToolTip
A standard tooltip implementation for providing additional information when hovering over a target element.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject |
---|
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled |
Field Summary | |
---|---|
protected El |
anchorEl
|
protected java.lang.String |
anchorStyle
|
protected com.google.gwt.user.client.Timer |
dismissTimer
|
protected com.google.gwt.user.client.Timer |
hideTimer
|
protected Listener<ComponentEvent> |
listener
|
protected com.google.gwt.user.client.Timer |
showTimer
|
protected Component |
target
|
protected Point |
targetXY
|
protected java.lang.String |
text
|
protected java.lang.String |
title
|
protected ToolTipConfig |
toolTipConfig
|
Fields inherited from class com.extjs.gxt.ui.client.widget.tips.Tip |
---|
constrainPosition, quickShowInterval |
Fields inherited from class com.extjs.gxt.ui.client.widget.ContentPanel |
---|
bbarStyle, bodStyle, body, bwrap, bwrapStyle, collapseStyle, fbar, footerStyle, frame, head, headerStyle, headerTextStyle, tbarStyle |
Fields inherited from class com.extjs.gxt.ui.client.widget.Container |
---|
attachChildren, enableLayout, layoutExecuted, layoutNeeded, layoutOnAttach, layoutOnChange |
Fields inherited from class com.extjs.gxt.ui.client.widget.BoxComponent |
---|
adjustSize, cacheSizes, ensureVisibilityOnSizing, height, lastSize, layer, shim, width |
Fields inherited from class com.extjs.gxt.ui.client.widget.Component |
---|
afterRender, attachables, baseStyle, disabled, disabledStyle, disableTextSelection, dummy, focusable, hidden, mask, maskMessage, maskMessageStyleName, monitorWindowResize, rendered, resizeHandler, setElementRender, stateId, swallowEvents, toolTip, windowResizeDelay, windowResizeTask |
Fields inherited from class com.google.gwt.user.client.ui.UIObject |
---|
DEBUG_ID_PREFIX |
Constructor Summary | |
---|---|
ToolTip()
Creates a new tool tip. |
|
ToolTip(Component target)
Creates a new tool tip. |
|
ToolTip(Component target,
ToolTipConfig config)
Creates a new tool tip for the given target. |
Method Summary | |
---|---|
protected void |
afterRender()
Called after the component has been rendered and is attached for the first time. |
protected void |
clearTimer(java.lang.String timer)
|
protected void |
clearTimers()
|
protected void |
delayHide()
|
protected void |
delayShow()
|
protected java.lang.String |
getAnchorAlign()
|
protected int[] |
getOffsets()
|
int |
getQuickShowInterval()
Returns the quick show interval. |
ToolTipConfig |
getToolTipConfig()
Returns the current tool tip config. |
void |
hide()
Hide this component. |
void |
initTarget(Component target)
|
protected void |
onMouseMove(ComponentEvent ce)
|
protected void |
onRender(com.google.gwt.user.client.Element target,
int index)
Subclasses must override and ensure setElement is called for lazy rendered components. |
protected void |
onTargetOut(ComponentEvent ce)
|
protected void |
onTargetOver(ComponentEvent ce)
|
protected void |
onWindowResize(int width,
int height)
|
void |
setQuickShowInterval(int quickShowInterval)
Sets the quick show interval (defaults to 250). |
void |
show()
Show this component. |
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()
|
Methods inherited from class com.extjs.gxt.ui.client.widget.tips.Tip |
---|
doAutoWidth, getMaxWidth, getMinWidth, isClosable, onDisable, setClosable, setMaxWidth, setMinWidth, showAt |
Methods inherited from class com.extjs.gxt.ui.client.widget.LayoutContainer |
---|
add, add, addText, findComponent, getLayout, getWindowResizeDelay, insert, insert, isLayoutOnChange, isMonitorWindowResize, layout, layout, onBlur, onFocus, remove, removeAll, setLayout, setLayoutData, setLayoutOnChange, setMonitorWindowResize, setWindowResizeDelay |
Methods inherited from class com.extjs.gxt.ui.client.widget.ScrollContainer |
---|
addScrollListener, getHScrollPosition, getScrollMode, getVScrollPosition, removeScrollListener, scrollIntoView, setHScrollPosition, setScrollMode, setVScrollPosition |
Methods inherited from class com.extjs.gxt.ui.client.widget.Container |
---|
add, adjustIndex, adopt, createContainerEvent, disable, doLayout, doLayout, enable, findItem, getItem, getItemByItemId, getItemCount, getItems, getWidget, indexOf, insert, isLayoutNeeded, iterator, onAfterLayout, onAttach, onBeforeLayoutExcecuted, onInsert, onLayoutExcecuted, onRemove, orphan, remove, removeAll, scrollIntoView, setLayoutNeeded, wrapWidget |
Methods inherited from class com.extjs.gxt.ui.client.widget.BoxComponent |
---|
adjustPosition, adjustSize, createComponentEvent, getBounds, getHeight, getHeight, getPosition, getPositionEl, getResizeEl, getShadow, getShadowOffset, getShadowPosition, getSize, getWidth, getWidth, hideShadow, hideShim, hideUnders, isAutoHeight, isAutoWidth, isDeferHeight, isShim, onHide, onPosition, onShow, onUnload, setAutoHeight, setAutoWidth, setBounds, setBounds, setDeferHeight, setHeight, setHeight, setPagePosition, setPagePosition, setPixelSize, setPosition, setShadow, setShadowOffset, setShadowPosition, setShim, setSize, setSize, setWidth, setWidth, sync, syncSize |
Methods inherited from class com.google.gwt.user.client.ui.Widget |
---|
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, setLayoutData |
Methods inherited from class com.google.gwt.user.client.ui.UIObject |
---|
addStyleDependentName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, isVisible, removeStyleDependentName, setElement, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setVisible, sinkBitlessEvent, unsinkEvents |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected El anchorEl
protected java.lang.String anchorStyle
protected com.google.gwt.user.client.Timer dismissTimer
protected com.google.gwt.user.client.Timer hideTimer
protected Listener<ComponentEvent> listener
protected com.google.gwt.user.client.Timer showTimer
protected Component target
protected Point targetXY
protected java.lang.String title
protected java.lang.String text
protected ToolTipConfig toolTipConfig
Constructor Detail |
---|
public ToolTip()
public ToolTip(Component target)
target
- the target widgetpublic ToolTip(Component target, ToolTipConfig config)
target
- the target widgetMethod Detail |
---|
public int getQuickShowInterval()
public ToolTipConfig getToolTipConfig()
public void hide()
Component
hide
in class Tip
public void initTarget(Component target)
public void setQuickShowInterval(int quickShowInterval)
quickShowInterval
- the quick show intervalpublic void show()
Component
show
in class Component
public void showAt(int x, int y)
Tip
showAt
in class Tip
x
- the x coordinatey
- the y coordinatepublic void update(ToolTipConfig config)
config
- the tool tip configprotected void afterRender()
Component
afterRender
in class ScrollContainer<Component>
protected void clearTimer(java.lang.String timer)
protected void clearTimers()
protected void delayHide()
protected void delayShow()
protected java.lang.String getAnchorAlign()
protected int[] getOffsets()
protected void onMouseMove(ComponentEvent ce)
protected void onRender(com.google.gwt.user.client.Element target, int index)
Component
onRender
in class Tip
target
- the target elementindex
- the insert locationprotected void onTargetOut(ComponentEvent ce)
protected void onTargetOver(ComponentEvent ce)
protected void onWindowResize(int width, int height)
onWindowResize
in class Component
protected void syncAnchor()
protected void updateContent()
updateContent
in class Tip
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |