Class PopupMenuAction

java.lang.Object
  extended byjavax.swing.AbstractAction
      extended byPopupMenuAction
All Implemented Interfaces:
javax.swing.Action, java.awt.event.ActionListener, java.lang.Cloneable, java.util.EventListener, java.io.Serializable

public class PopupMenuAction
extends javax.swing.AbstractAction

Listens to PopupMenu, take an action accordingly. It will popup a printing dialog box or file browsing dialog box to allow user printing the image or save as image.

Author:
Lulin Song
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
PopupMenuAction(java.lang.Object s)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent arg0)
          It will popup a printing dialog box or file browsing dialog box.
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PopupMenuAction

public PopupMenuAction(java.lang.Object s)
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent arg0)
It will popup a printing dialog box or file browsing dialog box.