Search this API

y.module
Class YPackageMenu

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

public class YPackageMenu
extends java.lang.Object
implements java.awt.event.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

 
Your browser does not support SVG content.

Constructor Summary
YPackageMenu(YPackage ypackage, YPackageMenuListener listener)
          Creates a new menu for a package
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          Invokes moduleSelected in the PackageMenuListener for the selected module.
 void addToMenu(javax.swing.JMenu menu)
          Adds the content of the package to a menu
 javax.swing.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(javax.swing.JMenu menu)
Adds the content of the package to a menu


createMenu

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


actionPerformed

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

Specified by:
actionPerformed in interface java.awt.event.ActionListener

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