Package org.patternfly.component.title
Class Title
- java.lang.Object
-
- org.patternfly.component.BaseComponent<HTMLHeadingElement,Title>
-
- org.patternfly.component.title.Title
-
- All Implemented Interfaces:
Container<HTMLHeadingElement,Title>,Finder<HTMLHeadingElement>,HasElement<HTMLHeadingElement,Title>,HasHTMLElement<HTMLHeadingElement,Title>,IsElement<HTMLHeadingElement>,TypedBuilder<HTMLHeadingElement,Title>,Component,WithText<HTMLHeadingElement,Title>
public class Title extends BaseComponent<HTMLHeadingElement,Title> implements WithText<HTMLHeadingElement,Title>
A title component applies top and bottom margins, font-weight, font-size, and line-height to titles. The most common usage for a title is to define headings within a page.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Titletext(String text)Titlethat()static Titletitle(int level)static Titletitle(int level, String text)static Titletitle(int level, Size size)static Titletitle(int level, Size size, String text)-
Methods inherited from class org.patternfly.component.BaseComponent
componentType, element
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jboss.elemento.Container
add, add, add, addAll, addAll, addAll, addAll, addAll, addAll
-
Methods inherited from interface org.jboss.elemento.HasElement
add, apply, aria, aria, aria, attr, attr, attr, classList, classList, css, id, id, innerHtml, on, run, textContent, textNode, toggle, toggle, toggle, uniqueId
-
-
-
-
Method Detail
-
title
public static Title title(int level)
-
text
public Title text(String text)
- Specified by:
textin interfaceWithText<HTMLHeadingElement,Title>
-
that
public Title that()
- Specified by:
thatin interfaceTypedBuilder<HTMLHeadingElement,Title>
-
-