Class MenuSearchWidget.SearchResult
- java.lang.Object
-
- org.pushingpixels.radiance.theming.internal.widget.menu.MenuSearchWidget.SearchResult
-
- Enclosing class:
- MenuSearchWidget
private static class MenuSearchWidget.SearchResult extends java.lang.ObjectSingle result of menu search.
-
-
Field Summary
Fields Modifier and Type Field Description private javax.swing.MenuElement[]menuElementsPath to the menu (item).
-
Constructor Summary
Constructors Constructor Description SearchResult(javax.swing.JMenuBar menuBar, java.util.LinkedList<javax.swing.JMenu> menuPath, javax.swing.JMenuItem menuLeaf)Simple constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisEnabled()Checks that all entries leading to the associated menu (item) are enabled.java.lang.StringtoString()
-
-
-
Constructor Detail
-
SearchResult
public SearchResult(javax.swing.JMenuBar menuBar, java.util.LinkedList<javax.swing.JMenu> menuPath, javax.swing.JMenuItem menuLeaf)Simple constructor.- Parameters:
menuBar- The main menu bar.menuPath- The menus leading to the matching entry. ContainsJMenus.menuLeaf- The menu (item) that matches the search pattern string.
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
isEnabled
public boolean isEnabled()
Checks that all entries leading to the associated menu (item) are enabled.- Returns:
trueif all entries leading to the associated menu (item) are enabled,falseotherwise.
-
-