Interface MenuItemListener

  • All Known Implementing Classes:
    TransformationEditor

    public interface MenuItemListener
    An interface for listeners that are invoked when a menu item is created.
    Since:
    Ptolemy II 8.0
    Version:
    $Id$
    Author:
    Thomas Huining Feng
    See Also:
    MenuActionFactory
    Pt.AcceptedRating:
    Red (tfeng)
    Pt.ProposedRating:
    Red (tfeng)
    • Method Detail

      • menuItemCreated

        void menuItemCreated​(JContextMenu menu,
                             NamedObj object,
                             javax.swing.JMenuItem menuItem)
        The method to be invoked when a menu item is created, so that this listener can modify the menu item if it needs to.
        Parameters:
        menu - The menu context.
        object - The object for which the menu item is created.
        menuItem - The created menu item.