Пример #1
0
 static boolean isParentPanelMenuDisabled(AbstractPanelMenuItem menuItem) {
   AbstractPanelMenu parentPanelMenu =
       (AbstractPanelMenu) ComponentIterators.getParent(menuItem, PARENT_PANEL_MENU_PREDICATE);
   if (parentPanelMenu != null) {
     return parentPanelMenu.isDisabled();
   }
   return false;
 }
Пример #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;
             }
           });
 }
Пример #3
0
 private static AbstractPanelMenu getParentPanelMenu(AbstractPanelMenuItem menuItem) {
   return (AbstractPanelMenu) ComponentIterators.getParent(menuItem, PARENT_PANEL_MENU_PREDICATE);
 }