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

Examples of org.apache.wicket.extensions.markup.html.repeater.data.table.DataTable$Caption


                    new CheckBoxPropertyColumn(new Model(" "), "checked"),
                    new PropertyColumn(new ResourceModel("user.ruleName"),
                            "rule.locatorName"),
                    new PropertyColumn(new ResourceModel("user.ruleValue"),
                            "rule.profilingRule")};
            DataTable userRulesDataTable = new DataTable("entries", columns,
                    dataProvider, 10)
            {

                protected Item newRowItem(String id, int index, IModel model)
                {
                    return new PortletOddEvenItem(id, index, model);
                }
            };
            userRulesDataTable.addTopToolbar(new HeadersToolbar(
                    userRulesDataTable, dataProvider));
            userRulesDataTable.addBottomToolbar(new NavigationToolbar(
                    userRulesDataTable));
            userRulesForm.add(userRulesDataTable);
            userRulesForm.add(new Button("submit", new ResourceModel(
                    "common.delete")));
            add(userRulesForm);
View Full Code Here


                    new PropertyColumn(new Model("Value"), "value"),
                    new PropertyColumn(new Model("Resolver Type"), "type"),
                    new PropertyColumn(new Model("Fallback Type"), "fallbackType"),
                    new PropertyColumn(new Model("Order"), "fallbackOrder") };
           
            DataTable ruleCriteriaTable = new DataTable("ruleCriteriaTable", columns, dataProvider, 10);

            ruleCriteriaTable.addTopToolbar(new HeadersToolbar(ruleCriteriaTable, dataProvider));
            ruleCriteriaTable.addBottomToolbar(new NavigationToolbar(ruleCriteriaTable));
            ruleEditForm.add(ruleCriteriaTable);

            Button newCriterionButton = new Button("newCriterionButton",new ResourceModel("criteria.new")) {

                @Override
View Full Code Here

    });

    columns.add(new PropertyColumn<Contact, String>(new Model<String>("Home Phone"), "homePhone"));
    columns.add(new PropertyColumn<Contact, String>(new Model<String>("Cell Phone"), "cellPhone"));

    DataTable dataTable = new DefaultDataTable<Contact, String>("table", columns,
        new SortableContactDataProvider(), 8);
    dataTable.addBottomToolbar(new ExportToolbar(dataTable).addDataExporter(new CSVDataExporter()));

    add(dataTable);

    DataTable tableWithColGroup = new DataTable("tableWithColGroup", columns,
        new SortableContactDataProvider(), 8);
    add(tableWithColGroup);
  }
View Full Code Here

                    new CheckBoxPropertyColumn(new Model(" "), "checked"),
                    new PropertyColumn(new ResourceModel("user.ruleName"),
                            "rule.locatorName"),
                    new PropertyColumn(new ResourceModel("user.ruleValue"),
                            "rule.profilingRule")};
            DataTable userRulesDataTable = new DataTable("entries", columns,
                    dataProvider, 10)
            {

                protected Item newRowItem(String id, int index, IModel model)
                {
                    return new PortletOddEvenItem(id, index, model);
                }
            };
            userRulesDataTable.addTopToolbar(new HeadersToolbar(
                    userRulesDataTable, dataProvider));
            userRulesDataTable.addBottomToolbar(new NavigationToolbar(
                    userRulesDataTable));
            userRulesForm.add(userRulesDataTable);
            userRulesForm.add(new Button("submit", new ResourceModel(
                    "common.delete")));
            add(userRulesForm);
View Full Code Here

    });

    columns.add(new PropertyColumn<Contact, String>(new Model<String>("Home Phone"), "homePhone"));
    columns.add(new PropertyColumn<Contact, String>(new Model<String>("Cell Phone"), "cellPhone"));

    DataTable dataTable = new DefaultDataTable<Contact, String>("table", columns,
        new SortableContactDataProvider(), 8);
    dataTable.addBottomToolbar(new ExportToolbar(dataTable).addDataExporter(new CSVDataExporter()));

    add(dataTable);
  }
View Full Code Here

    });

    columns.add(new PropertyColumn<Contact, String>(new Model<>("Home Phone"), "homePhone"));
    columns.add(new PropertyColumn<Contact, String>(new Model<>("Cell Phone"), "cellPhone"));

    DataTable dataTable = new DefaultDataTable<>("table", columns,
        new SortableContactDataProvider(), 8);
    dataTable.addBottomToolbar(new ExportToolbar(dataTable).addDataExporter(new CSVDataExporter()));

    add(dataTable);

    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")));
View Full Code Here

                    new CheckBoxPropertyColumn(new Model(" "), "checked"),
                    new PropertyColumn(new ResourceModel("user.ruleName"),
                            "rule.locatorName"),
                    new PropertyColumn(new ResourceModel("user.ruleValue"),
                            "rule.profilingRule")};
            DataTable userRulesDataTable = new DataTable("entries", columns,
                    dataProvider, 10)
            {

                protected Item newRowItem(String id, int index, IModel model)
                {
                    return new PortletOddEvenItem(id, index, model);
                }
            };
            userRulesDataTable.addTopToolbar(new HeadersToolbar(
                    userRulesDataTable, dataProvider));
            userRulesDataTable.addBottomToolbar(new NavigationToolbar(
                    userRulesDataTable));
            userRulesForm.add(userRulesDataTable);
            userRulesForm.add(new Button("submit", new ResourceModel(
                    "common.delete")));
            add(userRulesForm);
View Full Code Here

TOP

Related Classes of org.apache.wicket.extensions.markup.html.repeater.data.table.DataTable$Caption

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.