info.magnolia.module.templatingkit.navigation
Class NavigationModel

java.lang.Object
  extended by info.magnolia.module.templatingkit.navigation.SubNavigation
      extended by info.magnolia.module.templatingkit.navigation.NavigationModel

public class NavigationModel
extends SubNavigation

Component used in the rendering script (freemarker,...) to display a navidation tree. Returned by SiteMapParagraphModel.

Version:
$Id$
Author:
pbracher

Constructor Summary
NavigationModel(javax.jcr.Node root, javax.jcr.Node selectedNode, int depth, boolean allOpen, boolean rootIsHome)
           
 
Method Summary
 List<NavigationItem> getItems()
           
 NavigationItem getSelectedItem()
           
protected  javax.jcr.Node getSelectedNode()
           
 
Methods inherited from class info.magnolia.module.templatingkit.navigation.SubNavigation
getContent, getParent, isOpen
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NavigationModel

public NavigationModel(javax.jcr.Node root,
                       javax.jcr.Node selectedNode,
                       int depth,
                       boolean allOpen,
                       boolean rootIsHome)
Method Detail

getItems

public List<NavigationItem> getItems()
                              throws javax.jcr.RepositoryException
Overrides:
getItems in class SubNavigation
Throws:
javax.jcr.RepositoryException

getSelectedNode

protected javax.jcr.Node getSelectedNode()

getSelectedItem

public NavigationItem getSelectedItem()
                               throws javax.jcr.RepositoryException
Throws:
javax.jcr.RepositoryException


Copyright © 2008-2012 Magnolia International Ltd.. All Rights Reserved.