public class PluginMenuHandler extends java.lang.Object implements PluginElementTypes
OPEN_ACTIONS, PLUGIN_MENU, PROPERTY_DATE, PROPERTY_DEPEND, PROPERTY_DESC, PROPERTY_UNSUPPORTED, PROPERTY_VERSION, SAVEAS_ACTIONS, SETTINGS, SETTINGS_MENU, TOOLBAR
Constructor and Description |
---|
PluginMenuHandler() |
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.Object> |
getPluginObjectsForKey(java.lang.String menuKey,
java.util.List<MDIPlugin<?>> plugins)
Return a specific object associated with plugins.
|
java.util.List<java.lang.Object> |
getPluginsDynamicMenuElements(java.lang.String key,
FileProperties prop,
java.util.List<MDIPlugin<?>> plugins)
Return a dynamic plugins menu items for all plugins.
|
java.util.List<java.lang.Object> |
getPluginStaticMenuElements(java.lang.String menuKey,
MDIPlugin plugin)
Encapsulate the import of plugin menus.
|
void |
setApplication(MDIApplication appli)
Set the application.
|
public void setApplication(MDIApplication appli)
appli
- the application.public java.util.List<java.lang.Object> getPluginsDynamicMenuElements(java.lang.String key, FileProperties prop, java.util.List<MDIPlugin<?>> plugins)
The List contains any number of the following elements:
JMenuItem
sJMenu
sJButton
sAbstractAction
skey
- the dynamic menu keyprop
- the FileProperties for which we want to get the dynamic plugins menu itemsplugins
- the list of Pluginspublic java.util.List<java.lang.Object> getPluginObjectsForKey(java.lang.String menuKey, java.util.List<MDIPlugin<?>> plugins)
MDIPlugin.getStaticMenuElements(String)
.menuKey
- the static menu keyplugins
- the list of Pluginspublic java.util.List<java.lang.Object> getPluginStaticMenuElements(java.lang.String menuKey, MDIPlugin plugin)
menuKey
- the static menu keyplugin
- the Plugin