Class MenuSearchWidget
java.lang.Object
org.pushingpixels.radiance.theming.api.RadianceThemingWidget<JMenuBar>
org.pushingpixels.radiance.theming.internal.widget.menu.MenuSearchWidget
Adds menu search panel to menu bars.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate classPanel for searching the menus.private static classSingle result of menu search.private static classListener on thesearch resultbutton.private classLayout for the search panel. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanBoolean flag to prevent infinite loop.private PropertyChangeListenerListens on changes to the component orientation.private MenuSearchWidget.SearchPanelThe associated search panel.Fields inherited from class RadianceThemingWidget
jcomp -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intgetMenuItemCount(JMenuBar menuBar) Returns the number of menu items under the specified menu bar.private static intgetMenuItemCount(JMenuItem menuItem) Returns the number of menu items under the specified menu item.voidInstalls listeners for the associated component.voidInstalls UI on the associated component.private voidreset()private static booleantoInstallMenuSearch(JMenuBar menuBar) voidUninstalls listeners for the associated component.voidUninstalls UI on the associated component.Methods inherited from class RadianceThemingWidget
installComponents, installDefaults, setComponent, uninstallComponents, uninstallDefaults
-
Field Details
-
inEvent
private boolean inEventBoolean flag to prevent infinite loop. Maybe need to use something more elegant. -
propertyListener
Listens on changes to the component orientation. -
searchPanel
The associated search panel.
-
-
Constructor Details
-
MenuSearchWidget
public MenuSearchWidget()
-
-
Method Details
-
toInstallMenuSearch
-
getMenuItemCount
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
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:RadianceThemingWidgetInstalls UI on the associated component.- Overrides:
installUIin classRadianceThemingWidget<JMenuBar>
-
uninstallUI
public void uninstallUI()Description copied from class:RadianceThemingWidgetUninstalls UI on the associated component.- Overrides:
uninstallUIin classRadianceThemingWidget<JMenuBar>
-
installListeners
public void installListeners()Description copied from class:RadianceThemingWidgetInstalls listeners for the associated component.- Overrides:
installListenersin classRadianceThemingWidget<JMenuBar>
-
uninstallListeners
public void uninstallListeners()Description copied from class:RadianceThemingWidgetUninstalls listeners for the associated component.- Overrides:
uninstallListenersin classRadianceThemingWidget<JMenuBar>
-
reset
private void reset()
-