com.github.gwtbootstrap.client.ui
Class Tooltip
java.lang.Object
com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.Panel
com.google.gwt.user.client.ui.ComplexPanel
com.github.gwtbootstrap.client.ui.base.ComplexWidget
com.github.gwtbootstrap.client.ui.base.HoverBase
com.github.gwtbootstrap.client.ui.Tooltip
- All Implemented Interfaces:
- HasPlacement, HasShowDelay, HasStyle, HasTrigger, IsAnimated, IsResponsive, HasAttachHandlers, HasHandlers, EventListener, AcceptsOneWidget, HasOneWidget, HasText, HasVisibility, HasWidgets, HasWidgets.ForIsWidget, IndexedPanel, IndexedPanel.ForIsWidget, IsWidget, Iterable<Widget>
public class Tooltip
- extends HoverBase
Link with a small tooltip with additional information.
Technically it's an html <a>
tag. The text of the popup will be the
content of the anchor's title
attribute.
- Since:
- 2.0.4.0
- Author:
- Dominik Mayer
- See Also:
- Bootstrap documentation,
Popover
Constructor Summary |
Tooltip()
Creates an empty link without text and tooltip text. |
Tooltip(String tooltip)
Creates a link with the |
Methods inherited from class com.github.gwtbootstrap.client.ui.base.HoverBase |
add, getAnimation, getContainerElement, getDataAttribute, getHideDelay, getPlacement, getShowDelay, getTrigger, getWidget, hide, iterator, onLoad, remove, removeDataIfExists, removeDataIfExists, setAnimation, setDataAttribute, setHideDelay, setPlacement, setShowDelay, setTrigger, setWidget, setWidget, show, toggle |
Methods inherited from class com.google.gwt.user.client.ui.ComplexPanel |
add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, insert, remove |
Methods inherited from class com.google.gwt.user.client.ui.Widget |
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onUnload, removeFromParent, setLayoutData, sinkEvents |
Methods inherited from class com.google.gwt.user.client.ui.UIObject |
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString, unsinkEvents |
Methods inherited from interface com.google.gwt.user.client.ui.HasWidgets |
clear |
Tooltip
public Tooltip()
- Creates an empty link without text and tooltip text.
Tooltip
public Tooltip(String tooltip)
- Creates a link with the
- Parameters:
tooltip
- get
setText
public void setText(String tooltop)
- Sets the text that should appear in the tooltip.
- Parameters:
tooltop
- the text
getText
public String getText()
reconfigure
public void reconfigure()
- Redraws the widget with the currently set options. This must not
be called when a parameter is updated because it would deactivate all
other parameters. No idea why...
- Specified by:
reconfigure
in class HoverBase
changeVisibility
protected void changeVisibility(VisibilityChange visibilityChange)
- Changes the visibility of the widget.
- Specified by:
changeVisibility
in class HoverBase
- Parameters:
visibilityChange
- the action to be performed
configure
public static void configure(Widget e,
boolean animated,
Placement placement,
Trigger trigger,
int showDelay,
int hideDelay)
- Parameters:
e
- animated
- placement
- trigger
- showDelay
- hideDelay
-
changeVisibility
public static void changeVisibility(Element e,
String visibility)
getDataName
protected String getDataName()
- Get data name of JS Data API.
- Specified by:
getDataName
in class HoverBase
- Returns:
- data name
Copyright © 2012 gwtbootstrap. All Rights Reserved.