Package com.day.cq.wcm.foundation
Class Navigation
- java.lang.Object
 - 
- com.day.cq.wcm.foundation.Navigation
 
 
- 
- All Implemented Interfaces:
 java.lang.Iterable<Navigation.Element>
public class Navigation extends java.lang.Object implements java.lang.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 differentNavigation.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. 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNavigation.ElementNavigation element. 
- 
Constructor Summary
Constructors Constructor Description Navigation(Page current, int absParent, PageFilter filter, int depth)Creates a new navigation object. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Iterator<Navigation.Element>iterator()Returns an iterator over the navigation elements. 
 - 
 
- 
- 
Constructor Detail
- 
Navigation
public Navigation(Page current, int absParent, PageFilter filter, int depth)
Creates a new navigation object.- Parameters:
 current- the current pageabsParent- the abs level of the navigation rootfilter- a page filter for filtering the navigation pagesdepth- navigation depth.
 
 - 
 
- 
Method Detail
- 
iterator
public java.util.Iterator<Navigation.Element> iterator()
Returns an iterator over the navigation elements.- Specified by:
 iteratorin interfacejava.lang.Iterable<Navigation.Element>- Returns:
 - an iterator.
 
 
 - 
 
 -