Package com.nomagic.magicdraw.actions
Class DiagramInnerToolbarConfiguration
java.lang.Object
javax.swing.AbstractAction
com.nomagic.actions.NMAction
com.nomagic.actions.ActionsCategory
com.nomagic.magicdraw.actions.MDActionsCategory
com.nomagic.magicdraw.actions.DiagramInnerToolbarConfiguration
- All Implemented Interfaces:
com.nomagic.magicdraw.actions.ShortcutSchemaAction
,ActionListener
,Serializable
,Cloneable
,Comparable
,EventListener
,Action
- See Also:
-
Field Summary
Fields inherited from class com.nomagic.actions.ActionsCategory
ACTIONS_PROPERTY, ADDED_ACTION_PROPERTY, CHANGE_ACTIONS_PROPERTY, DISABLE_IF_EMPTY, MAX_CATEGORY_ACTIONS, REMOVE_IF_EMPTY, REMOVED_ACTION_PROPERTY, USE_AS_SEPARATOR_IN_UI
Fields inherited from class com.nomagic.actions.NMAction
ACTION_SHORTCUTS, BELONGS_TO_SEPARATE_GROUP_IN_UI, DO_NO_SHOW_ACTION_NAME_IN_UI, DO_NOT_REGISTER_ACTION_TO_COMPONENTS, GENERATED_ID_PREFIX, GROUP, ID, LARGE_ICON, MENU_SHORTCUT_MASK, TINY_ICON
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
-
Constructor Summary
ConstructorDescriptionDiagramInnerToolbarConfiguration
(String id, Icon icon, String name) DiagramInnerToolbarConfiguration
(String id, Icon icon, String name, boolean expandedByDefault) DiagramInnerToolbarConfiguration
(Icon icon, String name) DiagramInnerToolbarConfiguration
(Icon icon, String name, boolean expandedByDefault) -
Method Summary
Modifier and TypeMethodDescriptionclone()
Clones the category.Returns the large icon of the action.boolean
void
setExpandByDefault
(boolean expandByDefault) Clones the category.Methods inherited from class com.nomagic.magicdraw.actions.MDActionsCategory
isUseShortcutSchema, updateState
Methods inherited from class com.nomagic.actions.ActionsCategory
accept, actionPerformed, addAction, addAction, addActionNearTheGiven, addActions, breakActions, breakActions, breakActions, breakeActions, createSeparatorCategory, forEach, forEachIncludingSelf, getAction, getActions, getActionsRecursively, getCategories, isDisplayHeader, isEmpty, isNested, isUseActionForDisable, removeAction, removeIf, setActions, setDisplayHeader, setNested, setUseActionForDisable, size, sort
Methods inherited from class com.nomagic.actions.NMAction
addPropertyChangeListener, addShortcut, addShotcut, addWeakPropertyChangeListener, compareTo, createMenuItem, equals, firePropertyChange, getCommandKey, getDescription, getGroup, getIcon, getID, getLargeOrSmallIcon, getMenuShortcutMaskAsString, getMnemonicKey, getName, getPropertyChangeListeners, getShortcuts, getSmallIcon, getSmallOrLargeIcon, getTinyIcon, hashCode, hasMenuShortcutMask, isIDGenerated, removePropertyChangeListener, removeShortcut, removeWeakPropertyChangeListener, setDescription, setGroup, setIcon, setLargeIcon, setMnemonicKey, setName, setShortcuts, setSmallIcon, setTinyIcon, toString
Methods inherited from class javax.swing.AbstractAction
getKeys, getValue, isEnabled, putValue, setEnabled
-
Constructor Details
-
DiagramInnerToolbarConfiguration
-
DiagramInnerToolbarConfiguration
-
DiagramInnerToolbarConfiguration
-
DiagramInnerToolbarConfiguration
-
-
Method Details
-
isExpandByDefault
public boolean isExpandByDefault() -
setExpandByDefault
public void setExpandByDefault(boolean expandByDefault) -
clone
Description copied from class:ActionsCategory
Clones the category. During clone does not fire any property change events. Does deep clone.- Overrides:
clone
in classActionsCategory
- Returns:
- deep clone of category.
-
shallowClone
Description copied from class:ActionsCategory
Clones the category. During clone does not fire any property change events. Does deep clone.- Overrides:
shallowClone
in classActionsCategory
- Returns:
- deep clone of category.
-
getLargeIcon
Description copied from class:NMAction
Returns the large icon of the action.- Overrides:
getLargeIcon
in classNMAction
- Returns:
- the large icon of the action.
-