Class XMLAppNavPage
java.lang.Object
com.webmethods.caf.faces.bean.nav.xml.XMLAppNavPage
- All Implemented Interfaces:
IAppNavPage
,INode
IAppNavPage
implementation intended to be constructed
from an xml configuration file.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<IAppNavPage>
List ofIAppNavPage
children.protected String
Page id (ex "/myfolder/myview.view").protected IAppNavPage
IAppNavPage
parent.protected String
Resource bundle name (ex "app.MyResources").protected String
Title resource key (ex "page.title.myview").protected String
Page title (ex "Bar View").protected String
Page url (ex "/mycontext/myfolder/myview.view"). -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addChild
(IAppNavPage child) Adds the specified page to this page's list of children.List ofIAppNavPage
children, in order.getData()
ThisIAppNavPage
.getId()
Page id (ex "/myfolder/myview.view").List ofIAppNavPage
children, in order (convenience version ofgetChildren()
).IAppNavPage
parent (convenience version ofgetParent()
).IAppNavPage
parent.Returns resource bundle name (ex "app.MyResources").Returns title resource key (ex "page.title.myview").getTitle()
Page title (ex "Bar View").getUrl()
Page url (ex "/mycontext/myfolder/myview.view").void
ThisIAppNavPage
.void
setPageChildren
(List<IAppNavPage> children) List ofIAppNavPage
children, in order (convenience version ofgetChildren()
).void
setPageParent
(IAppNavPage parent) IAppNavPage
parent (convenience version ofgetParent()
).void
setResourceBundle
(String bundle) Sets resource bundle name (ex "app.MyResources").void
setResourceKey
(String key) Sets title resource key (ex "page.title.myview").void
Page title (ex "Bar View").void
Page url (ex "/mycontext/myfolder/myview.view").
-
Field Details
-
m_id
Page id (ex "/myfolder/myview.view"). -
m_url
Page url (ex "/mycontext/myfolder/myview.view"). -
m_title
Page title (ex "Bar View"). -
m_resourceKey
Title resource key (ex "page.title.myview"). -
m_resourceBundle
Resource bundle name (ex "app.MyResources"). -
m_parent
IAppNavPage
parent. Null for root. -
m_children
List ofIAppNavPage
children.
-
-
Constructor Details
-
XMLAppNavPage
public XMLAppNavPage()
-
-
Method Details
-
getData
ThisIAppNavPage
.- Specified by:
getData
in interfaceIAppNavPage
- Specified by:
getData
in interfaceINode
-
getId
Page id (ex "/myfolder/myview.view").- Specified by:
getId
in interfaceIAppNavPage
- Specified by:
getId
in interfaceINode
-
getParent
IAppNavPage
parent. Null if root page.- Specified by:
getParent
in interfaceIAppNavPage
- Specified by:
getParent
in interfaceINode
-
getChildren
List ofIAppNavPage
children, in order. Empty list (non-null) for leaf pages.- Specified by:
getChildren
in interfaceIAppNavPage
- Specified by:
getChildren
in interfaceINode
-
getUrl
Page url (ex "/mycontext/myfolder/myview.view"). If the url is not configured, the url is generated by callingViewHandler.getResourceURL(FacesContext, String)
on the page id (usually, this prefixes the id with the web application's context path).- Specified by:
getUrl
in interfaceIAppNavPage
-
getTitle
Page title (ex "Bar View"). If a resource bundle and key are configured (seesetResourceBundle(String)
andsetResourceKey(String)
), the title is generated from the keyed resource. If only a resource bundle is configured the title is generated from the resource keyed by the page id. If no resource bundle is configured, the configured title is returned.- Specified by:
getTitle
in interfaceIAppNavPage
-
getPageParent
IAppNavPage
parent (convenience version ofgetParent()
). Null if root page.- Specified by:
getPageParent
in interfaceIAppNavPage
-
getPageChildren
List ofIAppNavPage
children, in order (convenience version ofgetChildren()
). Empty list (non-null) for leaf pages.- Specified by:
getPageChildren
in interfaceIAppNavPage
-
setId
ThisIAppNavPage
. -
setUrl
Page url (ex "/mycontext/myfolder/myview.view"). If not configured, the url will be autogenerated (seegetUrl()
). -
setTitle
Page title (ex "Bar View"). The title may be autogenerated (seegetTitle()
). -
getResourceBundle
Returns resource bundle name (ex "app.MyResources"). -
setResourceBundle
Sets resource bundle name (ex "app.MyResources"). -
getResourceKey
Returns title resource key (ex "page.title.myview"). -
setResourceKey
Sets title resource key (ex "page.title.myview"). -
setPageChildren
List ofIAppNavPage
children, in order (convenience version ofgetChildren()
). Empty list (non-null) for leaf pages.
-