public class DemoMenuComponentFactory extends BasicMenuComponentFactory
ACCELERATORKEY, CHECKBOX_MENU, compositionLookupProperties, enableFocus, ENDSUB, EXTERNAL_ACTION, factoryName, ICON_MENU, MNEMONICKEY, RADIOBUTTON_MENU, SELECTED_MENU, SEPARATOR, SNAPIN_VARIABLE, STARTSUB, SUBMENU_ACTION, SUBMENU_VARIABLE, TEXT, VARIABLE, VISIBILITY_CHECKBOX_MENU, VISIBILITY_MENU, VISIBILITY_RADIOBUTTON_MENU
ACTIONS, CONTEXT_MENU_ACTIONS, MENU_ACTIONS, TOOLBAR_ACTIONS
Modifier | Constructor and Description |
---|---|
protected |
DemoMenuComponentFactory(String propertiesFileName) |
Modifier and Type | Method and Description |
---|---|
protected JSeparator |
getSeparator() |
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.
|
adaptAdditionalAction, clearLookupProperties, createSnapIn, doCreateComponentForAction, doCreateContextMenu, doCreateMenu, doCreateMenuBar, doCreateToolbar, doCreateToolbar, getActionFactory, getActions, getActionsForType, getCommandActions, getContextMenu, getContextMenu, getFactoryName, getLookupProperty, getMenu, getMenu, getMenuBar, getMenuFactory, getStructureOfActionNames, loadProperties, loadProperties, putLookupProperty, removeLookupProperty, setFactoryName, setLookupProperty
public JToolBar getToolbar(String key, Context context)
BasicMenuComponentFactory
getToolbar
in interface MenuComponentFactory
getToolbar
in class BasicMenuComponentFactory
key
- of the toolbar which should be createdcontext
- for the actions in the toolbar. Actions in the toolbar
belong then in this context.
MenuComponentFactory.getToolbar(String, Context)
public JToolBar getToolbar(String key, Context context, Action[] additionalActions)
BasicMenuComponentFactory
getToolbar
in interface MenuComponentFactory
getToolbar
in class BasicMenuComponentFactory
MenuComponentFactory.getToolbar(String, Context)
protected JSeparator getSeparator()
getSeparator
in class BasicMenuComponentFactory
Copyright © 2024 levigo holding gmbh. All rights reserved.