org.e1.ui_base_plugin.ui.menu.Menu Interface
All menus have to implement this interface. It provides all required methods.
The methods are:
org.e1.ui_base_plugin.ui.menu.MenuEntry Interface
All menus consist of elements implementing the MenuEntry interface. Entries could host other entries or could be standalone.
The methods are:
The main menu implementation consists of the classes DefaultMainMenu and DefaultMainMenuEntry both to be found in the namespace org.e1.ui_base_plugin.ui.menu of the ui-base-plugin.
Every menu and every menu entry is a bean which needs to be defined inside one of the applicationContext files.
The main menu entries are defined inside the applicationContext-ui_base_plugin.xml file.
The menu itself uses a flow to be managed. The flow can be found in the same context file named CreateMainMenuFlow.
To add the default menu entries and to create the main menu itself there is a flow step called AddMainMenuBaseEntriesStep.
Using flow steps to create a menu is recommended because they allow some logic to be executed before, during and after the managing of the entries.
Keep in mind that the flow engine has a caching algorithm build in if it is extended from the AbstractCachedFlow class.
Wiki: Documentation
Wiki: Home
Wiki: How to add entries to a menu