y.module
Class YPackageMenu

java.lang.Object
  |
  +--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 appropiate 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-2003,
yWorks GmbH.
All rights reserved.

2003