|
|||||||||
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.gwtext.client.widgets.Component
com.gwtext.client.widgets.BoxComponent
com.gwtext.client.widgets.Container
com.gwtext.client.widgets.Panel
com.gwtext.client.widgets.Tip
com.gwtext.client.widgets.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 |
---|
Fields inherited from class com.gwtext.client.widgets.Component |
---|
config, id |
Fields inherited from class com.google.gwt.user.client.ui.UIObject |
---|
DEBUG_ID_PREFIX |
Constructor Summary | |
---|---|
ToolTip()
|
|
ToolTip(com.google.gwt.core.client.JavaScriptObject jsObj)
|
|
ToolTip(java.lang.String html)
|
Method Summary | |
---|---|
void |
applyTo(Component component)
Applies the tooltip to the specified target. |
void |
applyTo(com.google.gwt.user.client.Element target)
Applies the tooltip to the specified target. |
void |
applyTo(java.lang.String elementID)
Applies the tooltip to the specified target. |
protected com.google.gwt.core.client.JavaScriptObject |
create(com.google.gwt.core.client.JavaScriptObject config)
|
void |
hide()
Hides this tooltip if visible. |
void |
setAutoHide(boolean autoHide)
True to automatically hide the tooltip after the mouse exits the target element or after the dismissDelay has expired if set (defaults to true). |
void |
setDismissDelay(int dismissDelay)
Delay in milliseconds before the tooltip automatically hides (defaults to 5000). |
void |
setHideDelay(int hideDelay)
Delay in milliseconds after the mouse exits the target element but before the tooltip actually hides (defaults to 200). |
void |
setMouseOffset(int x,
int y)
An XY offset from the mouse position where the tooltip should be shown. |
void |
setShowDelay(int showDelay)
Delay in milliseconds before the tooltip displays after the mouse enters the target element (defaults to 500). |
void |
setTrackMouse(boolean trackMouse)
True to have the tooltip follow the mouse as it moves over the target element (defaults to false). |
void |
show()
Shows this tooltip at the current event target XY position. |
Methods inherited from class com.gwtext.client.widgets.Tip |
---|
setClosable, setDefaultAlign, setMaxWidth, setMinWidth, setShadow, setShadow, setWidth, showAt, showBy, showBy, showBy, showBy |
Methods inherited from class com.gwtext.client.widgets.Container |
---|
add, add, add, add, addListener, bubble, cascade, clear, doLayout, doLayout, findBy, findByID, findByType, getActiveItem, getActiveItemID, getAutoDestroy, getBufferResize, getComponent, getComponent, getComponents, getHideBorders, getItems, getLayout, getMonitorResize, insert, iterator, remove, remove, remove, remove, removeAll, removeAll, setActiveItem, setActiveItemID, setAutoDestroy, setBufferResize, setDefaults, setHideBorders, setLayout, setMonitorResize |
Methods inherited from class com.gwtext.client.widgets.BoxComponent |
---|
addListener, doOnRender, doOnRender, getAutoHeight, getAutoWidth, getBox, getBox, getHeight, getPosition, getPosition, getSize, getWidth, setAutoHeight, setAutoWidth, setHeight, setHeight, setPagePosition, setPosition, setSize, setSize, setWidth, syncSize, updateBox |
Methods inherited from class com.google.gwt.user.client.ui.Widget |
---|
doAttachChildren, doDetachChildren, getParent, isAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent |
Methods inherited from class com.google.gwt.user.client.ui.UIObject |
---|
ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, isVisible, onEnsureDebugId, setElement, setPixelSize, setStyleName, setStyleName, setStylePrimaryName, setVisible, sinkEvents, unsinkEvents |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ToolTip()
public ToolTip(java.lang.String html)
public ToolTip(com.google.gwt.core.client.JavaScriptObject jsObj)
Method Detail |
---|
protected com.google.gwt.core.client.JavaScriptObject create(com.google.gwt.core.client.JavaScriptObject config)
create
in class Tip
public void setAutoHide(boolean autoHide)
autoHide
- true to auto hidepublic void setDismissDelay(int dismissDelay)
dismissDelay
- the dismiss delaypublic void setHideDelay(int hideDelay)
hideDelay
- the hide delaypublic void setMouseOffset(int x, int y)
x
- the X offsety
- the Y offsetpublic void setShowDelay(int showDelay)
showDelay
- the show delaypublic void setTrackMouse(boolean trackMouse)
trackMouse
- true to track mousepublic void hide()
hide
in class Component
public void show()
show
in class Component
public void applyTo(com.google.gwt.user.client.Element target)
target
- the target elementpublic void applyTo(java.lang.String elementID)
elementID
- the target element IDpublic void applyTo(Component component)
component
- the component to apply the tooltip to
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |