public class Config extends Object implements Serializable
| Constructor and Description |
|---|
Config(javax.servlet.ServletContext servletContext,
String basePath) |
| Modifier and Type | Method and Description |
|---|---|
void |
addComponent(Component component)
Add the Component to the list of components, the name property will be
assoiciated with the Component and can be used to look up the Component.
|
void |
addLayout(Layout layout) |
void |
addMenu(Menu menu) |
void |
addPage(Page page) |
boolean |
equals(Object o)
Check to see if two objects are equal.
|
String |
getBasePath() |
Component |
getComponent(String name) |
Layout |
getLayout(String name) |
Menu |
getMenu(String name) |
Map |
getMenus() |
Page |
getPage(String path) |
Page |
getPageByName(String pageName) |
String |
getPath(Page page) |
javax.servlet.ServletContext |
getServletContext() |
int |
hashCode()
Generate the hash code for the object.
|
void |
setBasePath(String basePath) |
public Config(javax.servlet.ServletContext servletContext,
String basePath)
public void addComponent(Component component)
Add the Component to the list of components, the name property will be assoiciated with the Component and can be used to look up the Component.
component - The Component to add @ If another Component with the same
name has already been definedpublic void addLayout(Layout layout)
layout - public void addMenu(Menu menu)
public void addPage(Page page)
page - public boolean equals(Object o)
Check to see if two objects are equal. Both objects must have the same components, layouts, pages and menu tree to be equal.
public String getBasePath()
public Map getMenus()
public Page getPage(String path) throws PageNotFoundException
PageNotFoundExceptionpublic Page getPageByName(String pageName) throws PageNotFoundException
PageNotFoundExceptionpublic javax.servlet.ServletContext getServletContext()
public int hashCode()
public void setBasePath(String basePath)
Copyright © 2015 Revolution Systems Inc.. All rights reserved.