java.lang.Object
org.pushingpixels.radiance.theming.api.RadianceThemingWidget<JMenuBar>
org.pushingpixels.radiance.theming.internal.widget.menu.MenuSearchWidget

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

    • inEvent

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

      private PropertyChangeListener propertyListener
      Listens on changes to the component orientation.
    • searchPanel

      private MenuSearchWidget.SearchPanel searchPanel
      The associated search panel.
  • Constructor Details

    • MenuSearchWidget

      public MenuSearchWidget()
  • Method Details

    • toInstallMenuSearch

      private static boolean toInstallMenuSearch(JMenuBar menuBar)
    • getMenuItemCount

      private static int getMenuItemCount(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(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.
    • installUI

      public void installUI()
      Description copied from class: RadianceThemingWidget
      Installs UI on the associated component.
      Overrides:
      installUI in class RadianceThemingWidget<JMenuBar>
    • uninstallUI

      public void uninstallUI()
      Description copied from class: RadianceThemingWidget
      Uninstalls UI on the associated component.
      Overrides:
      uninstallUI in class RadianceThemingWidget<JMenuBar>
    • installListeners

      public void installListeners()
      Description copied from class: RadianceThemingWidget
      Installs listeners for the associated component.
      Overrides:
      installListeners in class RadianceThemingWidget<JMenuBar>
    • uninstallListeners

      public void uninstallListeners()
      Description copied from class: RadianceThemingWidget
      Uninstalls listeners for the associated component.
      Overrides:
      uninstallListeners in class RadianceThemingWidget<JMenuBar>
    • reset

      private void reset()