views
Class ImageViewer.NodeAction
java.lang.Object
javax.swing.AbstractAction
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
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 |
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 |
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
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
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
- this method is called when an action is performed
it handles the action