Class Navigation

  • All Implemented Interfaces:
    Iterable<Navigation.Element>

    public class Navigation
    extends Object
    implements Iterable<Navigation.Element>
    Provides a generic utility class that can be used to draw a navigation. It specifically does this by providing an iterator over navigation elements. A navigation element reflects a page and can have different Navigation.Element.Types. Note that the same page might be returned 4 times for the different element types. this offers maximal flexibility when drawing the navigation.
    • Constructor Detail

      • Navigation

        public Navigation​(Page current,
                          int absParent,
                          PageFilter filter,
                          int depth)
        Creates a new navigation object.
        Parameters:
        current - the current page
        absParent - the abs level of the navigation root
        filter - a page filter for filtering the navigation pages
        depth - navigation depth.