@OpenApiAll public abstract class ActionsToolbarsCreator extends java.lang.Object implements ActionsVisitor, com.nomagic.magicdraw.ui.actions.MainActionsVisitor
Modifier and Type | Class and Description |
---|---|
static class |
ActionsToolbarsCreator.FontFaceCellRenderer
The renderer used to represent some font face name.
|
static class |
ActionsToolbarsCreator.ListComboBox
Class for representing list action as combo box.
|
Constructor and Description |
---|
ActionsToolbarsCreator() |
Modifier and Type | Method and Description |
---|---|
protected void |
acceptChildren(ActionsManager manager)
For all categories in manager calls accept this visitor.
|
protected void |
acceptChildren(NMAction parent)
Calls accept for all actions in given action.
|
protected void |
addStatusLineListener(com.nomagic.awt.HelpInformationProvider button) |
protected abstract void |
addToCurrentToolbar(java.awt.Component c) |
protected java.awt.Component |
createComponent(com.nomagic.magicdraw.uml.symbols.actions.ChangeFontAction action) |
protected java.awt.Component |
createComponent(com.nomagic.magicdraw.uml.symbols.actions.ChangeZoomAction category) |
protected NMActionButton |
createComponent(NMAction action)
Creates NMActionButton for given action.
|
protected com.nomagic.awt.NMStateActionButton |
createComponent(NMStateAction action)
Creates MDStateActionButton from MDStateAction.
|
protected java.awt.Component |
createComponent(PropertyAction action) |
protected javax.swing.JComboBox |
createListComponent(SelectItemAction action)
Creates a representation component for SelectItemAction.
|
abstract void |
visit(ActionsCategory category)
Visits ActionsCategory.
|
void |
visit(com.nomagic.magicdraw.uml.symbols.actions.ChangeFontAction action) |
void |
visit(com.nomagic.magicdraw.uml.symbols.actions.ChangeZoomAction category) |
void |
visit(NMAction action)
Visits action.
|
void |
visit(NMStateAction action)
Visits NMStateAction.
|
void |
visit(PropertyAction action) |
void |
visit(SelectItemAction action) |
protected void acceptChildren(ActionsManager manager)
manager
- manager from which categories will be collected.protected void acceptChildren(NMAction parent)
parent
- container of actions.protected NMActionButton createComponent(NMAction action)
action
- action source for button.protected void addStatusLineListener(com.nomagic.awt.HelpInformationProvider button)
protected com.nomagic.awt.NMStateActionButton createComponent(NMStateAction action)
action
- source for creating button.protected javax.swing.JComboBox createListComponent(SelectItemAction action)
action
- source for creating a component.public void visit(NMAction action)
ActionsVisitor
visit
in interface ActionsVisitor
action
- the action to visit.public void visit(NMStateAction action)
ActionsVisitor
visit
in interface ActionsVisitor
action
- the action to visit.public abstract void visit(ActionsCategory category)
ActionsVisitor
visit
in interface ActionsVisitor
category
- the category to visit.public void visit(SelectItemAction action)
visit
in interface com.nomagic.magicdraw.ui.actions.MainActionsVisitor
public void visit(com.nomagic.magicdraw.uml.symbols.actions.ChangeFontAction action)
visit
in interface com.nomagic.magicdraw.ui.actions.MainActionsVisitor
protected java.awt.Component createComponent(com.nomagic.magicdraw.uml.symbols.actions.ChangeFontAction action)
public void visit(com.nomagic.magicdraw.uml.symbols.actions.ChangeZoomAction category)
visit
in interface com.nomagic.magicdraw.ui.actions.MainActionsVisitor
protected java.awt.Component createComponent(com.nomagic.magicdraw.uml.symbols.actions.ChangeZoomAction category)
public void visit(PropertyAction action)
visit
in interface com.nomagic.magicdraw.ui.actions.MainActionsVisitor
protected java.awt.Component createComponent(PropertyAction action)
protected abstract void addToCurrentToolbar(java.awt.Component c)