views
Class ImageViewer.NodeAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by views.ImageViewer.NodeAction
All Implemented Interfaces:
java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action
Enclosing class:
ImageViewer

public class ImageViewer.NodeAction
extends javax.swing.AbstractAction

class for handling Menu actions that have to do with a node

Author:
Leo Bosnjak
See Also:
Serialized Form

Field Summary
private  java.util.Vector<Node> nodes
           
private static long serialVersionUID
           
private  ImageViewer.PopupType type
           
private  ImageViewer worker
           
 
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
ImageViewer.NodeAction(ImageViewer worker, java.lang.String text, java.lang.String desc, java.lang.Integer mnemonic, ImageViewer.PopupType type, java.util.Vector<Node> nodes)
          Constructs a NodeAction object
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          this method is called when an action is performed it handles the action
 
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

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

type

private ImageViewer.PopupType type

nodes

private java.util.Vector<Node> nodes

worker

private ImageViewer worker
Constructor Detail

ImageViewer.NodeAction

public ImageViewer.NodeAction(ImageViewer worker,
                              java.lang.String text,
                              java.lang.String desc,
                              java.lang.Integer mnemonic,
                              ImageViewer.PopupType type,
                              java.util.Vector<Node> nodes)
Constructs a NodeAction object

Parameters:
text -
desc -
mnemonic -
type -
nodes -
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
this method is called when an action is performed it handles the action