Class XMLAppNavBean
java.lang.Object
com.webmethods.caf.faces.bean.nav.BaseAppNavBean
com.webmethods.caf.faces.bean.nav.xml.XMLAppNavBean
Web application navigation bean where the page hierarchy is loaded from an
XML config file.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.webmethods.caf.faces.bean.nav.BaseAppNavBean
BaseAppNavBean.PagesContentProvider, BaseAppNavBean.SubNavsContentProvider
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String
XML config file which contains the configuration for this bean.protected String
Name ofXMLAppNavPage
class to use to build nav hierarchy.protected SAXParserFactory
SAXParserFactory
to create parser instances.Fields inherited from class com.webmethods.caf.faces.bean.nav.BaseAppNavBean
m_current, m_root
-
Constructor Summary
ConstructorsConstructorDescriptionNew, uninitialized bean; must be initialized viasetConfigFile(String)
.XMLAppNavBean
(String configFile) Creates a new bean, loading the navigation hierarchy from the specified xml config file. -
Method Summary
Modifier and TypeMethodDescriptionReturns the XML config file which contains the configuration for this bean.Name ofXMLAppNavPage
class to use to build nav hierarchy.protected SAXParser
getParser
(FacesContext ctx) Creates new parser instance.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 ofXMLAppNavPage
class to use to build nav hierarchy.Methods inherited from class com.webmethods.caf.faces.bean.nav.BaseAppNavBean
createSubNav, createSubNav, createSubNav, findPage, getBreadcrumbs, getCurrent, getDepth, getNextSibling, getPages, getPagesList, getParentNextSibling, getParentPrevSibling, getPrevSibling, getSubNavs, setCurrent, setCurrent, setCurrentById, setRoot
-
Field Details
-
m_parserFactory
SAXParserFactory
to create parser instances. -
m_configFile
XML config file which contains the configuration for this bean. -
m_pageClass
Name ofXMLAppNavPage
class to use to build nav hierarchy.
-
-
Constructor Details
-
XMLAppNavBean
public XMLAppNavBean()New, uninitialized bean; must be initialized viasetConfigFile(String)
. -
XMLAppNavBean
Creates a new bean, loading the navigation hierarchy from the specified xml config file.
-
-
Method Details
-
getRoot
Root page of the navigation hierarchy. Loads hierarchy from the specified config file if necessary.- Overrides:
getRoot
in classBaseAppNavBean
-
getParser
Creates new parser instance. -
getConfigFile
Returns the XML config file which contains the configuration for this bean. -
setConfigFile
Set the XML config file which contains the configuration for this bean. -
getPageClass
Name ofXMLAppNavPage
class to use to build nav hierarchy. This class must have a public zero-argument constructor. -
setPageClass
Name ofXMLAppNavPage
class to use to build nav hierarchy. This class must have a public zero-argument constructor.
-