Package org.patternfly.component.page
Class Masthead
- java.lang.Object
-
- org.patternfly.component.BaseComponent<HTMLElement,Masthead>
-
- org.patternfly.component.page.Masthead
-
- All Implemented Interfaces:
Container<HTMLElement,Masthead>,Finder<HTMLElement>,HasElement<HTMLElement,Masthead>,HasHTMLElement<HTMLElement,Masthead>,IsElement<HTMLElement>,TypedBuilder<HTMLElement,Masthead>,Component
public class Masthead extends BaseComponent<HTMLElement,Masthead>
A masthead contains global properties such as logotype, navigation and settings in an organized fashion, and it is accessible from all parts of the application.All pages should share a common masthead. Use
Page.masthead()to get the masthead.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MastheadaddContent(MastheadContent content)Adds aMastheadContentto this component.MastheadaddMain(MastheadMain main)MastheadaddToggle(MastheadToggle toggle)Mastheadbackground(Brightness brightness)Background theme color of the mastheadMastheaddisplay(Breakpoints<Display> displayModifiers)Display type at various breakpoints.Mastheadinset(Breakpoints<Inset> insetModifiers)Insets at various breakpointsstatic Mastheadmasthead()Factory method to create a new instance of this component.Mastheadthat()-
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
-
-
-
-
Method Detail
-
masthead
public static Masthead masthead()
Factory method to create a new instance of this component.
-
addToggle
public Masthead addToggle(MastheadToggle toggle)
-
addMain
public Masthead addMain(MastheadMain main)
-
addContent
public Masthead addContent(MastheadContent content)
Adds aMastheadContentto this component.
-
display
public Masthead display(Breakpoints<Display> displayModifiers)
Display type at various breakpoints. Defaults totuples(md, inline).
-
inset
public Masthead inset(Breakpoints<Inset> insetModifiers)
Insets at various breakpoints
-
background
public Masthead background(Brightness brightness)
Background theme color of the masthead
-
that
public Masthead that()
-
-