Search this API

y.module
Class YPackageMenu

java.lang.Object
  extended by y.module.YPackageMenu
All Implemented Interfaces:
ActionListener, EventListener

public class YPackageMenu
extends Object
implements ActionListener

Creates a menu for modules in a package. If a module in the menu is selected, the appropriate YPackageMenuListener is invoked.
Note:This class is obsolete for yEd


Constructor Summary
YPackageMenu(YPackage ypackage, YPackageMenuListener listener)
          Creates a new menu for a package
 
Method Summary
 void actionPerformed(ActionEvent e)
          Invokes moduleSelected in the PackageMenuListener for the selected module.
 void addToMenu(JMenu menu)
          Adds the content of the package to a menu
 JMenu createMenu()
          Creates a menu containing the content of the package
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

YPackageMenu

public YPackageMenu(YPackage ypackage,
                    YPackageMenuListener listener)
Creates a new menu for a package

Method Detail

addToMenu

public void addToMenu(JMenu menu)
Adds the content of the package to a menu


createMenu

public JMenu createMenu()
Creates a menu containing the content of the package


actionPerformed

public void actionPerformed(ActionEvent e)
Invokes moduleSelected in the PackageMenuListener for the selected module.

Specified by:
actionPerformed in interface ActionListener

© Copyright 2000-2013,
yWorks GmbH.
All rights reserved.