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

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

public class AppNavPageWrapper
extends Object
implements IAppNavPage

Wraps an existing IAppNavPage.


Field Summary
protected  IAppNavPage m_page
          IAppNavPage which is set as the wrapped page.
 
Constructor Summary
AppNavPageWrapper()
          New, uninitialized AppNavPageWrapper; must be initialized via AppNavPageWrapper.setWrappedPage(IAppNavPage).
AppNavPageWrapper(IAppNavPage page)
          Wraps an existing IAppNavPage.
 
Method Summary
 List getChildren()
          Returns AppNavPageWrapper.getPageChildren().
 Object getData()
          This IAppNavPage.
 String getId()
          Page id (ex "/myfolder/myview.view").
 List getPageChildren()
          List of IAppNavPage children.
 IAppNavPage getPageParent()
          IAppNavPage parent.
 INode getParent()
          Returns AppNavPageWrapper.getPageParent().
 String getTitle()
          Page title (ex "My View").
 String getUrl()
          Page url (ex "/mycontext/myfolder/myview.view").
 IAppNavPage getWrappedPage()
          Returns IAppNavPage set as the wrapped page.
 void setWrappedPage(IAppNavPage page)
          Sets a IAppNavPage as the wrapped page.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_page

protected IAppNavPage m_page
IAppNavPage which is set as the wrapped page.

Constructor Detail

AppNavPageWrapper

public AppNavPageWrapper()
New, uninitialized AppNavPageWrapper; must be initialized via AppNavPageWrapper.setWrappedPage(IAppNavPage).


AppNavPageWrapper

public AppNavPageWrapper(IAppNavPage page)
Wraps an existing IAppNavPage.

Method Detail

getData

public Object getData()
This IAppNavPage.

Specified by:
getData in interface IAppNavPage
Specified by:
getData in interface INode

getId

public String getId()
Page id (ex "/myfolder/myview.view").

Specified by:
getId in interface IAppNavPage
Specified by:
getId in interface INode

getParent

public INode getParent()
Returns AppNavPageWrapper.getPageParent().

Specified by:
getParent in interface IAppNavPage
Specified by:
getParent in interface INode

getChildren

public List getChildren()
Returns AppNavPageWrapper.getPageChildren().

Specified by:
getChildren in interface IAppNavPage
Specified by:
getChildren in interface INode

getUrl

public String getUrl()
Page url (ex "/mycontext/myfolder/myview.view").

Specified by:
getUrl in interface IAppNavPage

getTitle

public String getTitle()
Page title (ex "My View").

Specified by:
getTitle in interface IAppNavPage

getPageParent

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

Specified by:
getPageParent in interface IAppNavPage

getPageChildren

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

Specified by:
getPageChildren in interface IAppNavPage

getWrappedPage

public IAppNavPage getWrappedPage()
Returns IAppNavPage set as the wrapped page.

Returns:
wrapped IAppNavPage

setWrappedPage

public void setWrappedPage(IAppNavPage page)
Sets a IAppNavPage as the wrapped page.

Parameters:
page - the IAppNavPage