Package org.richfaces.component

Examples of org.richfaces.component.UIMenuGroup


  private void flatten(List kids, List flatList){
    if(kids != null){
      for (Iterator iter = kids.iterator(); iter.hasNext();) {
        UIComponent kid = (UIComponent) iter.next();
        if (kid instanceof UIMenuGroup) {
          UIMenuGroup node = (UIMenuGroup) kid;
          flatList.add(node);
          flatten(node.getChildren(), flatList);
        }
      }
    }
  }
View Full Code Here


        itemId = kid.getClientId(context);
        if (MenuItem.isDisabled()){
          flcloseonclick=0;
        }
      } else if (kid instanceof UIMenuGroup) {
                UIMenuGroup menuGroup=(UIMenuGroup)kid;
        itemId = "ref" + kid.getClientId(context);
        flcloseonclick=0;
                if (menuGroup.isDisabled()) flagGroup = 2; else flagGroup = 1;
      }
      if(itemId != null){
          function = new JSFunction("addItem");
          function.addParameter(itemId);
          function.addParameter(new Integer(flcloseonclick));
View Full Code Here

        sep = (UIMenuSeparator) context.getApplication().createComponent(
                UIMenuSeparator.COMPONENT_TYPE);
        menu.getChildren().add(sep);

        // add menu items for changing column visibility
        UIMenuGroup group = (HtmlMenuGroup) context.getApplication()
                .createComponent(UIMenuGroup.COMPONENT_TYPE);
        group.setValue(ComponentMessageUtil.getMessage(context, MSG_COLUMNS,
                new Object[] {}).getSummary());
        group.setIcon(iconColumnsURI);
        menu.getChildren().add(group);

        Iterator<UIColumn> columns = table.getSortedColumns();
        visibleColumnsCount = table.getVisibleColumnsCount();
View Full Code Here

            disabled = menuItem.isDisabled();
            if (disabled) {
                closeOnClick = false;
            }
        } else if (kid instanceof UIMenuGroup) {
            UIMenuGroup menuGroup = (UIMenuGroup) kid;
            itemId = kid.getClientId(context);
            closeOnClick = false;
            if ((disabled = menuGroup.isDisabled())) {
                flagGroup = Integer.valueOf(2);
            } else {
                flagGroup = Integer.valueOf(1);
            }
        }
View Full Code Here

       
        flatten(component.getChildren(), flatListOfNodes);
        processLayer(context, component, width);
       
        for (Iterator<UIMenuGroup> iter = flatListOfNodes.iterator(); iter.hasNext();) {
            UIMenuGroup node = iter.next();
            processLayer(context, node, width);
        }
    }
View Full Code Here

    private void flatten(List<UIComponent> kids, List<UIMenuGroup> flatList) {
        if (kids != null) {
            for (Iterator<UIComponent> iter = kids.iterator(); iter.hasNext();) {
                UIComponent kid = (UIComponent) iter.next();
                if (kid instanceof UIMenuGroup) {
                    UIMenuGroup node = (UIMenuGroup) kid;
                   
                    if (node.isRendered()) {
                        flatList.add(node);
                        flatten(node.getChildren(), flatList);
                    }
                }
            }
        }
    }
View Full Code Here

      disabled = menuItem.isDisabled();
      if (disabled) {
        flcloseonclick = 0;
      }
    } else if (kid instanceof UIMenuGroup) {
      UIMenuGroup menuGroup = (UIMenuGroup) kid;
      itemId = "ref" + kid.getClientId(context);
      flcloseonclick = 0;
      if ((disabled = menuGroup.isDisabled())) {
        flagGroup = 2;
      } else {
        flagGroup = 1;
      }
    }
View Full Code Here

    flatten(component.getChildren(), flatListOfNodes);
    processLayer(context, component, width);

    for (Iterator iter = flatListOfNodes.iterator(); iter.hasNext();) {
      UIMenuGroup node = (UIMenuGroup) iter.next();
      if (node.isRendered() && !node.isDisabled())
        processLayer(context, node, width);
    }
  }
View Full Code Here

  private void flatten(List kids, List flatList){
    if(kids != null){
      for (Iterator iter = kids.iterator(); iter.hasNext();) {
        UIComponent kid = (UIComponent) iter.next();
        if (kid instanceof UIMenuGroup) {
          UIMenuGroup node = (UIMenuGroup) kid;
          flatList.add(node);
          flatten(node.getChildren(), flatList);
        }
      }
    }
  }
View Full Code Here

TOP

Related Classes of org.richfaces.component.UIMenuGroup

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.