@Component(value="cuba_MenuItemCommands")
public class MenuItemCommands
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
protected class |
MenuItemCommands.BeanCommand |
protected class |
MenuItemCommands.RunnableClassCommand |
protected class |
MenuItemCommands.ScreenCommand |
Modifier and Type | Field and Description |
---|---|
protected BeanLocator |
beanLocator |
protected DataService |
dataService |
protected MenuConfig |
menuConfig |
protected Metadata |
metadata |
protected Scripting |
scripting |
protected WindowConfig |
windowConfig |
Constructor and Description |
---|
MenuItemCommands() |
Modifier and Type | Method and Description |
---|---|
MenuItemCommand |
create(FrameOwner origin,
MenuItem item)
Create menu command.
|
protected org.perf4j.StopWatch |
createStopWatch(MenuItem item) |
protected Entity |
loadEntityInstance(EntityLoadInfo info) |
protected java.util.Map<java.lang.String,java.lang.Object> |
loadParams(MenuItem item) |
protected java.util.List<UiControllerProperty> |
loadProperties(org.dom4j.Element menuItemDescriptor) |
protected UiControllerProperty |
loadUiControllerProperty(org.dom4j.Element propertyElement) |
protected java.lang.Object |
parseEntityId(MetaClass entityMetaClass,
java.lang.String entityId) |
@Inject protected DataService dataService
@Inject protected MenuConfig menuConfig
@Inject protected WindowConfig windowConfig
@Inject protected Scripting scripting
@Inject protected Metadata metadata
@Inject protected BeanLocator beanLocator
public MenuItemCommand create(FrameOwner origin, MenuItem item)
item
- menu itemprotected java.util.Map<java.lang.String,java.lang.Object> loadParams(MenuItem item)
protected java.util.List<UiControllerProperty> loadProperties(org.dom4j.Element menuItemDescriptor)
protected UiControllerProperty loadUiControllerProperty(org.dom4j.Element propertyElement)
@Nullable protected java.lang.Object parseEntityId(MetaClass entityMetaClass, java.lang.String entityId)
protected Entity loadEntityInstance(EntityLoadInfo info)
protected org.perf4j.StopWatch createStopWatch(MenuItem item)