public class WebApplicationConfiguration extends Object implements org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware
Modifier and Type | Field and Description |
---|---|
protected org.springframework.context.ApplicationContext |
appContext |
protected String |
defaultLocale |
protected String |
jQueryTheme |
protected List<String> |
mainMenuItems |
protected Map<String,Map<String,WebMenuItem>> |
menuItemPaths |
protected Map<String,WebMenuItem> |
menus |
protected List<StringKeyValueBean> |
supportedLocales |
Constructor and Description |
---|
WebApplicationConfiguration() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
protected void |
cleanUpMenuTree(WebMenuItem root,
String menuName)
Convert MenuItemExt to WebMenuItem, and clean up all data
|
String |
getDefaultLocale() |
String |
getjQueryTheme() |
List<String> |
getMainMenuItems()
Deprecated.
|
WebMenuItem |
getMenu()
Get the default menu tree
|
WebMenuItem |
getMenu(String menuName)
Get the menu tree by the menu's name
|
WebMenuItem |
getMenuItem(String path)
Get the menu item by path in default menu
|
WebMenuItem |
getMenuItem(String menuName,
String path)
Get the menu item by menu and path
|
List<StringKeyValueBean> |
getSupportedLocales() |
void |
scanForMenuItems()
Scan all the beans for menu items
|
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
setDefaultLocale(String defaultLocale) |
void |
setjQueryTheme(String jQueryTheme) |
void |
setMainMenuItems(List<String> mainMenuItems)
Deprecated.
|
void |
setSupportedLocales(List<StringKeyValueBean> supportedLocales) |
protected List<StringKeyValueBean> supportedLocales
protected String defaultLocale
protected String jQueryTheme
protected org.springframework.context.ApplicationContext appContext
protected Map<String,WebMenuItem> menus
protected Map<String,Map<String,WebMenuItem>> menuItemPaths
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
org.springframework.beans.BeansException
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
public void scanForMenuItems()
protected void cleanUpMenuTree(WebMenuItem root, String menuName)
root
- public WebMenuItem getMenu(String menuName)
menuName
- public WebMenuItem getMenu()
public WebMenuItem getMenuItem(String menuName, String path)
menuName
- path
- public WebMenuItem getMenuItem(String path)
path
- public void setMainMenuItems(List<String> mainMenuItems)
mainMenuItems
- public List<StringKeyValueBean> getSupportedLocales()
public void setSupportedLocales(List<StringKeyValueBean> supportedLocales)
public String getDefaultLocale()
public void setDefaultLocale(String defaultLocale)
public String getjQueryTheme()
public void setjQueryTheme(String jQueryTheme)
Copyright © 2014. All Rights Reserved.