org.acm.seguin.uml.refactor
Class DialogViewListener

java.lang.Object
  extended by java.awt.event.MouseAdapter
      extended by org.acm.seguin.uml.PopupMenuListener
          extended by org.acm.seguin.uml.refactor.DialogViewListener
All Implemented Interfaces:
java.awt.event.ActionListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.awt.event.MouseWheelListener, java.util.EventListener
Direct Known Subclasses:
AddChildClassListener, AddMoveClassListener, AddParentClassListener, AddRenameClassListener, ExtractInterfaceListener, MoveMethodListener, PushDownFieldListener, PushDownMethodListener, RenameFieldListener, RenameMethodListener, RenameParameterListener

public abstract class DialogViewListener
extends PopupMenuListener

Creates a listener that will view a dialog box and do whatever the dialog box says.

Author:
Chris Seguin

Constructor Summary
DialogViewListener(javax.swing.JPopupMenu initMenu, javax.swing.JMenuItem initItem)
          Constructor for the DialogViewListener object
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent evt)
          A menu item has been selected, display the dialog box
protected abstract  javax.swing.JDialog createDialog()
          Creates an appropriate dialog to prompt the user for additional input
 
Methods inherited from class org.acm.seguin.uml.PopupMenuListener
mouseEntered, mouseExited
 
Methods inherited from class java.awt.event.MouseAdapter
mouseClicked, mouseDragged, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DialogViewListener

public DialogViewListener(javax.swing.JPopupMenu initMenu,
                          javax.swing.JMenuItem initItem)
Constructor for the DialogViewListener object

Parameters:
initMenu - The popup menu
initItem - The current item
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent evt)
A menu item has been selected, display the dialog box

Specified by:
actionPerformed in interface java.awt.event.ActionListener
Overrides:
actionPerformed in class PopupMenuListener
Parameters:
evt - the action event

createDialog

protected abstract javax.swing.JDialog createDialog()
Creates an appropriate dialog to prompt the user for additional input

Returns:
the dialog box