public interface MenuComponentFactory
Modifier and Type | Field and Description |
---|---|
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
|
Modifier and Type | Method and Description |
---|---|
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.
|
static final String ACTIONS
static final String MENU_ACTIONS
static final String CONTEXT_MENU_ACTIONS
static final String TOOLBAR_ACTIONS
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, 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 keygetActionsForType(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 structuregetActions(String)
JPopupMenu getContextMenu(String key, Context context, Action[] additionalActions)
getContextMenu(String,
Context)
Copyright © 2024 levigo holding gmbh. All rights reserved.