public interface MDIMenuFactory
Modifier and Type | Method and Description |
---|---|
default boolean |
addToBookmarkedMenu(java.lang.String bookmark,
javax.swing.AbstractAction action)
Add an action to a bookmarked menu.
|
default boolean |
addToBookmarkedMenu(java.lang.String bookmark,
javax.swing.JComponent comp)
Add a component to a bookmarked menu.
|
boolean |
addToDynamicMenuMap(java.lang.String menuKey,
javax.swing.AbstractAction action)
Add the AbstractAction to the dynamic menu Map, under the menuKey key.
|
boolean |
addToDynamicMenuMap(java.lang.String key,
javax.swing.JComponent comp)
Add the component to the dynamic menu Map, under the menuKey key.
|
default boolean |
bookmarkMenu(java.lang.String bookmark,
javax.swing.JMenu menu)
Bookmark a menu.
|
MDIAbout |
createDefaultMDIAbout(java.lang.String name,
boolean modal)
Create a default About component.
|
MDISettings |
createDefaultMDISettings(java.lang.String name)
Create a default settings component.
|
void |
createPopupMenu(javax.swing.JPopupMenu menu)
Create the Popup Menu.
|
GUIApplication |
getApplication()
Return the Application.
|
default javax.swing.JMenu |
getBookmarkedMenu(java.lang.String bookmark)
Return a bookmarked menu.
|
java.lang.Object |
getDynamicMenuComponent(java.lang.String menuKey)
Return the Dynamic Menu Object under the key menu menuKey.
|
java.util.Map<java.lang.String,java.lang.Object> |
getDynamicMenuMap()
Return the Dynamic Menu Map.
|
MDIAbout |
getMDIAbout()
Return the About component.
|
MDISettings |
getMDISettings()
Return the settings component.
|
javax.swing.JMenuBar |
getMenuBar()
Return the MenuBar of the MDIApplication.
|
default java.util.Set<java.lang.String> |
getMenuBookmarks()
Return the bookmarks.
|
PluginsMenuFactory |
getPluginsMenuFactory()
Return the PluginsMenuFactory.
|
ProgressInterface |
getProgressInterface()
Return the progress interface for the menu factory.
|
java.util.Map<java.lang.String,javax.swing.JMenu> |
getStaticMenuMap()
Return the static Menu Map.
|
javax.swing.JPanel |
getToolBarPanel()
Return the ToolBar of the MDIApplication.
|
default boolean |
hasMenuBookmark(java.lang.String key)
Return true if there is a menu bookmark of a specified key.
|
void |
init(GUIApplication appli,
boolean hasToolBar)
Initialize the Menu Factory.
|
void |
registerMenus()
Register the Plugins static menus if there are any Plugin.
|
boolean |
resetDynamicMenus()
Reset the dynamic menus (all dynamic menus that have been registered under menu keys).
|
void |
setProgressInterface(ProgressInterface progress)
Set the progress interface for the menu factory.
|
default void |
updateMenus()
Update the MDIMenuFactory menus.
|
default void |
updateUI()
Update the UI of the menus.
|
GUIApplication getApplication()
void setProgressInterface(ProgressInterface progress)
progress
- the progress interfaceProgressInterface getProgressInterface()
void init(GUIApplication appli, boolean hasToolBar)
appli
- the ApplicationhasToolBar
- true if the Application must have toolbarsvoid registerMenus()
default void updateMenus()
PluginsMenuFactory getPluginsMenuFactory()
MDISettings getMDISettings()
MDISettings createDefaultMDISettings(java.lang.String name)
name
- the component nameMDIAbout getMDIAbout()
MDIAbout createDefaultMDIAbout(java.lang.String name, boolean modal)
name
- the component namemodal
- true if the dialog is modaljavax.swing.JMenuBar getMenuBar()
javax.swing.JPanel getToolBarPanel()
void createPopupMenu(javax.swing.JPopupMenu menu)
menu
- the Popup Menujava.util.Map<java.lang.String,javax.swing.JMenu> getStaticMenuMap()
AbstractAction
JButton
JMenuItem
JMenu
java.util.Map<java.lang.String,java.lang.Object> getDynamicMenuMap()
AbstractAction
JButton
JMenuItem
JMenu
java.lang.Object getDynamicMenuComponent(java.lang.String menuKey)
AbstractAction
JButton
JMenuItem
JMenu
menuKey
- the menu keyboolean addToDynamicMenuMap(java.lang.String key, javax.swing.JComponent comp)
key
- the menu keycomp
- the componentboolean addToDynamicMenuMap(java.lang.String menuKey, javax.swing.AbstractAction action)
menuKey
- the menu keyaction
- the Actiondefault boolean hasMenuBookmark(java.lang.String key)
key
- the bookmark keydefault java.util.Set<java.lang.String> getMenuBookmarks()
default boolean bookmarkMenu(java.lang.String bookmark, javax.swing.JMenu menu)
bookmark
- the bookmarkmenu
- the menudefault javax.swing.JMenu getBookmarkedMenu(java.lang.String bookmark)
bookmark
- the bookmarkdefault boolean addToBookmarkedMenu(java.lang.String bookmark, javax.swing.AbstractAction action)
bookmark
- the bookmarkaction
- the actiondefault boolean addToBookmarkedMenu(java.lang.String bookmark, javax.swing.JComponent comp)
JButton
JMenuItem
JMenu
bookmark
- the bookmarkcomp
- the componentboolean resetDynamicMenus()
default void updateUI()