Class Page

    • Method Detail

      • page

        public static Page page()
        Create or returns the page singleton.
      • page

        public static Page page​(boolean newInstance)
      • addSkipToContent

        public Page addSkipToContent​(SkipToContent skipToContent)
        Adds the SkipToContent component as first element and removes the previous one (if any).
      • addMasthead

        public Page addMasthead​(Masthead masthead)
        Adds the Masthead component and removes the previous one (if any).
      • add

        public Page add​(Masthead masthead)
        Adds the Masthead component and removes the previous one (if any).
      • addSidebar

        public Page addSidebar​(PageSidebar sidebar)
        Adds the PageSidebar component and removes the previous one (if any).
      • addMain

        public Page addMain​(PageMain main)
        Adds the PageMain component and removes the previous one (if any).
      • add

        public Page add​(PageMain main)
        Adds the PageMain component and removes the previous one (if any).
      • breakpoint

        public Page breakpoint​(Function<Integer,​Breakpoint> breakpointFn)
        The page resize observer uses the breakpoints returned from this function when adding the pf-m-breakpoint-[default|sm|md|lg|xl|2xl] class. You can override the default function Breakpoint.breakpoint(int) to return breakpoints at different sizes than the default.
      • verticalBreakpoint

        public Page verticalBreakpoint​(Function<Integer,​Breakpoint> verticalBreakpointFn)
        The page resize observer uses the breakpoints returned from this function when adding the pf-m-height-breakpoint-[default|sm|md|lg|xl|2xl] class. You can override the default function Breakpoint.verticalBreakpoint(int) to return breakpoints at different sizes than the default.
      • masthead

        public Masthead masthead()
        Returns the current Masthead or null if no masthead has been defined yet.
      • sidebar

        public PageSidebar sidebar()
        Returns the current PageSidebar or null if no sidebar has been defined yet.
      • main

        public PageMain main()
        Returns the current PageMain or null if no main has been defined yet.