com.github.gwtbootstrap.client.ui
Class Tooltip

java.lang.Object
  extended by com.google.gwt.user.client.ui.UIObject
      extended by com.google.gwt.user.client.ui.Widget
          extended by com.google.gwt.user.client.ui.Panel
              extended by com.google.gwt.user.client.ui.ComplexPanel
                  extended by com.github.gwtbootstrap.client.ui.base.ComplexWidget
                      extended by com.github.gwtbootstrap.client.ui.base.HoverBase
                          extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled
 
Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.HasWidgets
HasWidgets.ForIsWidget
 
Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.IndexedPanel
IndexedPanel.ForIsWidget
 
Field Summary
 
Fields inherited from class com.github.gwtbootstrap.client.ui.base.HoverBase
animated, hideDelayInMilliseconds, placement, showDelayInMilliseconds, trigger
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
Tooltip()
          Creates an empty link without text and tooltip text.
Tooltip(String tooltip)
          Creates a link with the
 
Method Summary
static void changeVisibility(Element e, String visibility)
           
protected  void changeVisibility(VisibilityChange visibilityChange)
          Changes the visibility of the widget.
static void configure(Widget e, boolean animated, Placement placement, Trigger trigger, int showDelay, int hideDelay)
           
protected  String getDataName()
          Get data name of JS Data API.
 String getText()
           
 void reconfigure()
          Redraws the widget with the currently set options.
 void setText(String tooltop)
          Sets the text that should appear in the tooltip.
 
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.github.gwtbootstrap.client.ui.base.ComplexWidget
addStyle, insert, removeStyle, setHideOn, setShowOn, setStyle
 
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.Panel
add, adopt, adopt, clear, disown, doAttachChildren, doDetachChildren, orphan, 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 class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.google.gwt.user.client.ui.HasWidgets
clear
 

Constructor Detail

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
Method Detail

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.