Class ExtensionMenu.MenuAction

java.lang.Object
  extended byjavax.swing.AbstractAction
      extended byExtensionMenu.MenuAction
All Implemented Interfaces:
javax.swing.Action, java.awt.event.ActionListener, java.lang.Cloneable, java.util.EventListener, java.io.Serializable
Enclosing class:
ExtensionMenu

class ExtensionMenu.MenuAction
extends javax.swing.AbstractAction

This class is used for handling the event of the added menuitem in the menu of the BlueJ-application.

Author:
Matilda Östling

Nested Class Summary
 
Nested classes inherited from class javax.swing.AbstractAction
 
Field Summary
private  EditorExtension simple
           
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
ExtensionMenu.MenuAction(java.lang.String menuName, EditorExtension s)
          The constructor of the class.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent anEvent)
          This method is called when an event takes places.
 
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

simple

private EditorExtension simple
Constructor Detail

ExtensionMenu.MenuAction

public ExtensionMenu.MenuAction(java.lang.String menuName,
                                EditorExtension s)
The constructor of the class.

Parameters:
menuName - The name for the MenuItem
s - An object of the class EditorExtension
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent anEvent)
This method is called when an event takes places.

Parameters:
anEvent - The ActionEvent for the added menuItem