public class CmsToolTipHandler
extends java.lang.Object
implements com.google.gwt.event.dom.client.MouseOverHandler, com.google.gwt.event.dom.client.MouseMoveHandler, com.google.gwt.event.dom.client.MouseOutHandler
| 构造器和说明 |
|---|
CmsToolTipHandler(com.google.gwt.event.dom.client.HasAllMouseHandlers target,
java.lang.String toolTipHtml)
Constructor.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
clearShowing()
Removes the tool-tip and mouse move and out handlers.
|
java.lang.String |
getToolTipHtml()
Returns the tool-tip HTML.
|
boolean |
isShowing()
Returns if the tool-tip is showing.
|
void |
onMouseMove(com.google.gwt.event.dom.client.MouseMoveEvent event) |
void |
onMouseOut(com.google.gwt.event.dom.client.MouseOutEvent event) |
void |
onMouseOver(com.google.gwt.event.dom.client.MouseOverEvent event) |
void |
removeHandler()
Removes this tool-tip handler completely.
|
void |
setOffsetLeft(int offsetLeft)
Sets the tool-tip left offset.
|
void |
setOffsetTop(int offsetTop)
Sets the tool-tip top offset.
|
void |
setToolTipHtml(java.lang.String toolTipHtml)
Sets the tool-tip HTML.
|
public CmsToolTipHandler(com.google.gwt.event.dom.client.HasAllMouseHandlers target,
java.lang.String toolTipHtml)
target - the target to show the tool-tip ontoolTipHtml - the tool-tip contentpublic void clearShowing()
public java.lang.String getToolTipHtml()
public boolean isShowing()
true if the tool-tip is showingpublic void onMouseMove(com.google.gwt.event.dom.client.MouseMoveEvent event)
onMouseMove 在接口中 com.google.gwt.event.dom.client.MouseMoveHandlerMouseMoveHandler.onMouseMove(com.google.gwt.event.dom.client.MouseMoveEvent)public void onMouseOut(com.google.gwt.event.dom.client.MouseOutEvent event)
onMouseOut 在接口中 com.google.gwt.event.dom.client.MouseOutHandlerMouseOutHandler.onMouseOut(com.google.gwt.event.dom.client.MouseOutEvent)public void onMouseOver(com.google.gwt.event.dom.client.MouseOverEvent event)
onMouseOver 在接口中 com.google.gwt.event.dom.client.MouseOverHandlerMouseOverHandler.onMouseOver(com.google.gwt.event.dom.client.MouseOverEvent)public void removeHandler()
public void setOffsetLeft(int offsetLeft)
offsetLeft - the tool-tip left offset to setpublic void setOffsetTop(int offsetTop)
offsetTop - the tool-tip top offset to setpublic void setToolTipHtml(java.lang.String toolTipHtml)
toolTipHtml - the tool-tip HTML to set