templates.diagram.actions
Class DiagramActions.AssignNewFSAAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by templates.diagram.actions.AbstractDiagramAction
          extended by templates.diagram.actions.DiagramActions.AssignNewFSAAction
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.AssignNewFSAAction
extends AbstractDiagramAction

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

Author:
Lenko Grigorov
See Also:
Serialized Form

Field Summary
protected  ides.api.model.fsa.FSAModel[] buffer
          A buffer which will store the new FSAModel so it can be passed back.
protected  TemplateDiagram diagram
          The TemplateDiagram context to be used by the action.
protected  Entity entity
          The Entity whose TemplateComponent is to be assigned a blank FSAModel.
 
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.AssignNewFSAAction(javax.swing.undo.CompoundEdit parent, TemplateDiagram diagram, Entity entity)
          Construct an action for the given parameters.
DiagramActions.AssignNewFSAAction(javax.swing.undo.CompoundEdit parent, TemplateDiagram diagram, Entity entity, ides.api.model.fsa.FSAModel[] buffer)
          Construct an action for the given parameters.
DiagramActions.AssignNewFSAAction(TemplateDiagram diagram, Entity entity)
          Construct an action for the given parameters.
DiagramActions.AssignNewFSAAction(TemplateDiagram diagram, Entity entity, ides.api.model.fsa.FSAModel[] buffer)
          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 a blank FSAModel.


buffer

protected ides.api.model.fsa.FSAModel[] buffer
A buffer which will store the new FSAModel so it can be passed back.

Constructor Detail

DiagramActions.AssignNewFSAAction

public DiagramActions.AssignNewFSAAction(TemplateDiagram diagram,
                                         Entity entity)
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 a blank FSAModel

DiagramActions.AssignNewFSAAction

public DiagramActions.AssignNewFSAAction(TemplateDiagram diagram,
                                         Entity entity,
                                         ides.api.model.fsa.FSAModel[] buffer)
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 a blank FSAModel
buffer - the buffer which will store the new FSAModel so the caller can get access to it

DiagramActions.AssignNewFSAAction

public DiagramActions.AssignNewFSAAction(javax.swing.undo.CompoundEdit parent,
                                         TemplateDiagram diagram,
                                         Entity entity)
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 a blank FSAModel

DiagramActions.AssignNewFSAAction

public DiagramActions.AssignNewFSAAction(javax.swing.undo.CompoundEdit parent,
                                         TemplateDiagram diagram,
                                         Entity entity,
                                         ides.api.model.fsa.FSAModel[] buffer)
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 a blank FSAModel
buffer - the buffer which will store the new FSAModel so the caller can get access to it
Method Detail

actionPerformed

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