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
,java.awt.event.ActionListener
,java.io.Serializable
,java.lang.Cloneable
,java.lang.Comparable
,java.util.EventListener
,javax.swing.Action
@OpenApiAll public class DiagramInnerToolbarConfiguration extends MDActionsCategory
- See Also:
- Serialized Form
-
-
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
-
-
Constructor Summary
Constructors Constructor Description DiagramInnerToolbarConfiguration(java.lang.String id, javax.swing.Icon icon, java.lang.String name)
DiagramInnerToolbarConfiguration(java.lang.String id, javax.swing.Icon icon, java.lang.String name, boolean expandedByDefault)
DiagramInnerToolbarConfiguration(javax.swing.Icon icon, java.lang.String name)
DiagramInnerToolbarConfiguration(javax.swing.Icon icon, java.lang.String name, boolean expandedByDefault)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DiagramInnerToolbarConfiguration
clone()
Clones the category.javax.swing.Icon
getLargeIcon()
Returns the large icon of the action.boolean
isExpandByDefault()
void
setExpandByDefault(boolean expandByDefault)
DiagramInnerToolbarConfiguration
shallowClone()
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 Detail
-
DiagramInnerToolbarConfiguration
public DiagramInnerToolbarConfiguration(@CheckForNull javax.swing.Icon icon, java.lang.String name)
-
DiagramInnerToolbarConfiguration
public DiagramInnerToolbarConfiguration(java.lang.String id, @CheckForNull javax.swing.Icon icon, java.lang.String name)
-
DiagramInnerToolbarConfiguration
public DiagramInnerToolbarConfiguration(@CheckForNull javax.swing.Icon icon, java.lang.String name, boolean expandedByDefault)
-
DiagramInnerToolbarConfiguration
public DiagramInnerToolbarConfiguration(@CheckForNull java.lang.String id, @CheckForNull javax.swing.Icon icon, @CheckForNull java.lang.String name, boolean expandedByDefault)
-
-
Method Detail
-
isExpandByDefault
public boolean isExpandByDefault()
-
setExpandByDefault
public void setExpandByDefault(boolean expandByDefault)
-
clone
public DiagramInnerToolbarConfiguration clone()
Description copied from class:ActionsCategory
Clones the category. During clone does not fires any property change events. Does deep clone.- Overrides:
clone
in classActionsCategory
- Returns:
- deep clone of category.
-
shallowClone
public DiagramInnerToolbarConfiguration shallowClone()
Description copied from class:ActionsCategory
Clones the category. During clone does not fires any property change events. Does deep clone.- Overrides:
shallowClone
in classActionsCategory
- Returns:
- deep clone of category.
-
getLargeIcon
@CheckForNull public javax.swing.Icon getLargeIcon()
Description copied from class:NMAction
Returns the large icon of the action.- Overrides:
getLargeIcon
in classNMAction
- Returns:
- the large icon of the action.
-
-