Interface Actions.SubMenuModel

Enclosing class:
Actions

@Deprecated public static interface Actions.SubMenuModel
Deprecated.
used by deprecated Actions.SubMenu
Interface for the creating Actions.SubMenu. It provides the methods for all items in submenu: name shortcut and perform method. Also has methods for notification of changes of the model.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Deprecated.
    Adds change listener for changes of the model.
    int
    Deprecated.
     
    org.openide.util.HelpCtx
    getHelpCtx(int index)
    Deprecated.
    Get context help for the specified item.
    getLabel(int index)
    Deprecated.
    Gets label for specific index
    void
    performActionAt(int index)
    Deprecated.
    Perform the action on the specific index
    void
    Deprecated.
    Removes change listener for changes of the model.
  • Method Details

    • getCount

      int getCount()
      Deprecated.
      Returns:
      count of the submenu items.
    • getLabel

      String getLabel(int index)
      Deprecated.
      Gets label for specific index
      Parameters:
      index - of the submenu item
      Returns:
      label for this menu item (or null for a separator)
    • getHelpCtx

      org.openide.util.HelpCtx getHelpCtx(int index)
      Deprecated.
      Get context help for the specified item. This can be used to associate help with individual items. You may return null to just use the context help for the associated system action (if any). Note that only help IDs will work, not URLs.
      Returns:
      the context help, or null
    • performActionAt

      void performActionAt(int index)
      Deprecated.
      Perform the action on the specific index
      Parameters:
      index - of the submenu item which should be performed
    • addChangeListener

      void addChangeListener(ChangeListener l)
      Deprecated.
      Adds change listener for changes of the model.
    • removeChangeListener

      void removeChangeListener(ChangeListener l)
      Deprecated.
      Removes change listener for changes of the model.