templates.presentation
Class UIActions.ShowSupAction

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

An action to compute and display the supervisor for a channel in a template design.

Author:
Lenko Grigorov
See Also:
Serialized Form

Field Summary
protected  TemplateEditableCanvas canvas
          The canvas which contains the channel for which a supervisor will be computed.
 
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.ShowSupAction(TemplateEditableCanvas canvas, Entity channel)
          Construct an action to compute and display the supervisor for the given channel.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent evt)
          Compute and display the supervisor for the channel.
 
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 channel for which a supervisor will be computed.

Constructor Detail

UIActions.ShowSupAction

public UIActions.ShowSupAction(TemplateEditableCanvas canvas,
                               Entity channel)
Construct an action to compute and display the supervisor for the given channel.

Parameters:
canvas - the canvas which contains the channel for which a supervisor will be computed
channel - the channel for which a supervisor will be computed
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent evt)
Compute and display the supervisor for the channel. If there are consistency issues in the template design involving the channel, warn the user and do nothing.