templates.presentation
Class UIActions.LabelAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by templates.presentation.UIActions.LabelAction
All Implemented Interfaces:
java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action
Enclosing class:
UIActions

public static class UIActions.LabelAction
extends javax.swing.AbstractAction

Action to display the entity labelling dialog and let the user relabel an Entity.

Author:
Lenko Grigorov
See Also:
EntityLabellingDialog, Serialized Form

Field Summary
protected  TemplateEditableCanvas canvas
          The canvas which contains the entity which will be relabelled.
 
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
UIActions.LabelAction(TemplateEditableCanvas canvas, Entity entity)
          Construct an action to display the entity labelling dialog and let the user relabel the given Entity.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent evt)
          Display the entity labelling dialog to let the user relabel the given Entity.
 
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

canvas

protected TemplateEditableCanvas canvas
The canvas which contains the entity which will be relabelled.

Constructor Detail

UIActions.LabelAction

public UIActions.LabelAction(TemplateEditableCanvas canvas,
                             Entity entity)
Construct an action to display the entity labelling dialog and let the user relabel the given Entity.

Parameters:
canvas - the canvas which contains the entity which will be relabelled
entity - the entity which will be relabelled
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent evt)
Display the entity labelling dialog to let the user relabel the given Entity.

See Also:
EntityLabellingDialog