com.github.gwtbootstrap.client.ui
Class Abbreviation
java.lang.Object
com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.github.gwtbootstrap.client.ui.base.AbstractTypography
com.github.gwtbootstrap.client.ui.Abbreviation
- All Implemented Interfaces:
- HasStyle, IsResponsive, HasAttachHandlers, HasHandlers, EventListener, HasText, HasVisibility, IsWidget
public class Abbreviation
- extends AbstractTypography
A text element that shows more information in a tooltip.
It is usually used to show the meaning of abbreviations. The text is lightly
underlined and on hover, the default cursor is replaced with a help cursor.
UiBinder Usage:
<b:Abbreviation title="This is the tooltip.">Some text</b:Abbreviation>
- Since:
- 2.0.4.0
- Author:
- Carlos Alexandro Becker, Dominik Mayer
- See Also:
- Bootstrap
documentation
Constructor Summary |
Abbreviation(String title)
Creates an empty Abbreviation with only the content for the tooltip set. |
Abbreviation(String text,
String title)
Creates a new Abbreviation with both text and title set. |
Method Summary |
void |
setInitalism(boolean initialism)
Specifies whether a slightly smaller text size should be used for the
abbreviation. |
Methods inherited from class com.google.gwt.user.client.ui.Widget |
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, 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 |
Abbreviation
public Abbreviation(String text,
String title)
- Creates a new Abbreviation with both text and title set.
- Parameters:
text
- the underlined texttitle
- the content of the popup
Abbreviation
@UiConstructor
public Abbreviation(String title)
- Creates an empty Abbreviation with only the content for the tooltip set.
- Parameters:
title
- The content of the popup
setInitalism
public void setInitalism(boolean initialism)
- Specifies whether a slightly smaller text size should be used for the
abbreviation. This does not affect the tooltip.
- Parameters:
initialism
- true
for the slightly smaller size. Default:
false
Copyright © 2012 gwtbootstrap. All Rights Reserved.