org.acm.seguin.uml.refactor
Class PushUpFieldListener

java.lang.Object
  extended by java.awt.event.MouseAdapter
      extended by org.acm.seguin.uml.PopupMenuListener
          extended by org.acm.seguin.uml.refactor.NoInputRefactoringListener
              extended by org.acm.seguin.uml.refactor.PushUpFieldListener
All Implemented Interfaces:
java.awt.event.ActionListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.awt.event.MouseWheelListener, java.util.EventListener

public class PushUpFieldListener
extends NoInputRefactoringListener

Pushes a field into the parent class

Author:
Chris Seguin

Constructor Summary
PushUpFieldListener(UMLPackage initPackage, TypeSummary initType, FieldSummary fieldSummary, javax.swing.JPopupMenu initMenu, javax.swing.JMenuItem initItem)
          Constructor for the PushUpFieldListener object
 
Method Summary
protected  Refactoring createRefactoring()
          Creates a refactoring to be performed
 
Methods inherited from class org.acm.seguin.uml.refactor.NoInputRefactoringListener
actionPerformed, updateSummaries
 
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

PushUpFieldListener

public PushUpFieldListener(UMLPackage initPackage,
                           TypeSummary initType,
                           FieldSummary fieldSummary,
                           javax.swing.JPopupMenu initMenu,
                           javax.swing.JMenuItem initItem)
Constructor for the PushUpFieldListener object

Parameters:
initPackage - the UML package that is being operated on
initType - the type that is being removed
initMenu - The popup menu
initItem - The current item
fieldSummary - Description of the Parameter
Method Detail

createRefactoring

protected Refactoring createRefactoring()
Creates a refactoring to be performed

Specified by:
createRefactoring in class NoInputRefactoringListener
Returns:
the refactoring