public class Tooltip extends HoverBase
Technically it's an html <a>
tag. The text of the popup will be the
content of the anchor's title
attribute.
Popover
HasWidgets.ForIsWidget
animated, container, hideDelayInMilliseconds, placement, showDelayInMilliseconds, trigger
widget
Constructor and Description |
---|
Tooltip()
Creates an empty link without text and tooltip text.
|
Tooltip(String tooltip)
Creates a link with the
|
Modifier and Type | Method and Description |
---|---|
static void |
changeVisibility(Element e,
String visibility) |
protected void |
changeVisibility(VisibilityChange visibilityChange)
Changes the visibility of the widget.
|
static void |
configure(Element element,
boolean animated,
String placement,
String trigger,
int showDelay,
int hideDelay,
String container) |
static void |
configure(String selector,
String text,
boolean animated,
String placement,
String trigger,
int showDelay,
int hideDelay,
String container) |
static void |
configure(Widget e,
boolean animated,
Placement placement,
Trigger trigger,
int showDelay,
int hideDelay,
String container) |
protected String |
getDataName()
Get data name of JS Data API.
|
String |
getText() |
void |
reconfigure()
Redraws the widget with the currently set options.
|
protected void |
removeDataIfExists(Element e,
String dataName) |
void |
setText(String tooltop)
Sets the text that should appear in the tooltip.
|
asWidget, getAnimation, getContainer, getHideDelay, getPlacement, getShowDelay, getTrigger, hide, removeDataIfExists, setAnimation, setContainer, setDataAttribute, setHideDelay, setPlacement, setShowDelay, setTrigger, show, toggle
add, add, clear, getId, getWidget, iterator, remove, setId, setWidget, setWidget
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
add, clear, iterator, remove
getWidget, setWidget
setWidget
public Tooltip()
public void setText(String tooltop)
tooltop
- the textpublic void reconfigure()
reconfigure
in class HoverBase
protected void changeVisibility(VisibilityChange visibilityChange)
changeVisibility
in class HoverBase
visibilityChange
- the action to be performedpublic static void configure(Widget e, boolean animated, Placement placement, Trigger trigger, int showDelay, int hideDelay, String container)
e
- animated
- placement
- trigger
- showDelay
- hideDelay
- public static void configure(String selector, String text, boolean animated, String placement, String trigger, int showDelay, int hideDelay, String container)
public static void configure(Element element, boolean animated, String placement, String trigger, int showDelay, int hideDelay, String container)
public static void changeVisibility(Element e, String visibility)
protected String getDataName()
getDataName
in class HoverBase
protected void removeDataIfExists(Element e, String dataName)
removeDataIfExists
in class HoverBase
Copyright © 2012-2014 gwtbootstrap. All Rights Reserved.