| net.mygwt.ui.client.widget.Component net.mygwt.ui.client.widget.ToolTip
ToolTip | public class ToolTip extends Component implements Listener(Code) | | Displays a information popup when a user hovers over a widget.
- Events:
- BeforeOpen : (widget)
Fires before the tooltip is displayed. Listeners can set the
doit field to false to cancel the action.
- Open : (widget)
Fires after a tooltip is shown.
- BeforeClose : (widget)
Fires before the tooltip is hidden. Listeners can set the
doit field to false to cancel the action.
- Close : (widget)
Fires after a tooltip is hidden.
- CSS Styles:
- .my-tooltip { the tool tip }
- .my-tooltip .my-tooltip-title { title text }
- .my-tooltip .my-tooltip-text { body text }
|
ToolTip | public ToolTip(Component source)(Code) | | Creates a new tooltip.
Parameters: source - the source widget |
ToolTip | public ToolTip(Component source, Element mouseOver)(Code) | | Creates a new tooltip.
Parameters: source - the source widget Parameters: mouseOver - the mouse over element |
disable | public void disable()(Code) | | |
doHide | protected static void doHide()(Code) | | Hides the tool tip.
|
enable | public void enable()(Code) | | |
getDelay | public int getDelay()(Code) | | Returns the delay in milliseconds.
the delay |
getHideOnClick | public boolean getHideOnClick()(Code) | | Returns true if hide on click is enabled.
the hide on click state |
getSource | public Component getSource()(Code) | | Returns the tool tip source.
the source |
getTrackMouse | public boolean getTrackMouse()(Code) | | Returns true if track mouse is enabled.
the track mouse state |
getXOffset | public int getXOffset()(Code) | | Returns the x offset.
the x offset |
getYOffset | public int getYOffset()(Code) | | Returns the y offset.
the y offset |
hide | public void hide()(Code) | | Hides the tool tip.
|
isShowing | public boolean isShowing()(Code) | | Returns whether or not the tooltip is currently showing.
true if the tooltip is showing |
onRender | protected void onRender()(Code) | | |
onShowToolTip | protected void onShowToolTip(int x, int y)(Code) | | |
setDelay | public void setDelay(int delay)(Code) | | |
setHideOnClick | public void setHideOnClick(boolean hideOnClick)(Code) | | Specifies if the tool tip should be hidden when the source widget is
clicked. Default value is true .
Parameters: hideOnClick - true to enable |
setText | public void setText(String title, String text)(Code) | | Sets the tool tip's title and text.
Parameters: title - the title Parameters: text - the text |
setToolTipPosition | public void setToolTipPosition(int x, int y)(Code) | | |
setTrackMouse | public void setTrackMouse(boolean trackMouse)(Code) | | Specifies if the tool tip should move with the current cursor location.
Default value is false .
Parameters: trackMouse - true to enable mouse tracking |
setXOffset | public void setXOffset(int offset)(Code) | | Sets the x offset amount. Default value is 5.
Parameters: offset - the offset |
setYOffset | public void setYOffset(int offset)(Code) | | Sets the y offset amount. Default value is 15.
Parameters: offset - the y offset |
showAt | public void showAt(int x, int y)(Code) | | Displays the tool tip at the specified location. Offsets will be applie to
values.
Parameters: x - the x coordinate Parameters: y - the y coordinate |
Methods inherited from net.mygwt.ui.client.widget.Component | public void addListener(int eventType, Listener listener)(Code)(Java Doc) public void addStyleName(String style)(Code)(Java Doc) public void addWidgetListener(WidgetListener listener)(Code)(Java Doc) protected void afterRender()(Code)(Java Doc) protected Component blur()(Code)(Java Doc) public void disable()(Code)(Java Doc) protected void disableContextMenu(boolean disable)(Code)(Java Doc) public void disableTextSelection(boolean disable)(Code)(Java Doc) public void dispose()(Code)(Java Doc) public void enable()(Code)(Java Doc) public void enableEvents(boolean enable)(Code)(Java Doc) public boolean fireEvent(int type)(Code)(Java Doc) public boolean fireEvent(int type, BaseEvent be)(Code)(Java Doc) public boolean fireEvent(int eventType, Widget widget, Widget item)(Code)(Java Doc) public boolean fireEvent(int eventType, Widget widget, Widget item, int index)(Code)(Java Doc) public Component focus()(Code)(Java Doc) public Rectangle getBounds()(Code)(Java Doc) public Rectangle getBounds(boolean content)(Code)(Java Doc) protected Menu getContextMenu()(Code)(Java Doc) public Object getData()(Code)(Java Doc) public Object getData(String key)(Code)(Java Doc) public String getDisabledStyle()(Code)(Java Doc) public Element getElement()(Code)(Java Doc) protected Element getFocusElement()(Code)(Java Doc) public int getHeight()(Code)(Java Doc) public int getHeight(boolean content)(Code)(Java Doc) public String getId()(Code)(Java Doc) public int getStyle()(Code)(Java Doc) public ToolTip getToolTip()(Code)(Java Doc) public int getWidth()(Code)(Java Doc) public int getWidth(boolean content)(Code)(Java Doc) public void hide()(Code)(Java Doc) public boolean isDisposed()(Code)(Java Doc) public boolean isEnabled()(Code)(Java Doc) public boolean isRendered()(Code)(Java Doc) public boolean isVisible()(Code)(Java Doc) protected void onAttach()(Code)(Java Doc) public void onBaseEvent(BaseEvent be)(Code)(Java Doc) public void onBrowserEvent(Event event)(Code)(Java Doc) protected void onDestroy()(Code)(Java Doc) protected void onDetach()(Code)(Java Doc) protected void onDisable()(Code)(Java Doc) protected void onEnable()(Code)(Java Doc) protected void onHide()(Code)(Java Doc) protected void onHideContextMenu()(Code)(Java Doc) protected void onLoad()(Code)(Java Doc) protected void onRender()(Code)(Java Doc) protected void onResize(int width, int height)(Code)(Java Doc) protected void onRightClick(BaseEvent be)(Code)(Java Doc) protected void onShow()(Code)(Java Doc) protected void onShowContextMenu(int x, int y)(Code)(Java Doc) public void recalculate()(Code)(Java Doc) public void removeAllListeners()(Code)(Java Doc) public void removeFromParent()(Code)(Java Doc) public void removeListener(int eventType, Listener listener)(Code)(Java Doc) public void removeStyleName(String style)(Code)(Java Doc) public void removeWidgetListener(WidgetListener listener)(Code)(Java Doc) protected void render()(Code)(Java Doc) public void setBorders(boolean show)(Code)(Java Doc) public void setBounds(int x, int y, int width, int height)(Code)(Java Doc) public void setBounds(Rectangle rect)(Code)(Java Doc) protected void setContextMenu(Menu menu)(Code)(Java Doc) public void setData(Object data)(Code)(Java Doc) public void setData(String key, Object data)(Code)(Java Doc) public void setDisabledStyle(String style)(Code)(Java Doc) public void setElement(Element elem)(Code)(Java Doc) public void setEnabled(boolean enabled)(Code)(Java Doc) public void setHeight(int height)(Code)(Java Doc) public void setHeight(String height)(Code)(Java Doc) public void setId(String id)(Code)(Java Doc) public void setIntStyleAttribute(String attr, int value)(Code)(Java Doc) public void setPagePosition(int x, int y)(Code)(Java Doc) public void setPixelSize(int width, int height)(Code)(Java Doc) public void setSize(int width, int height)(Code)(Java Doc) public void setSize(String width, String height)(Code)(Java Doc) public void setStyleAttribute(String attr, String value)(Code)(Java Doc) public void setStyleName(String style)(Code)(Java Doc) public void setTitle(String title)(Code)(Java Doc) public void setToolTip(String text)(Code)(Java Doc) public void setToolTip(String title, String text)(Code)(Java Doc) public void setVisible(boolean visible)(Code)(Java Doc) public void setWidth(int width)(Code)(Java Doc) public void setWidth(String width)(Code)(Java Doc) public void show()(Code)(Java Doc) public void unhook(int type, EventListener listener)(Code)(Java Doc)
|
|
|