com.github.gwtbootstrap.client.ui
Class Abbreviation

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

Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled
 
Field Summary
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
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.github.gwtbootstrap.client.ui.base.AbstractTypography
addStyle, getText, removeStyle, setHideOn, setShowOn, setStyle, setText
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Abbreviation

public Abbreviation(String text,
                    String title)
Creates a new Abbreviation with both text and title set.

Parameters:
text - the underlined text
title - 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
Method Detail

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.