public class Heading extends ComplexWidget implements HasText
<b:Heading size="2" subtext="And I'm the subtext">I'm the heading</b:Heading>
Specifying the size is mandatory.
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabledHasWidgets.ForIsWidgetIndexedPanel.ForIsWidgetDEBUG_ID_PREFIX| Constructor and Description |
|---|
Heading(int size)
Creates a new Heading of given size.
|
Heading(int size,
String text)
Creates a new Heading of given size and text.
|
Heading(int size,
String text,
String subtext)
Creates a new Heading of given size, text and subtext.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getText() |
void |
setSubtext(String subtext)
Sets the heading's subtext.
|
void |
setText(String text) |
add, addStyle, insert, removeStyle, setHideOn, setShowOn, setStyleadd, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, insert, iterator, remove, removeadd, adopt, adopt, clear, disown, doAttachChildren, doDetachChildren, orphan, removeaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEventsaddStyleDependentName, 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, unsinkEventsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitclear, iterator, remove@UiConstructor public Heading(int size)
size - the size of the headingpublic Heading(int size, String text)
size - size of the headingtext - text of the headingCopyright © 2012-2014 gwtbootstrap. All Rights Reserved.