|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gwtbootstrap3.client.ui.Tooltip
public class Tooltip
Basic implementation for the Bootstrap tooltip
Bootstrap Documentation
<b:Tooltip text="...">
...
</b:Tooltip>
** Must call reconfigure() after altering any/all Tooltips!
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.HasWidgets |
|---|
HasWidgets.ForIsWidget |
| Constructor Summary | |
|---|---|
Tooltip()
Creates the empty Tooltip |
|
Tooltip(Widget w)
Creates the tooltip around this widget |
|
| Method Summary | |
|---|---|
void |
add(Widget child)
|
HandlerRegistration |
addHiddenHandler(HiddenHandler hiddenHandler)
Adds a hidden handler to the Tooltip that will be fired when the Tooltip's hidden event is fired |
HandlerRegistration |
addHideHandler(HideHandler hideHandler)
Adds a hide handler to the Tooltip that will be fired when the Tooltip's hide event is fired |
HandlerRegistration |
addShowHandler(ShowHandler showHandler)
Adds a show handler to the Tooltip that will be fired when the Tooltip's show event is fired |
HandlerRegistration |
addShownHandler(ShownHandler shownHandler)
Adds a shown handler to the Tooltip that will be fired when the Tooltip's shown event is fired |
Widget |
asWidget()
|
void |
clear()
|
void |
destroy()
Force the Tooltip to be destroyed |
String |
getContainer()
Get where the hover will render it's HTML code |
int |
getHideDelayMs()
Get the delay in MS to hide the hover component |
String |
getId()
Gets the ID of the widget |
Placement |
getPlacement()
Get the Placement of the hover component |
int |
getShowDelayMs()
Get the delay in MS to show the hover component |
String |
getTitle()
Gets the tooltip's display string |
Trigger |
getTrigger()
Get the hover component's trigger |
Widget |
getWidget()
|
void |
hide()
Force hide the Tooltip |
boolean |
isAnimated()
Get whether or not the hover widget will be animated |
boolean |
isHtml()
Get whether or not the hover widget will render HTML |
Iterator<Widget> |
iterator()
|
protected void |
onHidden(Event evt)
Can be override by subclasses to handle Tooltip's "hidden" event however it's recommended to add an event handler to the tooltip. |
protected void |
onHide(Event evt)
Can be override by subclasses to handle Tooltip's "hide" event however it's recommended to add an event handler to the tooltip. |
protected void |
onShow(Event evt)
Can be override by subclasses to handle Tooltip's "show" event however it's recommended to add an event handler to the tooltip. |
protected void |
onShown(Event evt)
Can be override by subclasses to handle Tooltip's "shown" event however it's recommended to add an event handler to the tooltip. |
void |
reconfigure()
Reconfigures the tooltip, must be called when altering any tooltip after it has already been shown |
boolean |
remove(Widget w)
|
void |
setContainer(String container)
Sets the custom container that the hover's HTML will render in |
void |
setHideDelayMs(int hideDelayMs)
Set the delay in MS that the hover component takes to hide |
void |
setId(String id)
Sets the ID on the widget |
void |
setIsAnimated(boolean isAnimated)
Set whether or not to animate the displaying of the hover widget |
void |
setIsHtml(boolean isHTML)
Set to make the hover widget display HTML code |
void |
setPlacement(Placement placement)
Sets the placement of the hover component |
void |
setShowDelayMs(int showDelayMs)
Set the delay in MS that the hover component takes to display |
void |
setTitle(String title)
Sets the tooltip's display string |
void |
setTrigger(Trigger trigger)
Set what will trigger the showing of the hover component |
void |
setWidget(IsWidget w)
|
void |
setWidget(Widget w)
|
void |
show()
Force show the Tooltip |
void |
toggle()
Toggle the Tooltip to either show/hide |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Tooltip()
public Tooltip(Widget w)
w - widget for the tooltip| Method Detail |
|---|
public void setWidget(Widget w)
setWidget in interface HasOneWidgetpublic void add(Widget child)
add in interface HasWidgetspublic void setWidget(IsWidget w)
setWidget in interface AcceptsOneWidgetpublic Widget getWidget()
getWidget in interface HasOneWidgetpublic void setId(String id)
setId in interface HasIdid - String desired IDpublic String getId()
getId in interface HasIdpublic void setIsAnimated(boolean isAnimated)
HasHover
setIsAnimated in interface HasHoverisAnimated - boolean to animate or notpublic boolean isAnimated()
isAnimated in interface HasHoverpublic void setIsHtml(boolean isHTML)
setIsHtml in interface HasHoverisHTML - boolean to render HTML code or notpublic boolean isHtml()
isHtml in interface HasHoverpublic void setPlacement(Placement placement)
setPlacement in interface HasHoverplacement - Placement of the hover componentpublic Placement getPlacement()
getPlacement in interface HasHoverpublic void setTrigger(Trigger trigger)
setTrigger in interface HasHovertrigger - Trigger how the hover component will showpublic Trigger getTrigger()
getTrigger in interface HasHoverpublic void setShowDelayMs(int showDelayMs)
HasHover
setShowDelayMs in interface HasHovershowDelayMs - int number of MS to delay the displaypublic int getShowDelayMs()
getShowDelayMs in interface HasHoverpublic void setHideDelayMs(int hideDelayMs)
setHideDelayMs in interface HasHoverhideDelayMs - int number of MS to delay the hidepublic int getHideDelayMs()
getHideDelayMs in interface HasHoverpublic void setContainer(String container)
setContainer in interface HasHovercontainer - String selector of where to render the hover's HTML codepublic String getContainer()
getContainer in interface HasHoverpublic String getTitle()
public void setTitle(String title)
title - String display stringpublic void reconfigure()
public void toggle()
public void show()
public void hide()
public void destroy()
protected void onShow(Event evt)
evt - EventShowEventprotected void onShown(Event evt)
evt - EventShownEventprotected void onHide(Event evt)
evt - EventHideEventprotected void onHidden(Event evt)
evt - EventHiddenEventpublic HandlerRegistration addShowHandler(ShowHandler showHandler)
showHandler - ShowHandler to handle the show event
public HandlerRegistration addShownHandler(ShownHandler shownHandler)
shownHandler - ShownHandler to handle the shown event
public HandlerRegistration addHideHandler(HideHandler hideHandler)
hideHandler - HideHandler to handle the hide event
public HandlerRegistration addHiddenHandler(HiddenHandler hiddenHandler)
hiddenHandler - HiddenHandler to handle the hidden event
public void clear()
clear in interface HasWidgetspublic Iterator<Widget> iterator()
iterator in interface HasWidgetsiterator in interface Iterable<Widget>public boolean remove(Widget w)
remove in interface HasWidgetspublic Widget asWidget()
asWidget in interface IsWidgetpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||