Interface MenuAction

  • All Superinterfaces:
    Action, ActionListener, EventListener

    public interface MenuAction
    extends Action
    Add this contract on any action that should be in a menu.

    The keyStroke will be generated (from 'A', 'B', ...), should be more customizable but form the moment KISS approach.

    Created on 23/11/2020.

    Since:
    3.0
    Author:
    Tony Chemit - dev@tchemit.fr
    • Method Detail

      • preparePopup

        static void preparePopup​(JPopupMenu popupMenu,
                                 JComponent c,
                                 boolean selectLast)
      • selectFirst

        static void selectFirst​(JPopupMenu popupMenu)
      • selectLast

        static void selectLast​(JPopupMenu popupMenu)
      • setKeyStroke

        void setKeyStroke​(KeyStroke keyStroke)
      • initUI

        default void initUI()
      • initEditor

        default void initEditor()
      • getMenuKeyStroke

        default KeyStroke getMenuKeyStroke()