Back to index

moin  1.9.0~rc2
Public Member Functions | Package Attributes
CH.ifa.draw.util.MenuAdapterButton Class Reference

A Command enabled menu. More...

Inheritance diagram for CH.ifa.draw.util.MenuAdapterButton:
Inheritance graph
[legend]
Collaboration diagram for CH.ifa.draw.util.MenuAdapterButton:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 MenuAdapterButton (PopupMenu m)
void actionPerformed (ActionEvent e)

Package Attributes

PopupMenu menu

Detailed Description

A Command enabled menu.

Selecting an item executes the corresponding command.

See also:
Command

Definition at line 19 of file MenuAdapterButton.java.


Constructor & Destructor Documentation

Definition at line 24 of file MenuAdapterButton.java.

                                          {
       super(m.getLabel());
       menu = m;
       addActionListener(this);
    }

Member Function Documentation

void CH.ifa.draw.util.MenuAdapterButton.actionPerformed ( ActionEvent  e) [inline]

Definition at line 30 of file MenuAdapterButton.java.

                                               {
       menu.show(this, 0, 0);
    }

Member Data Documentation

Definition at line 22 of file MenuAdapterButton.java.


The documentation for this class was generated from the following file: