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(PageSidebar sidebar)Adds thePageSidebarcomponent 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.PageSidebarsidebar()Returns the currentPageSidebarornullif 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
-
Methods inherited from interface org.jboss.elemento.HasElement
add, apply, aria, aria, aria, attr, attr, attr, css, id, id, innerHtml, on, textContent, toggle, toggle, toggle
-
Methods inherited from interface org.jboss.elemento.HasHTMLElement
data, hidden, style, title
-
-
-
-
Method Detail
-
page
public static Page page()
Create or returns the page singleton.
-
that
public Page that()
-
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(PageSidebar sidebar)
Adds thePageSidebarcomponent and removes the previous one (if any).
-
addMain
public Page addMain(PageMain main)
Adds thePageMaincomponent and removes the previous one (if any).
-
masthead
public Masthead masthead()
Returns the currentMastheadornullif no masthead has been defined yet.
-
sidebar
public PageSidebar sidebar()
Returns the currentPageSidebarornullif no sidebar has been defined yet.
-
-