com.webmethods.caf.faces.bean.nav
Class ShadowAppNavPage

java.lang.Object
  extended by com.webmethods.caf.faces.bean.nav.AppNavPageWrapper
      extended by com.webmethods.caf.faces.bean.nav.ShadowAppNavPage
All Implemented Interfaces:
IAppNavPage, INode

public class ShadowAppNavPage
extends AppNavPageWrapper

Creates a shadow subtree structure which wraps an existing IAppNavPage subtree.


Field Summary
protected  List m_children
          List of IAppNavPage children.
protected  IAppNavPage m_parent
          Reference to IAppNavPage parent.
 
Fields inherited from class com.webmethods.caf.faces.bean.nav.AppNavPageWrapper
m_page
 
Constructor Summary
ShadowAppNavPage(IAppNavPage page)
          Creates a shadow subtree structure for the specified page, with the specified page as the subtree root.
ShadowAppNavPage(IAppNavPage page, IAppNavPage parent)
          Creates a shadow subtree structure for the specified page, with the specified (non-shadowed) parent.
 
Method Summary
 List getPageChildren()
          List of IAppNavPage children.
 IAppNavPage getPageParent()
          IAppNavPage parent.
 void setPageParent(IAppNavPage parent)
          Sets this page's (non-shadowed) parent.
 
Methods inherited from class com.webmethods.caf.faces.bean.nav.AppNavPageWrapper
getChildren, getData, getId, getParent, getTitle, getUrl, getWrappedPage, setWrappedPage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_parent

protected IAppNavPage m_parent
Reference to IAppNavPage parent.


m_children

protected List m_children
List of IAppNavPage children.

Constructor Detail

ShadowAppNavPage

public ShadowAppNavPage(IAppNavPage page)
Creates a shadow subtree structure for the specified page, with the specified page as the subtree root.


ShadowAppNavPage

public ShadowAppNavPage(IAppNavPage page,
                        IAppNavPage parent)
Creates a shadow subtree structure for the specified page, with the specified (non-shadowed) parent.

Method Detail

getPageParent

public IAppNavPage getPageParent()
IAppNavPage parent. Null if root page.

Specified by:
getPageParent in interface IAppNavPage
Overrides:
getPageParent in class AppNavPageWrapper

getPageChildren

public List getPageChildren()
List of IAppNavPage children. Empty list (non-null) for leaf pages.

Specified by:
getPageChildren in interface IAppNavPage
Overrides:
getPageChildren in class AppNavPageWrapper

setPageParent

public void setPageParent(IAppNavPage parent)
Sets this page's (non-shadowed) parent.