public class MaterialTooltip extends Object implements 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
| 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(com.google.gwt.dom.client.Element e,
String command) |
protected void |
configure() |
protected void |
configure(com.google.gwt.dom.client.Element e,
String tooltip,
String position,
int delay) |
int |
getDelayMs() |
String |
getId() |
Position |
getPosition() |
String |
getText()
Gets the tooltip's display string
|
com.google.gwt.user.client.ui.Widget |
getWidget() |
Iterator<com.google.gwt.user.client.ui.Widget> |
iterator() |
void |
reconfigure()
Reconfigures the tooltip, must be called when altering
any tooltip after it has already been shown.
|
void |
remove()
Force the Tooltip to be destroyed
|
boolean |
remove(com.google.gwt.user.client.ui.Widget w) |
void |
setDelayMs(int delayMs) |
void |
setId(String id) |
void |
setPosition(Position position) |
void |
setText(String text)
Sets the tooltip's display string
|
void |
setWidget(com.google.gwt.user.client.ui.IsWidget w) |
void |
setWidget(com.google.gwt.user.client.ui.Widget w) |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic 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 tooltippublic void setWidget(com.google.gwt.user.client.ui.Widget w)
setWidget in interface com.google.gwt.user.client.ui.HasOneWidgetpublic void add(com.google.gwt.user.client.ui.Widget child)
add in interface com.google.gwt.user.client.ui.HasWidgetspublic void setWidget(com.google.gwt.user.client.ui.IsWidget w)
setWidget in interface com.google.gwt.user.client.ui.AcceptsOneWidgetpublic com.google.gwt.user.client.ui.Widget getWidget()
getWidget in interface com.google.gwt.user.client.ui.HasOneWidgetpublic void setPosition(Position position)
setPosition in interface HasPositionpublic Position getPosition()
getPosition in interface HasPositionpublic void setDelayMs(int delayMs)
public int getDelayMs()
public String getText()
getText in interface com.google.gwt.user.client.ui.HasTextpublic void setText(String text)
setText in interface com.google.gwt.user.client.ui.HasTexttext - String display stringpublic void reconfigure()
protected void configure()
public void remove()
public void clear()
clear in interface com.google.gwt.user.client.ui.HasWidgetspublic boolean remove(com.google.gwt.user.client.ui.Widget w)
remove in interface com.google.gwt.user.client.ui.HasWidgetspublic com.google.gwt.user.client.ui.Widget asWidget()
asWidget in interface com.google.gwt.user.client.ui.IsWidgetprotected void configure(com.google.gwt.dom.client.Element e, String tooltip, String position, int delay)
Copyright © 2016. All rights reserved.