Package org.richfaces.component

Examples of org.richfaces.component.UIMenuGroup


        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 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

                UIMenuSeparator.COMPONENT_TYPE);
        sep.setId(getId("sep_2"));
        menu.getChildren().add(sep);

        // add menu items for changing column visibility
        UIMenuGroup group = (HtmlMenuGroup) context.getApplication()
                .createComponent(UIMenuGroup.COMPONENT_TYPE);
        group.setId(getId("visibility"));
        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) {
        flcloseonclick = 0;
      }
    } else if (kid instanceof UIMenuGroup) {
      UIMenuGroup menuGroup = (UIMenuGroup) kid;
      itemId = 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

        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

    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

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.