|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MenuComponentFactory
Interface for the menu factory. This interface has to be implemented in the menu factory. In the system can be more than one menu factory but just one instance of each.
Field Summary | |
---|---|
static String |
ACTIONS
Parameter of actions in the property file |
static String |
CONTEXT_MENU_ACTIONS
Parameter of contextmenu actions in the property file |
static String |
MENU_ACTIONS
Parameter of menu actions in the property file |
static String |
TOOLBAR_ACTIONS
Parameter of toolbar actions in the property file |
Method Summary | |
---|---|
Collection<String> |
getActions(String key)
Create a collection of all currently available action names(!) for the given template key. |
Collection<String> |
getActionsForType(String key,
String type)
Create a collection of all currently available action names(!) for the given template key and action structure type. |
Collection<CommandAction> |
getCommandActions(String key,
Context context)
Create all currently available command actions for the given template key. |
JPopupMenu |
getContextMenu(String key,
Context context)
Create a JPopupMenu for the given template key or context name. |
JPopupMenu |
getContextMenu(String key,
Context context,
Action[] additionalActions)
Create a JPopupMenu for the given template key or context name. |
JMenu |
getMenu(String key,
Context context)
Create a JMenu for the given template key or context name. |
JMenu |
getMenu(String key,
Context context,
Action[] additionalActions)
Create a JMenu for the given template key or context name. |
JMenuBar |
getMenuBar(String key,
Context context)
Create a JMenuBar for the given template key or context name. |
JToolBar |
getToolbar(String key,
Context context)
Create a JToolBar for the given template key or context name. |
JToolBar |
getToolbar(String key,
Context context,
Action[] additionalActions)
Create a JToolbar for the given template key or context name. |
Field Detail |
---|
static final String ACTIONS
static final String MENU_ACTIONS
static final String CONTEXT_MENU_ACTIONS
static final String TOOLBAR_ACTIONS
Method Detail |
---|
JToolBar getToolbar(String key, Context context)
JToolBar
for the given template key or context name.
key
- of the toolbar which should be createdcontext
- for the actions in the toolbar. Actions in the toolbar
belong then in this context.
JToolBar
JToolBar getToolbar(String key, Context context, Action[] additionalActions)
getToolbar(String,
Context)
JMenu getMenu(String key, Context context)
JMenu
for the given template key or context name.
Note:The JMenuBar
is created outside of this factory.
The created menus can be added in the JMenuBar
!
key
- of the menu which should be createdcontext
- for the actions in the menu. Actions in the menu belong then
in this context.
JMenu
,
JMenuBar
JMenu getMenu(String key, Context context, Action[] additionalActions)
getMenu(String,
Context)
JPopupMenu getContextMenu(String key, Context context)
JPopupMenu
for the given template key or context name.
key
- of the context menu which should be createdcontext
- for the actions in the context menu. Actions in the context
menu belong then in this context.
JPopupMenu
Collection<String> getActions(String key)
MenuComponentFactory
.ACTIONS);
key
- template key
getActionsForType(String,String)
Collection<String> getActionsForType(String key, String type)
key
- template keytype
- structure type like MenuComponentFactory
ACTIONS
,
MenuComponentFactory
CONTEXT_MENU_ACTIONS
,MenuComponentFactory
MENU_ACTIONS
,MenuComponentFactory
TOOLBAR_ACTIONS
getActions(String)
Collection<CommandAction> getCommandActions(String key, Context context)
context
- the returned actions refer to this context.key
- template key for action structure
getActions(String)
JPopupMenu getContextMenu(String key, Context context, Action[] additionalActions)
getContextMenu(String,
Context)
JMenuBar getMenuBar(String key, Context context)
JMenuBar
for the given template key or context name.
key
- context
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |