public class XMLAppNavBean extends BaseAppNavBean
BaseAppNavBean.PagesContentProvider, BaseAppNavBean.SubNavsContentProvider
Modifier and Type | Field and Description |
---|---|
protected String |
m_configFile
XML config file which contains the configuration for this bean.
|
protected String |
m_pageClass
Name of
XMLAppNavPage class to use to build nav hierarchy. |
protected SAXParserFactory |
m_parserFactory
SAXParserFactory to create parser instances. |
m_current, m_root
Constructor and Description |
---|
XMLAppNavBean()
New, uninitialized bean;
must be initialized via
setConfigFile(String) . |
XMLAppNavBean(String configFile)
Creates a new bean,
loading the navigation hierarchy from the specified xml config file.
|
Modifier and Type | Method and Description |
---|---|
String |
getConfigFile()
Returns the XML config file which contains the configuration for this bean.
|
String |
getPageClass()
Name of
XMLAppNavPage class to use to build nav hierarchy. |
protected SAXParser |
getParser(FacesContext ctx)
Creates new parser instance.
|
IAppNavPage |
getRoot()
Root page of the navigation hierarchy.
|
void |
setConfigFile(String configFile)
Set the XML config file which contains the configuration for this bean.
|
void |
setPageClass(String pageClass)
Name of
XMLAppNavPage class to use to build nav hierarchy. |
createSubNav, createSubNav, createSubNav, findPage, getBreadcrumbs, getCurrent, getDepth, getNextSibling, getPages, getPagesList, getParentNextSibling, getParentPrevSibling, getPrevSibling, getSubNavs, setCurrent, setCurrent, setCurrentById, setRoot
protected SAXParserFactory m_parserFactory
SAXParserFactory
to create parser instances.protected String m_configFile
protected String m_pageClass
XMLAppNavPage
class to use to build nav hierarchy.public XMLAppNavBean()
setConfigFile(String)
.public XMLAppNavBean(String configFile)
public IAppNavPage getRoot()
getRoot
in class BaseAppNavBean
protected SAXParser getParser(FacesContext ctx) throws ParserConfigurationException, SAXException
public String getConfigFile()
public void setConfigFile(String configFile)
public String getPageClass()
XMLAppNavPage
class to use to build nav hierarchy.
This class must have a public zero-argument constructor.public void setPageClass(String pageClass)
XMLAppNavPage
class to use to build nav hierarchy.
This class must have a public zero-argument constructor.