Package org.apache.wicket.extensions.markup.html.repeater.data.table

Examples of org.apache.wicket.extensions.markup.html.repeater.data.table.ColGroup$Col


        dataProvider, 8);
    tableWithColGroup.addTopToolbar(new HeadersToolbar<>(tableWithColGroup, dataProvider));
    add(tableWithColGroup);
   
    //This is a table that uses ColGroup to style the columns:
    ColGroup colgroup = tableWithColGroup.getColGroup();
    colgroup.add(AttributeModifier.append("style", "border: solid 1px green;"));
    colgroup.addCol(colgroup.new Col(AttributeModifier.append("style", "background-color: lightblue;")));
    colgroup.addCol(colgroup.new Col(AttributeModifier.append("style", "background-color: lightgreen")));
    colgroup.addCol(colgroup.new Col(AttributeModifier.append("style", "background-color: pink")));
    colgroup.addCol(colgroup.new Col(AttributeModifier.append("style", "background-color: yellow")));
    colgroup.addCol(colgroup.new Col(AttributeModifier.append("span", "2"),
        AttributeModifier.append("style", "background-color: #CC6633")));
   
  }
View Full Code Here


    DataTable tableWithColGroup = new DataTable<>("tableWithColGroup", columns,
        new SortableContactDataProvider(), 8);
    add(tableWithColGroup);

    ColGroup colgroup = tableWithColGroup.getColGroup();
    colgroup.add(AttributeModifier.append("style", "border: solid 1px green;"));
    colgroup.addCol(colgroup.new Col(AttributeModifier.append("style", "background-color: lightblue;")));
    colgroup.addCol(colgroup.new Col(AttributeModifier.append("style", "background-color: lightgreen")));
    colgroup.addCol(colgroup.new Col(AttributeModifier.append("style", "background-color: pink")));
    colgroup.addCol(colgroup.new Col(AttributeModifier.append("style", "background-color: yellow")));
    colgroup.addCol(colgroup.new Col(AttributeModifier.append("span", "2"),
        AttributeModifier.append("style", "background-color: #CC6633")));
  }
View Full Code Here

TOP

Related Classes of org.apache.wicket.extensions.markup.html.repeater.data.table.ColGroup$Col

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.