templates.presentation
Class UIActions.MatchEventsAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by templates.presentation.UIActions.MatchEventsAction
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.MatchEventsAction
extends javax.swing.AbstractAction

An action to replace all links between the template components connected by a connector with links only between the events with matching names.

Author:
Lenko Grigorov
See Also:
Serialized Form

Field Summary
protected  TemplateEditableCanvas canvas
          The canvas which contains the connector whose event links will be replaced.
 
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.MatchEventsAction(TemplateEditableCanvas canvas, Connector connector)
          Construct an action to replace all links between the template components connected by the given connector with links only between the events with matching names.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent evt)
          Replace all links between the template components connected by the connector with links only between the events with matching names.
 
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 connector whose event links will be replaced.

Constructor Detail

UIActions.MatchEventsAction

public UIActions.MatchEventsAction(TemplateEditableCanvas canvas,
                                   Connector connector)
Construct an action to replace all links between the template components connected by the given connector with links only between the events with matching names.

Parameters:
canvas - the canvas which contains the connector whose event links will be replaced
connector - the connector whose event links will be replaced
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent evt)
Replace all links between the template components connected by the connector with links only between the events with matching names. If there are no matching events, this action will result in the removal of all event links between the template components.