public class XMLAppNavPage extends Object implements IAppNavPage
IAppNavPage
implementation intended to be constructed
from an xml configuration file.Modifier and Type | Field and Description |
---|---|
protected List<IAppNavPage> |
m_children
List of
IAppNavPage children. |
protected String |
m_id
Page id (ex "/myfolder/myview.view").
|
protected IAppNavPage |
m_parent
IAppNavPage parent. |
protected String |
m_resourceBundle
Resource bundle name (ex "app.MyResources").
|
protected String |
m_resourceKey
Title resource key (ex "page.title.myview").
|
protected String |
m_title
Page title (ex "Bar View").
|
protected String |
m_url
Page url (ex "/mycontext/myfolder/myview.view").
|
Constructor and Description |
---|
XMLAppNavPage() |
Modifier and Type | Method and Description |
---|---|
void |
addChild(IAppNavPage child)
Adds the specified page to this page's list of children.
|
List<IAppNavPage> |
getChildren()
List of
IAppNavPage children, in order. |
Object |
getData()
This
IAppNavPage . |
String |
getId()
Page id (ex "/myfolder/myview.view").
|
List<IAppNavPage> |
getPageChildren()
List of
IAppNavPage children, in order (convenience version of getChildren() ). |
IAppNavPage |
getPageParent()
IAppNavPage parent (convenience version of getParent() ). |
INode |
getParent()
IAppNavPage parent. |
String |
getResourceBundle()
Returns resource bundle name (ex "app.MyResources").
|
String |
getResourceKey()
Returns title resource key (ex "page.title.myview").
|
String |
getTitle()
Page title (ex "Bar View").
|
String |
getUrl()
Page url (ex "/mycontext/myfolder/myview.view").
|
void |
setId(String id)
This
IAppNavPage . |
void |
setPageChildren(List<IAppNavPage> children)
List of
IAppNavPage children, in order (convenience version of getChildren() ). |
void |
setPageParent(IAppNavPage parent)
IAppNavPage parent (convenience version of getParent() ). |
void |
setResourceBundle(String bundle)
Sets resource bundle name (ex "app.MyResources").
|
void |
setResourceKey(String key)
Sets title resource key (ex "page.title.myview").
|
void |
setTitle(String title)
Page title (ex "Bar View").
|
void |
setUrl(String url)
Page url (ex "/mycontext/myfolder/myview.view").
|
protected String m_id
protected String m_url
protected String m_title
protected String m_resourceKey
protected String m_resourceBundle
protected IAppNavPage m_parent
IAppNavPage
parent. Null for root.protected List<IAppNavPage> m_children
IAppNavPage
children.public Object getData()
IAppNavPage
.getData
in interface IAppNavPage
getData
in interface INode
public String getId()
getId
in interface IAppNavPage
getId
in interface INode
public INode getParent()
IAppNavPage
parent.
Null if root page.getParent
in interface IAppNavPage
getParent
in interface INode
public List<IAppNavPage> getChildren()
IAppNavPage
children, in order.
Empty list (non-null) for leaf pages.getChildren
in interface IAppNavPage
getChildren
in interface INode
public String getUrl()
ViewHandler.getResourceURL(FacesContext, String)
on the page id (usually, this prefixes the id with the web application's context path).getUrl
in interface IAppNavPage
public String getTitle()
setResourceBundle(String)
and setResourceKey(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.getTitle
in interface IAppNavPage
public IAppNavPage getPageParent()
IAppNavPage
parent (convenience version of getParent()
).
Null if root page.getPageParent
in interface IAppNavPage
public List<IAppNavPage> getPageChildren()
IAppNavPage
children, in order (convenience version of getChildren()
).
Empty list (non-null) for leaf pages.getPageChildren
in interface IAppNavPage
public void addChild(IAppNavPage child)
public void setId(String id)
IAppNavPage
.public void setUrl(String url)
getUrl()
).public void setTitle(String title)
getTitle()
).public String getResourceBundle()
public void setResourceBundle(String bundle)
public String getResourceKey()
public void setResourceKey(String key)
public void setPageParent(IAppNavPage parent)
IAppNavPage
parent (convenience version of getParent()
).
Null if root page.public void setPageChildren(List<IAppNavPage> children)
IAppNavPage
children, in order (convenience version of getChildren()
).
Empty list (non-null) for leaf pages.