Examples of ColGroup


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

        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

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

    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

Examples of org.wicketstuff.table.column.ColGroup

  {
    super(id);
    setOutputMarkupId(true);
    setDefaultModel(new TableModelAdapter(swingTableModel));
    columnsModelAdapter = new ColumnModel((IModel<TableModel>)getDefaultModel());
    add(new ColGroup("colGroup", this));
    add(new TableHeader("headers", this));
    add(tableBody = new TableBody("rows", this)
    {
      @Override
      public void onSelection(SelectableListItem selectableListItem, AjaxRequestTarget target)
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.