Class MenuSearchWidget


  • public class MenuSearchWidget
    extends RadianceThemingWidget<javax.swing.JMenuBar>
    Adds menu search panel to menu bars.
    • Field Detail

      • inEvent

        private boolean inEvent
        Boolean flag to prevent infinite loop. Maybe need to use something more elegant.
      • propertyListener

        private java.beans.PropertyChangeListener propertyListener
        Listens on changes to the component orientation.
    • Constructor Detail

      • MenuSearchWidget

        public MenuSearchWidget()
    • Method Detail

      • toInstallMenuSearch

        private static boolean toInstallMenuSearch​(javax.swing.JMenuBar menuBar)
      • getMenuItemCount

        private static int getMenuItemCount​(javax.swing.JMenuItem menuItem)
        Returns the number of menu items under the specified menu item.
        Parameters:
        menuItem - The root menu item.
        Returns:
        The number of menu items under the specified menu item.
      • getMenuItemCount

        public static int getMenuItemCount​(javax.swing.JMenuBar menuBar)
        Returns the number of menu items under the specified menu bar.
        Parameters:
        menuBar - The root menu bar.
        Returns:
        The number of menu items under the specified menu bar.
      • reset

        private void reset()