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.DebugIdImplEnabled
HasWidgets.ForIsWidget
IndexedPanel.ForIsWidget
DEBUG_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, setStyle
add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, insert, iterator, remove, remove
add, adopt, adopt, clear, disown, doAttachChildren, doDetachChildren, orphan, remove
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
clear, 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.