@OpenApiAll public abstract class ActionsCommandBarCreator extends java.lang.Object implements ActionsVisitor, com.nomagic.magicdraw.ui.actions.MainActionsVisitor
| Modifier and Type | Class and Description | 
|---|---|
static interface  | 
ActionsCommandBarCreator.ButtonFactory
Buttons factory used to create a button 
 | 
static class  | 
ActionsCommandBarCreator.FontFaceCellRenderer
The renderer used to represent some font face name. 
 | 
static class  | 
ActionsCommandBarCreator.ListComboBox
Class for representing list action as combo box. 
 | 
static class  | 
ActionsCommandBarCreator.NMJideButtonFactory  | 
static class  | 
ActionsCommandBarCreator.NMJideSplitButtonFactory  | 
static interface  | 
ActionsCommandBarCreator.SplitButtonFactory
Buttons factory used to create a button 
 | 
| Modifier and Type | Field and Description | 
|---|---|
protected javax.swing.JComponent | 
mCurrentToolbar
The toolbar to add buttons into during the visit actions. 
 | 
| Modifier | Constructor and Description | 
|---|---|
protected  | 
ActionsCommandBarCreator()
Creates new creator with Jide buttons factory 
 | 
protected  | 
ActionsCommandBarCreator(ActionsCommandBarCreator.ButtonFactory factory)
Creates new creator with given buttons factory 
 | 
protected  | 
ActionsCommandBarCreator(ActionsCommandBarCreator.ButtonFactory factory,
                        ActionsCommandBarCreator.SplitButtonFactory splitButtonFactory)
Creates new creator with given buttons factory 
 | 
| 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 | 
addFlexibleSeparator()
Adds a flexible separator into the current toolbar. 
 | 
protected abstract void | 
addToCurrentToolbar(java.awt.Component c)  | 
protected void | 
addToJideSplitButton(ActionsCategory category)  | 
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 javax.swing.AbstractButton | 
createComponent(NMAction action)
Creates NMActionButton for given action. 
 | 
protected javax.swing.AbstractButton | 
createComponent(NMStateAction action)
Creates MDStateActionButton from MDStateAction. 
 | 
protected com.nomagic.awt.NMJideSplitButton | 
createJideSplitButton(NMAction a)  | 
protected void | 
createPropertyActionComponent(PropertyAction action)  | 
com.nomagic.awt.ActionIconProvider | 
getIconProvider()  | 
void | 
setIconProvider(com.nomagic.awt.ActionIconProvider iconProvider)  | 
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)  | 
@CheckForNull protected javax.swing.JComponent mCurrentToolbar
protected ActionsCommandBarCreator()
protected ActionsCommandBarCreator(ActionsCommandBarCreator.ButtonFactory factory)
factory - factoryprotected ActionsCommandBarCreator(ActionsCommandBarCreator.ButtonFactory factory, ActionsCommandBarCreator.SplitButtonFactory splitButtonFactory)
factory - factoryprotected void acceptChildren(ActionsManager manager)
manager - manager from which categories will be collected.protected void addFlexibleSeparator()
protected void addToJideSplitButton(ActionsCategory category)
protected com.nomagic.awt.NMJideSplitButton createJideSplitButton(NMAction a)
protected void acceptChildren(NMAction parent)
parent - container of actions.protected javax.swing.AbstractButton createComponent(NMAction action)
action - action source for button.protected javax.swing.AbstractButton createComponent(NMStateAction action)
action - source for creating button.public void visit(NMAction action)
ActionsVisitorvisit in interface ActionsVisitoraction - the action to visit.public void visit(NMStateAction action)
ActionsVisitorvisit in interface ActionsVisitoraction - the action to visit.public abstract void visit(ActionsCategory category)
ActionsVisitorvisit in interface ActionsVisitorcategory - the category to visit.public void visit(SelectItemAction action)
visit in interface com.nomagic.magicdraw.ui.actions.MainActionsVisitorpublic void visit(com.nomagic.magicdraw.uml.symbols.actions.ChangeFontAction action)
visit in interface com.nomagic.magicdraw.ui.actions.MainActionsVisitorprotected 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.MainActionsVisitorprotected 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.MainActionsVisitorprotected void createPropertyActionComponent(PropertyAction action)
public com.nomagic.awt.ActionIconProvider getIconProvider()
public void setIconProvider(com.nomagic.awt.ActionIconProvider iconProvider)
protected abstract void addToCurrentToolbar(java.awt.Component c)