public class MaterialTooltip extends Object implements JsLoader, com.google.gwt.user.client.ui.IsWidget, com.google.gwt.user.client.ui.HasWidgets, com.google.gwt.user.client.ui.HasOneWidget, HasId, com.google.gwt.user.client.ui.HasText, HasPosition, HasReload
<m:MaterialTooltip text="...">
...
</b:MaterialTooltip>
Constructor and Description |
---|
MaterialTooltip()
Creates the empty Tooltip
|
MaterialTooltip(com.google.gwt.user.client.ui.Widget w)
Creates the tooltip around this widget
|
MaterialTooltip(com.google.gwt.user.client.ui.Widget w,
String text)
Creates the tooltip around this widget with given title
|
Modifier and Type | Method and Description |
---|---|
void |
add(com.google.gwt.user.client.ui.Widget child) |
com.google.gwt.user.client.ui.Widget |
asWidget() |
void |
clear() |
protected void |
command(String command) |
int |
getDelayMs() |
String |
getHtml()
Get the html of the tooltip.
|
String |
getId() |
Position |
getPosition() |
String |
getText()
Gets the tooltip's display string
|
String |
getTooltipHTML()
Deprecated.
Use
getHtml() |
com.google.gwt.user.client.ui.Widget |
getWidget() |
Iterator<com.google.gwt.user.client.ui.Widget> |
iterator() |
void |
load() |
void |
reload() |
void |
remove()
Deprecated.
use
unload() |
boolean |
remove(com.google.gwt.user.client.ui.Widget w) |
void |
setAttribute(String attr,
String value) |
void |
setDelayMs(int delayMs) |
void |
setHtml(String html)
Set the html as value inside the tooltip.
|
void |
setId(String id) |
void |
setPosition(Position position) |
void |
setText(String text)
Sets the tooltip's display string
|
void |
setTooltipHTML(String html)
Deprecated.
|
void |
setWidget(com.google.gwt.user.client.ui.IsWidget w) |
void |
setWidget(com.google.gwt.user.client.ui.Widget widget) |
String |
toString() |
void |
unload() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
public MaterialTooltip()
public MaterialTooltip(com.google.gwt.user.client.ui.Widget w)
w
- widget for the tooltippublic MaterialTooltip(com.google.gwt.user.client.ui.Widget w, String text)
w
- widget for the tooltiptext
- text for the tooltip@Deprecated public void remove()
unload()
public void clear()
clear
in interface com.google.gwt.user.client.ui.HasWidgets
public boolean remove(com.google.gwt.user.client.ui.Widget w)
remove
in interface com.google.gwt.user.client.ui.HasWidgets
public com.google.gwt.user.client.ui.Widget asWidget()
asWidget
in interface com.google.gwt.user.client.ui.IsWidget
public void setWidget(com.google.gwt.user.client.ui.Widget widget)
setWidget
in interface com.google.gwt.user.client.ui.HasOneWidget
public void add(com.google.gwt.user.client.ui.Widget child)
add
in interface com.google.gwt.user.client.ui.HasWidgets
public void setWidget(com.google.gwt.user.client.ui.IsWidget w)
setWidget
in interface com.google.gwt.user.client.ui.AcceptsOneWidget
public com.google.gwt.user.client.ui.Widget getWidget()
getWidget
in interface com.google.gwt.user.client.ui.HasOneWidget
public void setPosition(Position position)
setPosition
in interface HasPosition
public Position getPosition()
getPosition
in interface HasPosition
public void setDelayMs(int delayMs)
public int getDelayMs()
public String getText()
getText
in interface com.google.gwt.user.client.ui.HasText
public void setText(String text)
setText
in interface com.google.gwt.user.client.ui.HasText
text
- String display string@Deprecated public String getTooltipHTML()
getHtml()
@Deprecated public void setTooltipHTML(String html)
setHtml(java.lang.String)
public void setAttribute(String attr, String value)
Copyright © 2018. All rights reserved.