templates.diagram.actions
Class DiagramActions.AssignFSAAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by templates.diagram.actions.AbstractDiagramAction
          extended by templates.diagram.actions.DiagramActions.AssignFSAAction
All Implemented Interfaces:
java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action
Enclosing class:
DiagramActions

public static class DiagramActions.AssignFSAAction
extends AbstractDiagramAction

Action which assigns an FSAModel to the TemplateComponent of an Entity.

Author:
Lenko Grigorov
See Also:
Serialized Form

Field Summary
protected  TemplateDiagram diagram
          The TemplateDiagram context to be used by the action.
protected  Entity entity
          The Entity whose TemplateComponent is to be assigned the FSAModel.
protected  ides.api.model.fsa.FSAModel fsa
          The FSAModel to be assigned.
protected  EntityIcon icon
          The new icon for the Entity.
 
Fields inherited from class templates.diagram.actions.AbstractDiagramAction
parentEdit, usePluralDescription
 
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
DiagramActions.AssignFSAAction(javax.swing.undo.CompoundEdit parent, TemplateDiagram diagram, Entity entity, ides.api.model.fsa.FSAModel fsa)
          Construct an action for the given parameters.
DiagramActions.AssignFSAAction(javax.swing.undo.CompoundEdit parent, TemplateDiagram diagram, Entity entity, ides.api.model.fsa.FSAModel fsa, EntityIcon icon)
          Construct an action for the given parameters.
DiagramActions.AssignFSAAction(TemplateDiagram diagram, Entity entity, ides.api.model.fsa.FSAModel fsa)
          Construct an action for the given parameters.
DiagramActions.AssignFSAAction(TemplateDiagram diagram, Entity entity, ides.api.model.fsa.FSAModel fsa, EntityIcon icon)
          Construct an action for the given parameters.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 
Methods inherited from class templates.diagram.actions.AbstractDiagramAction
addBoundsAdjust, execute, postEdit, postEdit, postEditAdjustCanvas, postEditAdjustCanvas, setLastOfMultiple
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

diagram

protected TemplateDiagram diagram
The TemplateDiagram context to be used by the action.


entity

protected Entity entity
The Entity whose TemplateComponent is to be assigned the FSAModel.


fsa

protected ides.api.model.fsa.FSAModel fsa
The FSAModel to be assigned.


icon

protected EntityIcon icon
The new icon for the Entity.

Constructor Detail

DiagramActions.AssignFSAAction

public DiagramActions.AssignFSAAction(TemplateDiagram diagram,
                                      Entity entity,
                                      ides.api.model.fsa.FSAModel fsa)
Construct an action for the given parameters.

Parameters:
diagram - the TemplateDiagram to be used by the action
entity - the Entity whose TemplateComponent is to be assigned the FSAModel
fsa - the FSAModel to be assigned

DiagramActions.AssignFSAAction

public DiagramActions.AssignFSAAction(TemplateDiagram diagram,
                                      Entity entity,
                                      ides.api.model.fsa.FSAModel fsa,
                                      EntityIcon icon)
Construct an action for the given parameters.

Parameters:
diagram - the TemplateDiagram to be used by the action
entity - the Entity whose TemplateComponent is to be assigned the FSAModel
fsa - the FSAModel to be assigned
icon - the new icon for the Entity

DiagramActions.AssignFSAAction

public DiagramActions.AssignFSAAction(javax.swing.undo.CompoundEdit parent,
                                      TemplateDiagram diagram,
                                      Entity entity,
                                      ides.api.model.fsa.FSAModel fsa)
Construct an action for the given parameters.

Parameters:
parent - the UndoableEdit to which this action should add its own undo information
diagram - the TemplateDiagram to be used by the action
entity - the Entity whose TemplateComponent is to be assigned the FSAModel
fsa - the FSAModel to be assigned

DiagramActions.AssignFSAAction

public DiagramActions.AssignFSAAction(javax.swing.undo.CompoundEdit parent,
                                      TemplateDiagram diagram,
                                      Entity entity,
                                      ides.api.model.fsa.FSAModel fsa,
                                      EntityIcon icon)
Construct an action for the given parameters.

Parameters:
parent - the UndoableEdit to which this action should add its own undo information
diagram - the TemplateDiagram to be used by the action
entity - the Entity whose TemplateComponent is to be assigned the FSAModel
fsa - the FSAModel to be assigned
icon - the new icon for the Entity
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)