static boolean isParentPanelMenuDisabled(AbstractPanelMenuItem menuItem) {
   AbstractPanelMenu parentPanelMenu =
       (AbstractPanelMenu) ComponentIterators.getParent(menuItem, PARENT_PANEL_MENU_PREDICATE);
   if (parentPanelMenu != null) {
     return parentPanelMenu.isDisabled();
   }
   return false;
 }
Beispiel #2
0
 private static AbstractTabPanel getParentTabPanel(AbstractTab menuItem) {
   return (AbstractTabPanel)
       ComponentIterators.getParent(
           menuItem,
           new Predicate<UIComponent>() {
             public boolean apply(UIComponent component) {
               return component instanceof AbstractTabPanel;
             }
           });
 }
 private static AbstractPanelMenu getParentPanelMenu(AbstractPanelMenuItem menuItem) {
   return (AbstractPanelMenu) ComponentIterators.getParent(menuItem, PARENT_PANEL_MENU_PREDICATE);
 }