Module org.jpo

Class ChangeWindowPopupMenu

All Implemented Interfaces:
ActionListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, MenuElement

public class ChangeWindowPopupMenu extends JPopupMenu implements ActionListener
A class that generates a popup menu for a group node. This became necessary primarily because the code was getting a bit long and was cluttering up a different class. Separating out the popup menu and making it an object and forcing an interface on the object instantiating it is probably more in line with the OO philosophy.
See Also:
  • Constructor Details

    • ChangeWindowPopupMenu

      public ChangeWindowPopupMenu(ResizableJFrame caller)
      Creates a popup menu which allows the user to choose how he would like his window to be positioned and whether it should have decorations.
      Parameters:
      caller - The object requesting the menu.
  • Method Details

    • actionPerformed

      public void actionPerformed(ActionEvent actionEvent)
      Method that analyses the user initiated action and performs what the user requested.
      Specified by:
      actionPerformed in interface ActionListener
      Parameters:
      actionEvent - The Action Event relieved.