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 MastheadaddBrand(Brand brand, String homeLink)Wraps the brand inside an<a/>element, adds the<a/>element to aMastheadMaincomponent and finally adds theMastheadMainto this component.MastheadaddContent(MastheadContent content)Adds aMastheadContentto this component.MastheadaddMain(MastheadMain main)MastheadaddToggle(MastheadToggle toggle)MastheadaddToolbar(Toolbar toolbar)Wraps the toolbar inside aMastheadContentcomponent and adds theMastheadContentto this component.Mastheadbackground(Brightness brightness)Background theme color of the mastheadMastheaddisplay(Tuples<Breakpoint,Display> displayModifiers)Display type at various breakpoints.Mastheadinset(Tuples<Breakpoint,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, 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)
-
addBrand
public Masthead addBrand(Brand brand, String homeLink)
Wraps the brand inside an<a/>element, adds the<a/>element to aMastheadMaincomponent and finally adds theMastheadMainto this component.Shortcut for
-
addToolbar
public Masthead addToolbar(Toolbar toolbar)
Wraps the toolbar inside aMastheadContentcomponent and adds theMastheadContentto this component.Shortcut for
-
addContent
public Masthead addContent(MastheadContent content)
Adds aMastheadContentto this component.
-
display
public Masthead display(Tuples<Breakpoint,Display> displayModifiers)
Display type at various breakpoints. Defaults totuples(md, inline).
-
inset
public Masthead inset(Tuples<Breakpoint,Inset> insetModifiers)
Insets at various breakpoints
-
background
public Masthead background(Brightness brightness)
Background theme color of the masthead
-
that
public Masthead that()
-
-