Package org.richfaces.component

Examples of org.richfaces.component.UIColumnGroup


    encodeRowStart(context, colgroup, writer, 0);
  }

  public void encodeChildren(FacesContext context, UIComponent component)
      throws IOException {
    UIColumnGroup colgroup = (UIColumnGroup) component;
    ResponseWriter writer = context.getResponseWriter();
    String[] classes = null;
    String columnClasses = (String) component.getAttributes().get(
        "columnClasses");
    if (null != columnClasses) {
      classes = columnClasses.split(",");
    }
    Iterator<UIComponent> iter = colgroup.columns();
    boolean first = true;
    int currentColumn = 0;
    int currentRow = 0;
    UIComponent column = null;
    Map<String, Object> requestMap = context.getExternalContext().getRequestMap();
View Full Code Here


     *
     * @throws Exception
     */
    public void testRenderDataTableFacets() throws Exception {
       
        UIColumnGroup header1 = (UIColumnGroup) application.createComponent("org.richfaces.ColumnGroup");
        header1.getAttributes().put("columnClasses", "cola, colb");
        dataTable.getFacets().put("header", header1);

        UIColumn headerColumn1 = (UIColumn) application.createComponent("org.richfaces.Column");
        UIOutput headerText1 = (UIOutput) createComponent(HtmlOutputText.COMPONENT_TYPE, HtmlOutputText.class.getName(),null, null, null);
        headerText1.setValue("Header Column1");
        headerColumn1.getChildren().add(headerText1);
        header1.getChildren().add(headerColumn1);

        UIOutput column1header = (UIOutput) createComponent(HtmlOutputText.COMPONENT_TYPE, HtmlOutputText.class.getName(),null, null, null);
        column1header.setValue("Column1 Header");
        headerColumn1.getFacets().put("header", column1header);

        UIColumn headerColumn2 = (UIColumn) application.createComponent("org.richfaces.Column");
        UIOutput headerText2 = (UIOutput) createComponent(HtmlOutputText.COMPONENT_TYPE, HtmlOutputText.class.getName(),null, null, null);
        headerText2.setValue("Header Column2");
        headerColumn2.getChildren().add(headerText2);
        header1.getChildren().add(headerColumn2);

        UIOutput column2header = (UIOutput) createComponent(HtmlOutputText.COMPONENT_TYPE, HtmlOutputText.class.getName(),null, null, null);
        column2header.setValue("Column2 Header");
        headerColumn2.getFacets().put("header", column2header);

View Full Code Here

    encodeRowStart(context, colgroup, writer, 0);
  }

  public void encodeChildren(FacesContext context, UIComponent component)
      throws IOException {
    UIColumnGroup colgroup = (UIColumnGroup) component;
    ResponseWriter writer = context.getResponseWriter();
    String[] classes = null;
    String columnClasses = (String) component.getAttributes().get(
        "columnClasses");
    if (null != columnClasses) {
      classes = columnClasses.split(",");
    }
    Iterator<UIComponent> iter = colgroup.columns();
    boolean first = true;
    int currentColumn = 0;
    int currentRow = 0;
    UIComponent column = null;
    Map<String, Object> requestMap = context.getExternalContext().getRequestMap();
View Full Code Here

    encodeRowStart(context, colgroup, writer, 0);
  }

  public void encodeChildren(FacesContext context, UIComponent component)
      throws IOException {
    UIColumnGroup colgroup = (UIColumnGroup) component;
    ResponseWriter writer = context.getResponseWriter();
    String[] classes = null;
    String columnClasses = (String) component.getAttributes().get(
        "columnClasses");
    if (null != columnClasses) {
      classes = columnClasses.split(",");
    }
    Iterator iter = colgroup.columns();
    boolean first = true;
    int currentColumn = 0;
    int currentRow = 0;
    UIComponent column = null;
    Map requestMap = context.getExternalContext().getRequestMap();
View Full Code Here

TOP

Related Classes of org.richfaces.component.UIColumnGroup

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.