Package org.patternfly.component.page
Class Page
- java.lang.Object
-
- org.patternfly.component.BaseComponent<HTMLDivElement,Page>
-
- org.patternfly.component.page.Page
-
- All Implemented Interfaces:
Container<HTMLDivElement,Page>,Finder<HTMLDivElement>,HasElement<HTMLDivElement,Page>,HasHTMLElement<HTMLDivElement,Page>,IsElement<HTMLDivElement>,TypedBuilder<HTMLDivElement,Page>,Component
public class Page extends BaseComponent<HTMLDivElement,Page>
The page component is used to define the basic layout of a page with either vertical or horizontal navigation.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PageaddMain(PageMain main)Adds thePageMaincomponent and removes the previous one (if any).PageaddMasthead(Masthead masthead)Adds theMastheadcomponent and removes the previous one (if any).PageaddSidebar(Sidebar sidebar)Adds theSidebarcomponent and removes the previous one (if any).PageaddSkipToContent(SkipToContent skipToContent)Adds theSkipToContentcomponent as first element and removes the previous one (if any).PageMainmain()Returns the currentPageMainornullif no main has been defined yet.Mastheadmasthead()Returns the currentMastheadornullif no masthead has been defined yet.static Pagepage()Create or returns the page singleton.Sidebarsidebar()Returns the currentSidebarornullif no sidebar has been defined yet.Pagethat()-
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
-
page
public static Page page()
Create or returns the page singleton.
-
addSkipToContent
public Page addSkipToContent(SkipToContent skipToContent)
Adds theSkipToContentcomponent as first element and removes the previous one (if any).
-
addMasthead
public Page addMasthead(Masthead masthead)
Adds theMastheadcomponent and removes the previous one (if any).
-
addSidebar
public Page addSidebar(Sidebar sidebar)
Adds theSidebarcomponent and removes the previous one (if any).
-
addMain
public Page addMain(PageMain main)
Adds thePageMaincomponent and removes the previous one (if any).
-
that
public Page that()
-
masthead
public Masthead masthead()
Returns the currentMastheadornullif no masthead has been defined yet.
-
sidebar
public Sidebar sidebar()
Returns the currentSidebarornullif no sidebar has been defined yet.
-
-