templates.diagram.actions
Class DiagramActions.LabelEntityAction

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

Action which sets the label 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 to be relabelled.
protected  java.lang.String label
          The new label 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.LabelEntityAction(javax.swing.undo.CompoundEdit parent, TemplateDiagram diagram, Entity entity, java.lang.String label)
          Construct an action for the given parameters.
DiagramActions.LabelEntityAction(TemplateDiagram diagram, Entity entity, java.lang.String label)
          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 to be relabelled.


label

protected java.lang.String label
The new label for the Entity.

Constructor Detail

DiagramActions.LabelEntityAction

public DiagramActions.LabelEntityAction(TemplateDiagram diagram,
                                        Entity entity,
                                        java.lang.String label)
Construct an action for the given parameters.

Parameters:
diagram - the TemplateDiagram to be used by the action
entity - the Entity to be relabelled
label - the new label for the Entity

DiagramActions.LabelEntityAction

public DiagramActions.LabelEntityAction(javax.swing.undo.CompoundEdit parent,
                                        TemplateDiagram diagram,
                                        Entity entity,
                                        java.lang.String label)
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 to be relabelled
label - the new label for the Entity
Method Detail

actionPerformed

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