@Component(value="cuba_MenuConfig")
public class MenuConfig
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
initialized |
protected java.util.concurrent.locks.ReadWriteLock |
lock |
static java.lang.String |
MENU_CONFIG_XML_PROP |
protected Messages |
messages |
static java.lang.String |
NAME |
protected Resources |
resources |
protected java.util.List<MenuItem> |
rootItems |
protected ThemeConstantsManager |
themeConstantsManager |
Constructor and Description |
---|
MenuConfig() |
Modifier and Type | Method and Description |
---|---|
protected void |
addItem(java.util.List<MenuItem> items,
MenuItem menuItem,
MenuItem beforeItem,
boolean before) |
protected void |
checkDuplicateAction(java.lang.String menuItemId,
java.lang.String... actionDefinition) |
protected void |
checkInitialized() |
protected MenuItem |
createMenuItem(org.dom4j.Element element,
MenuItem currentParentItem) |
protected MenuItem |
findItem(java.lang.String id,
MenuItem item) |
protected java.lang.String |
getIconPath(java.lang.String icon) |
java.lang.String |
getItemCaption(java.lang.String id) |
static java.lang.String |
getMenuItemCaption(java.lang.String id)
Deprecated.
|
java.util.List<MenuItem> |
getRootItems()
Main menu root items
|
protected void |
init() |
protected void |
loadDescription(org.dom4j.Element element,
MenuItem menuItem) |
protected void |
loadExpanded(org.dom4j.Element element,
MenuItem menuItem) |
protected void |
loadIcon(org.dom4j.Element element,
MenuItem menuItem) |
protected void |
loadMenuItems(org.dom4j.Element parentElement,
MenuItem parentItem) |
protected java.lang.String |
loadResourceString(java.lang.String caption) |
protected void |
loadShortcut(MenuItem menuItem,
org.dom4j.Element element) |
protected void |
loadStylename(org.dom4j.Element element,
MenuItem menuItem) |
protected java.lang.String |
loadThemeString(java.lang.String value) |
void |
reset()
Make the config to reload screens on next request.
|
public static final java.lang.String NAME
public static final java.lang.String MENU_CONFIG_XML_PROP
protected java.util.List<MenuItem> rootItems
@Inject protected Resources resources
@Inject protected Messages messages
@Inject protected ThemeConstantsManager themeConstantsManager
protected volatile boolean initialized
protected java.util.concurrent.locks.ReadWriteLock lock
@Deprecated public static java.lang.String getMenuItemCaption(java.lang.String id)
getItemCaption(String)
id
- screen ID as defined in screens.xml
public java.lang.String getItemCaption(java.lang.String id)
protected void checkInitialized()
protected void init()
public void reset()
public java.util.List<MenuItem> getRootItems()
protected void loadMenuItems(org.dom4j.Element parentElement, MenuItem parentItem)
protected MenuItem createMenuItem(org.dom4j.Element element, MenuItem currentParentItem)
protected void checkDuplicateAction(java.lang.String menuItemId, java.lang.String... actionDefinition)
protected void loadExpanded(org.dom4j.Element element, MenuItem menuItem)
protected void loadDescription(org.dom4j.Element element, MenuItem menuItem)
protected void loadStylename(org.dom4j.Element element, MenuItem menuItem)
protected void loadIcon(org.dom4j.Element element, MenuItem menuItem)
protected java.lang.String getIconPath(java.lang.String icon)
protected java.lang.String loadResourceString(java.lang.String caption)
protected java.lang.String loadThemeString(java.lang.String value)
protected void addItem(java.util.List<MenuItem> items, MenuItem menuItem, MenuItem beforeItem, boolean before)
protected void loadShortcut(MenuItem menuItem, org.dom4j.Element element)