templates.presentation
Class IssuesWrapper.ConvertAction

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

protected static class IssuesWrapper.ConvertAction
extends javax.swing.AbstractAction

Action to change the type (TemplateComponent.TYPE_MODULE or TemplateComponent.TYPE_CHANNEL) of a template component.

Author:
Lenko Grigorov
See Also:
Serialized Form

Field Summary
protected  TemplateDiagram diagram
          The template diagram which contains the template component.
protected  Entity entity
          The Entity for the template component.
protected  int type
          The new type (TemplateComponent.TYPE_MODULE or TemplateComponent.TYPE_CHANNEL) of the component.
 
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
IssuesWrapper.ConvertAction(java.lang.String label, TemplateDiagram diagram, Entity entity, int type)
          Construct a new action to change the type of a given template component.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          Perform the change of type.
 
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 template diagram which contains the template component.


entity

protected Entity entity
The Entity for the template component.


type

protected int type
The new type (TemplateComponent.TYPE_MODULE or TemplateComponent.TYPE_CHANNEL) of the component.

Constructor Detail

IssuesWrapper.ConvertAction

public IssuesWrapper.ConvertAction(java.lang.String label,
                                   TemplateDiagram diagram,
                                   Entity entity,
                                   int type)
Construct a new action to change the type of a given template component.

Parameters:
label - the label for the action
diagram - the template diagram which contains the template component
entity - the entity for the template component
type - the new type (TemplateComponent.TYPE_MODULE or TemplateComponent.TYPE_CHANNEL) of the component
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Perform the change of type.