|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.Panel
com.google.gwt.user.client.ui.ComplexPanel
org.gwtbootstrap3.client.ui.base.ComplexWidget
org.gwtbootstrap3.client.ui.Heading
public class Heading
Represents a Heading tag, has an optional subtext.
<b:Heading size="H1">
<b:Text text="Heading"/>
<b:Small text=" subtext"/>
</b:Heading>
<b:Heading size="H1" text="Heading Text" subText="Subtext Text"/>
<b:Heading size="H1" subText="Subtext Text" text="Heading Text"/>
<b:Heading size="H1">
<b:Icon type="..."/>
<b:Text text="Heading with icon"/>
</b:Heading>
<b:Heading size="H1">
<b:Icon type="..."/>
<b:Text text="Heading with icon"/>
<b:Small text=" subtext"/>
</b:Heading>
Heading h1 = new Heading(1, "Heading Text");
h1.setSubText("Subtext Text"); // optional
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled |
| Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.HasWidgets |
|---|
HasWidgets.ForIsWidget |
| Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.IndexedPanel |
|---|
IndexedPanel.ForIsWidget |
| Field Summary |
|---|
| Fields inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
DEBUG_ID_PREFIX |
| Constructor Summary | |
|---|---|
Heading(HeadingSize size)
Creates a Heading with the passed in size. |
|
Heading(HeadingSize size,
String text)
Creates a Heading with the passed in size and text. |
|
Heading(HeadingSize size,
String text,
String subText)
Creates a Heading with the passed in size and text. |
|
| Method Summary | |
|---|---|
Alignment |
getAlignment()
Get the object's alignment. |
Emphasis |
getEmphasis()
Get the object's emphasis. |
String |
getSubText()
Returns the subtext of the heading. |
String |
getText()
|
protected void |
onAttach()
|
void |
setAlignment(Alignment alignment)
Sets this object's alignment. |
void |
setEmphasis(Emphasis emphasis)
Sets the object's emphasis. |
void |
setSubText(String subText)
Sets the subtext for the heading (wrapped in a Small tag). |
void |
setText(String text)
|
| Methods inherited from class org.gwtbootstrap3.client.ui.base.ComplexWidget |
|---|
add, getId, getPull, insert, setColor, setHiddenOn, setId, setMarginBottom, setMarginLeft, setMarginRight, setMarginTop, setPaddingBottom, setPaddingLeft, setPaddingRight, setPaddingTop, setPull, setVisibleOn |
| Methods inherited from class com.google.gwt.user.client.ui.ComplexPanel |
|---|
add, add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, insert, iterator, remove, remove |
| Methods inherited from class com.google.gwt.user.client.ui.Panel |
|---|
add, adopt, clear, doAttachChildren, doDetachChildren, orphan, remove |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents |
| 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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.google.gwt.user.client.ui.HasWidgets |
|---|
add, clear, iterator, remove |
| Constructor Detail |
|---|
@UiConstructor public Heading(HeadingSize size)
size - size of the heading
public Heading(HeadingSize size,
String text)
size - size of the headingtext - text for the heading
public Heading(HeadingSize size,
String text,
String subText)
size - size of the headingtext - text for the headingsubText - subtext for the heading| Method Detail |
|---|
public void setSubText(String subText)
setSubText in interface HasSubTextsubText - the subtext of the headingpublic String getSubText()
getSubText in interface HasSubTextpublic String getText()
getText in interface HasTextpublic void setText(String text)
setText in interface HasTextpublic void setEmphasis(Emphasis emphasis)
setEmphasis in interface HasEmphasisemphasis - the object's new emphasispublic Emphasis getEmphasis()
getEmphasis in interface HasEmphasispublic void setAlignment(Alignment alignment)
setAlignment in interface HasAlignmentalignment - the object's new alignmentpublic Alignment getAlignment()
getAlignment in interface HasAlignmentprotected void onAttach()
onAttach in class Widget
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||