|
|||||||||
| 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 |
|---|
| 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 | |
|---|---|
int |
getDismissDelay()
Returns the dismiss delay. |
int |
getHideDelay()
Returns the hide delay. |
int[] |
getMouseOffset()
Returns the mouse offsets. |
int |
getShowDelay()
Returns the show delay. |
void |
handleEvent(ComponentEvent ce)
Sent when an event that the listener has registered for occurs. |
void |
hide()
Hide this component. |
boolean |
isAutoHide()
Returns true if auto hide is enabled. |
boolean |
isTrackMouse()
Returns true if mouse tracking is enabled. |
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[] mouseOffset)
An XY offset from the mouse position where the tooltip should be shown (defaults to [10,10]). |
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()
Show this component. |
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. |
| Methods inherited from class com.extjs.gxt.ui.client.widget.tips.Tip |
|---|
getMaxWidth, getMinWidth, getShadowPosition, isClosable, setClosable, setMaxWidth, setMinWidth, setShadowPosition, showAt |
| Methods inherited from class com.extjs.gxt.ui.client.widget.ContentPanel |
|---|
addButton, collapse, expand, getAnimCollapse, getBodyBorder, getBodyStyle, getBottomComponent, getButtonAlign, getButtonBar, getCollapsible, getElement, getFooter, getFrame, getFrameHeight, getFrameWidth, getHeader, getInnerHeight, getInnerWidth, getLayoutTarget, getTitleCollapse, getTitleText, getTopComponent, getWidget, isExpanded, isHeaderVisible, isHideCollapseTool, onComponentEvent, setAnimCollapse, setBodyBorder, setBodyStyle, setBodyStyleName, setBottomComponent, setButtonAlign, setButtonBar, setCollapsible, setExpanded, setFooter, setFrame, setHeaderVisible, setHeading, setHideCollapseTool, setIconStyle, setInsetBorder, setTitleCollapse, setTopComponent, setUrl |
| Methods inherited from class com.extjs.gxt.ui.client.widget.LayoutContainer |
|---|
add, add, addText, findComponent, getLayout, getLayoutOnChange, insert, insert, isMonitorResize, isMonitorWindowResize, layout, remove, removeAll, setLayout, setLayoutData, setLayoutOnChange, setMonitorWindowResize |
| 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 |
|---|
findItem, getItem, getItemByItemId, getItemCount, getItems, getWidget, indexOf, iterator, scrollIntoView |
| Methods inherited from class com.extjs.gxt.ui.client.widget.BoxComponent |
|---|
getBounds, getHeight, getHeight, getPosition, getShadow, getSize, getWidth, getWidth, isAutoHeight, isAutoWidth, isDeferHeight, isShim, setAutoHeight, setAutoWidth, setBounds, setBounds, setDeferHeight, setHeight, setHeight, setPagePosition, setPagePosition, setPixelSize, setPosition, setShadow, setShim, setSize, setSize, setWidth, setWidth |
| Methods inherited from class com.extjs.gxt.ui.client.widget.Component |
|---|
addListener, addStyleName, addWidgetListener, disable, disableEvents, disableTextSelection, el, enable, enableEvents, fireEvent, fireEvent, fireEvent, fly, focus, getBaseStyle, getBorders, getData, getData, getElement, getId, getItemId, getModel, getState, getToolTip, hideToolTip, isEnabled, isRendered, isVisible, onBrowserEvent, recalculate, removeAllListeners, removeFromParent, removeListener, removeStyleName, removeWidgetListener, render, render, saveState, setBorders, setData, setData, setElement, setEnabled, setEnableState, setId, setIntStyleAttribute, setItemId, setStyleAttribute, setStyleName, setTitle, setToolTip, setToolTip, setVisible, toString |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
getParent, isAttached |
| Methods inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
addStyleDependentName, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getOffsetHeight, getOffsetWidth, getStyleName, getStylePrimaryName, getTitle, isVisible, removeStyleDependentName, setStylePrimaryName, setVisible, sinkEvents, unsinkEvents |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ToolTip()
public ToolTip(Component target)
target - the target widget
public ToolTip(Component target,
ToolTipConfig config)
target - the target widget| Method Detail |
|---|
public int getDismissDelay()
public int getHideDelay()
public int[] getMouseOffset()
public int getShowDelay()
public void handleEvent(ComponentEvent ce)
Listener
handleEvent in interface Listener<ComponentEvent>ce - the event which occurredpublic void hide()
Component
hide in class Componentpublic boolean isAutoHide()
public boolean isTrackMouse()
public void setAutoHide(boolean autoHide)
dismissDelay has expired if set (defaults to
true). If Tip.closable = true a close tool button will be rendered
into the tooltip header.
autoHide - the auto hide statepublic void setDismissDelay(int dismissDelay)
dismissDelay - the dismiss delay in millisecondspublic void setHideDelay(int hideDelay)
hideDelay - the hide delaypublic void setMouseOffset(int[] mouseOffset)
mouseOffset - the mouse offsetspublic void setShowDelay(int showDelay)
showDelay - the show delay in millisecondspublic void setTrackMouse(boolean trackMouse)
trackMouse - the track mouse statepublic void show()
Component
show in class Component
public void showAt(int x,
int y)
Tip
showAt in class Tipx - the x coordinatey - the y coordiatepublic void update(ToolTipConfig config)
config - the tool tip config
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||