本文整理汇总了Java中org.apache.wicket.extensions.markup.html.repeater.data.table.filter.FilterForm.add方法的典型用法代码示例。如果您正苦于以下问题:Java FilterForm.add方法的具体用法?Java FilterForm.add怎么用?Java FilterForm.add使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.apache.wicket.extensions.markup.html.repeater.data.table.filter.FilterForm
的用法示例。
在下文中一共展示了FilterForm.add方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: doInitialize
import org.apache.wicket.extensions.markup.html.repeater.data.table.filter.FilterForm; //导入方法依赖的package包/类
@Override
protected void doInitialize(Border layout) {
add(layout);
RoleProvider provider = new RoleProvider();
provider.selectField("roleId", String.class);
FilterForm<Map<String, String>> filterForm = new FilterForm<>("filter-form", provider);
layout.add(filterForm);
List<IColumn<Map<String, Object>, String>> columns = new ArrayList<>();
columns.add(new TextFilterColumn(provider, ItemClass.String, Model.of("name"), "name", this::modelValue));
columns.add(new TextFilterColumn(provider, ItemClass.String, Model.of("description"), "description", this::modelValue));
columns.add(new TextFilterColumn(provider, ItemClass.Boolean, Model.of("system"), "system", this::modelValue));
columns.add(new ActionFilterColumn(Model.of("action"), this::actions, this::clickable, this::itemCss, this::itemClick));
DataTable<Map<String, Object>, String> dataTable = new DefaultDataTable<>("table", columns, provider, 20);
dataTable.addTopToolbar(new FilterToolbar(dataTable, filterForm));
filterForm.add(dataTable);
BookmarkablePageLink<Void> refreshLink = new BookmarkablePageLink<>("refreshLink", RoleBrowsePage.class);
layout.add(refreshLink);
BookmarkablePageLink<Void> createLink = new BookmarkablePageLink<>("createLink", RoleCreatePage.class);
layout.add(createLink);
}
示例2: doInitialize
import org.apache.wicket.extensions.markup.html.repeater.data.table.filter.FilterForm; //导入方法依赖的package包/类
@Override
protected void doInitialize(Border layout) {
add(layout);
SectionProvider provider = new SectionProvider();
provider.selectField("sectionId", String.class);
FilterForm<Map<String, String>> filterForm = new FilterForm<>("filter-form", provider);
layout.add(filterForm);
List<IColumn<Map<String, Object>, String>> columns = new ArrayList<>();
columns.add(new TextFilterColumn(provider, ItemClass.String, Model.of("title"), "title", this::modelValue));
columns.add(new TextFilterColumn(provider, ItemClass.Boolean, Model.of("system"), "system", this::modelValue));
columns.add(new ActionFilterColumn(Model.of("action"), this::actions, this::clickable, this::itemCss, this::itemClick));
DataTable<Map<String, Object>, String> dataTable = new DefaultDataTable<>("table", columns, provider, 20);
dataTable.addTopToolbar(new FilterToolbar(dataTable, filterForm));
filterForm.add(dataTable);
BookmarkablePageLink<Void> refreshLink = new BookmarkablePageLink<>("refreshLink", SectionBrowsePage.class);
layout.add(refreshLink);
BookmarkablePageLink<Void> createLink = new BookmarkablePageLink<>("createLink", SectionCreatePage.class);
layout.add(createLink);
}
示例3: doInitialize
import org.apache.wicket.extensions.markup.html.repeater.data.table.filter.FilterForm; //导入方法依赖的package包/类
@Override
protected void doInitialize(Border layout) {
add(layout);
FileProvider provider = new FileProvider();
FilterForm<Map<String, String>> filterForm = new FilterForm<>("filter-form", provider);
layout.add(filterForm);
List<IColumn<Map<String, Object>, String>> columns = new ArrayList<>();
columns.add(new TextFilterColumn(provider, ItemClass.String, Model.of("fileId"), "fileId", this::modelValue));
columns.add(new TextFilterColumn(provider, ItemClass.String, Model.of("name"), "name", this::modelValue));
columns.add(new TextFilterColumn(provider, ItemClass.Integer, Model.of("length"), "length", this::modelValue));
columns.add(new TextFilterColumn(provider, ItemClass.String, Model.of("mime"), "mime", this::modelValue));
columns.add(new ActionFilterColumn(Model.of("action"), this::actions, this::clickable, this::itemCss, this::itemClick));
this.dataTable = new DefaultDataTable<>("table", columns, provider, 17);
this.dataTable.addTopToolbar(new FilterToolbar(this.dataTable, filterForm));
filterForm.add(this.dataTable);
BookmarkablePageLink<Void> refreshLink = new BookmarkablePageLink<>("refreshLink", FileBrowsePage.class);
layout.add(refreshLink);
}
示例4: doInitialize
import org.apache.wicket.extensions.markup.html.repeater.data.table.filter.FilterForm; //导入方法依赖的package包/类
@Override
protected void doInitialize(Border layout) {
add(layout);
RestProvider provider = new RestProvider();
provider.selectField("restId", String.class);
provider.selectField("system", Boolean.class);
provider.selectField("dateModified", Date.class);
provider.setSort("dateModified", SortOrder.DESCENDING);
FilterForm<Map<String, String>> filterForm = new FilterForm<>("filter-form", provider);
layout.add(filterForm);
List<IColumn<Map<String, Object>, String>> columns = new ArrayList<>();
columns.add(new TextFilterColumn(provider, ItemClass.String, Model.of("name"), "name", this::modelValue));
columns.add(new TextFilterColumn(provider, ItemClass.String, Model.of("method"), "method", this::modelValue));
columns.add(new TextFilterColumn(provider, ItemClass.String, Model.of("path"), "path", this::modelValue));
columns.add(new ActionFilterColumn(Model.of("action"), this::actions, this::clickable, this::itemCss, this::itemClick));
this.dataTable = new DefaultDataTable<>("table", columns, provider, 20);
this.dataTable.addTopToolbar(new FilterToolbar(this.dataTable, filterForm));
filterForm.add(this.dataTable);
BookmarkablePageLink<Void> createLink = new BookmarkablePageLink<>("createLink", RestCreatePage.class);
layout.add(createLink);
BookmarkablePageLink<Void> refreshLink = new BookmarkablePageLink<>("refreshLink", RestBrowsePage.class);
layout.add(refreshLink);
}
示例5: doInitialize
import org.apache.wicket.extensions.markup.html.repeater.data.table.filter.FilterForm; //导入方法依赖的package包/类
@Override
protected void doInitialize(Border layout) {
add(layout);
CollectionProvider provider = new CollectionProvider();
provider.setSort("name", SortOrder.ASCENDING);
provider.selectField("collectionId", String.class);
FilterForm<Map<String, String>> filterForm = new FilterForm<>("filter-form", provider);
layout.add(filterForm);
List<IColumn<Map<String, Object>, String>> columns = new ArrayList<>();
columns.add(new TextFilterColumn(provider, ItemClass.String, Model.of("name"), "name", this::modelValue));
columns.add(new TextFilterColumn(provider, ItemClass.Boolean, Model.of("system"), "system", this::modelValue));
columns.add(new TextFilterColumn(provider, ItemClass.Boolean, Model.of("locked"), "locked", this::modelValue));
columns.add(new TextFilterColumn(provider, ItemClass.Boolean, Model.of("mutable"), "mutable", this::modelValue));
columns.add(new ActionFilterColumn(Model.of("action"), this::actions, this::clickable, this::itemCss, this::itemClick));
this.dataTable = new DefaultDataTable<>("table", columns, provider, 20);
this.dataTable.addTopToolbar(new FilterToolbar(this.dataTable, filterForm));
filterForm.add(this.dataTable);
BookmarkablePageLink<Void> refreshLink = new BookmarkablePageLink<>("refreshLink", CollectionBrowsePage.class);
layout.add(refreshLink);
BookmarkablePageLink<Void> createLink = new BookmarkablePageLink<>("createLink", CollectionCreatePage.class);
layout.add(createLink);
}
示例6: doInitialize
import org.apache.wicket.extensions.markup.html.repeater.data.table.filter.FilterForm; //导入方法依赖的package包/类
@Override
protected void doInitialize(Border layout) {
add(layout);
MenuProvider provider = new MenuProvider();
provider.selectField("menuId", String.class);
FilterForm<Map<String, String>> filterForm = new FilterForm<>("filter-form", provider);
layout.add(filterForm);
List<IColumn<Map<String, Object>, String>> columns = new ArrayList<>();
columns.add(new TextFilterColumn(provider, ItemClass.String, Model.of("title"), "title", this::modelValue));
columns.add(new TextFilterColumn(provider, ItemClass.String, Model.of("icon"), "icon", this::modelValue));
columns.add(new TextFilterColumn(provider, ItemClass.String, Model.of("parent"), "parent", this::modelValue));
columns.add(new TextFilterColumn(provider, ItemClass.String, Model.of("section"), "section", this::modelValue));
columns.add(new TextFilterColumn(provider, ItemClass.Boolean, Model.of("system"), "system", this::modelValue));
columns.add(new ActionFilterColumn(Model.of("action"), this::actions, this::clickable, this::itemCss, this::itemClick));
DataTable<Map<String, Object>, String> dataTable = new DefaultDataTable<>("table", columns, provider, 20);
dataTable.addTopToolbar(new FilterToolbar(dataTable, filterForm));
filterForm.add(dataTable);
BookmarkablePageLink<Void> refreshLink = new BookmarkablePageLink<>("refreshLink", MenuBrowsePage.class);
layout.add(refreshLink);
BookmarkablePageLink<Void> createLink = new BookmarkablePageLink<>("createLink", MenuCreatePage.class);
layout.add(createLink);
}
示例7: doInitialize
import org.apache.wicket.extensions.markup.html.repeater.data.table.filter.FilterForm; //导入方法依赖的package包/类
@Override
protected void doInitialize(Border layout) {
add(layout);
MenuItemProvider provider = new MenuItemProvider();
provider.selectField("menuItemId", String.class);
FilterForm<Map<String, String>> filterForm = new FilterForm<>("filter-form", provider);
layout.add(filterForm);
List<IColumn<Map<String, Object>, String>> columns = new ArrayList<>();
columns.add(new TextFilterColumn(provider, ItemClass.String, Model.of("title"), "title", this::modelValue));
columns.add(new TextFilterColumn(provider, ItemClass.String, Model.of("icon"), "icon", this::modelValue));
columns.add(new TextFilterColumn(provider, ItemClass.String, Model.of("page"), "page", this::modelValue));
columns.add(new TextFilterColumn(provider, ItemClass.String, Model.of("menu"), "menu", this::modelValue));
columns.add(new TextFilterColumn(provider, ItemClass.String, Model.of("section"), "section", this::modelValue));
columns.add(new TextFilterColumn(provider, ItemClass.Boolean, Model.of("system"), "system", this::modelValue));
columns.add(new ActionFilterColumn(Model.of("action"), this::actions, this::clickable, this::itemCss, this::itemClick));
dataTable = new DefaultDataTable<>("table", columns, provider, 20);
dataTable.addTopToolbar(new FilterToolbar(dataTable, filterForm));
filterForm.add(dataTable);
BookmarkablePageLink<Void> refreshLink = new BookmarkablePageLink<>("refreshLink", MenuItemBrowsePage.class);
layout.add(refreshLink);
BookmarkablePageLink<Void> createLink = new BookmarkablePageLink<>("createLink", MenuItemCreatePage.class);
layout.add(createLink);
}
示例8: doInitialize
import org.apache.wicket.extensions.markup.html.repeater.data.table.filter.FilterForm; //导入方法依赖的package包/类
@Override
protected void doInitialize(Border layout) {
add(layout);
PageProvider provider = new PageProvider();
provider.setSort("title", SortOrder.ASCENDING);
provider.selectField("pageId", String.class);
provider.selectField("cmsPage", Boolean.class);
provider.selectField("dateModified", Date.class);
provider.setSort("dateModified", SortOrder.DESCENDING);
FilterForm<Map<String, String>> filterForm = new FilterForm<>("filter-form", provider);
layout.add(filterForm);
List<IColumn<Map<String, Object>, String>> columns = new ArrayList<>();
columns.add(new TextFilterColumn(provider, ItemClass.String, Model.of("title"), "title", this::modelValue));
columns.add(new TextFilterColumn(provider, ItemClass.String, Model.of("description"), "description", this::modelValue));
columns.add(new TextFilterColumn(provider, ItemClass.String, Model.of("layout"), "layout", this::modelValue));
columns.add(new TextFilterColumn(provider, ItemClass.Boolean, Model.of("system"), "system", this::modelValue));
columns.add(new TextFilterColumn(provider, ItemClass.Boolean, Model.of("cms"), "cmsPage", this::modelValue));
columns.add(new ActionFilterColumn(Model.of("action"), this::actions, this::clickable, this::itemCss, this::itemClick));
dataTable = new DefaultDataTable<>("table", columns, provider, 20);
dataTable.addTopToolbar(new FilterToolbar(dataTable, filterForm));
filterForm.add(dataTable);
BookmarkablePageLink<Void> refreshLink = new BookmarkablePageLink<>("refreshLink", PageBrowsePage.class);
layout.add(refreshLink);
BookmarkablePageLink<Void> createLink = new BookmarkablePageLink<>("createLink", PageCreatePage.class);
layout.add(createLink);
}
示例9: doInitialize
import org.apache.wicket.extensions.markup.html.repeater.data.table.filter.FilterForm; //导入方法依赖的package包/类
@Override
protected void doInitialize(Border layout) {
add(layout);
DSLContext context = Spring.getBean(DSLContext.class);
CollectionTable collectionTable = Tables.COLLECTION.as("collectionTable");
AttributeTable attributeTable = Tables.ATTRIBUTE.as("attributeTable");
String collectionId = getPageParameters().get("collectionId").toString();
this.collection = context.select(collectionTable.fields()).from(collectionTable).where(collectionTable.COLLECTION_ID.eq(collectionId)).fetchOneInto(CollectionPojo.class);
List<AttributePojo> attributes = context.select(attributeTable.fields()).from(attributeTable).where(attributeTable.COLLECTION_ID.eq(collectionId)).fetchInto(AttributePojo.class);
this.provider = new DocumentProvider(collectionId);
FilterForm<Map<String, String>> filterForm = new FilterForm<>("filter-form", this.provider);
layout.add(filterForm);
List<IColumn<Map<String, Object>, String>> columns = new ArrayList<>();
for (AttributePojo attribute : attributes) {
TypeEnum type = TypeEnum.valueOf(attribute.getType());
ProviderUtils.addColumn(this.provider, columns, attribute, type);
}
columns.add(new ActionFilterColumn(Model.of("action"), this::actions, this::clickable, this::itemCss, this::itemClick));
DataTable<Map<String, Object>, String> dataTable = new DefaultDataTable<>("table", columns, provider, 20);
dataTable.addTopToolbar(new FilterToolbar(dataTable, filterForm));
filterForm.add(dataTable);
BookmarkablePageLink<Void> refreshLink = new BookmarkablePageLink<>("refreshLink", DocumentBrowsePage.class, getPageParameters());
layout.add(refreshLink);
BookmarkablePageLink<Void> createLink = new BookmarkablePageLink<>("createLink", DocumentCreatePage.class, getPageParameters());
layout.add(createLink);
BookmarkablePageLink<Void> collectionBrowseLink = new BookmarkablePageLink<>("collectionBrowseLink", CollectionBrowsePage.class);
layout.add(collectionBrowseLink);
}
示例10: doInitialize
import org.apache.wicket.extensions.markup.html.repeater.data.table.filter.FilterForm; //导入方法依赖的package包/类
@Override
protected void doInitialize(Border layout) {
add(layout);
LayoutProvider provider = new LayoutProvider();
provider.selectField("layoutId", String.class);
provider.selectField("cmsLayout", Boolean.class);
provider.selectField("dateModified", Date.class);
provider.setSort("dateModified", SortOrder.DESCENDING);
FilterForm<Map<String, String>> filterForm = new FilterForm<>("filter-form", provider);
layout.add(filterForm);
List<IColumn<Map<String, Object>, String>> columns = new ArrayList<>();
columns.add(new TextFilterColumn(provider, ItemClass.String, Model.of("title"), "title", this::modelValue));
columns.add(new TextFilterColumn(provider, ItemClass.String, Model.of("description"), "description", this::modelValue));
columns.add(new TextFilterColumn(provider, ItemClass.Boolean, Model.of("system"), "system", this::modelValue));
columns.add(new TextFilterColumn(provider, ItemClass.Boolean, Model.of("cms"), "cmsLayout", this::modelValue));
columns.add(new ActionFilterColumn(Model.of("action"), this::actions, this::clickable, this::itemCss, this::itemClick));
this.dataTable = new DefaultDataTable<>("table", columns, provider, 20);
this.dataTable.addTopToolbar(new FilterToolbar(this.dataTable, filterForm));
filterForm.add(this.dataTable);
BookmarkablePageLink<Void> refreshLink = new BookmarkablePageLink<>("refreshLink", LayoutBrowsePage.class);
layout.add(refreshLink);
BookmarkablePageLink<Void> createLink = new BookmarkablePageLink<>("createLink", LayoutCreatePage.class);
layout.add(createLink);
}
示例11: doInitialize
import org.apache.wicket.extensions.markup.html.repeater.data.table.filter.FilterForm; //导入方法依赖的package包/类
@Override
protected void doInitialize(Border layout) {
add(layout);
DSLContext context = Spring.getBean(DSLContext.class);
CollectionTable collectionTable = Tables.COLLECTION.as("collectionTable");
PageParameters pageParameters = getPageParameters();
this.collectionId = pageParameters.get("collectionId").toString();
this.collection = context.select(collectionTable.fields()).from(collectionTable).where(collectionTable.COLLECTION_ID.eq(this.collectionId)).fetchOneInto(CollectionPojo.class);
AttributeProvider provider = new AttributeProvider(this.collectionId);
provider.selectField("attributeId", String.class);
FilterForm<Map<String, String>> filterForm = new FilterForm<>("filter-form", provider);
layout.add(filterForm);
List<IColumn<Map<String, Object>, String>> columns = new ArrayList<>();
columns.add(new TextFilterColumn(provider, ItemClass.String, Model.of("name"), "name", this::modelValue));
columns.add(new TextFilterColumn(provider, ItemClass.String, Model.of("type"), "type", this::modelValue));
columns.add(new TextFilterColumn(provider, ItemClass.Boolean, Model.of("eav"), "eav", this::modelValue));
columns.add(new TextFilterColumn(provider, ItemClass.Boolean, Model.of("system"), "system", this::modelValue));
columns.add(new TextFilterColumn(provider, ItemClass.Boolean, Model.of("nullable"), "nullable", this::modelValue));
columns.add(new TextFilterColumn(provider, ItemClass.Integer, Model.of("length"), "length", this::modelValue));
columns.add(new TextFilterColumn(provider, ItemClass.Integer, Model.of("precision"), "precision", this::modelValue));
columns.add(new TextFilterColumn(provider, ItemClass.Integer, Model.of("order"), "order", this::modelValue));
columns.add(new ActionFilterColumn(Model.of("action"), this::actions, this::clickable, this::itemCss, this::itemClick));
this.dataTable = new DefaultDataTable<>("table", columns, provider, 20);
this.dataTable.addTopToolbar(new FilterToolbar(this.dataTable, filterForm));
filterForm.add(this.dataTable);
PageParameters parameters = new PageParameters();
parameters.add("collectionId", this.collectionId);
BookmarkablePageLink<Void> createLink = new BookmarkablePageLink<>("createLink", AttributeCreatePage.class, parameters);
layout.add(createLink);
BookmarkablePageLink<Void> refreshLink = new BookmarkablePageLink<>("refreshLink", AttributeBrowsePage.class, parameters);
layout.add(refreshLink);
}