当前位置: 首页>>代码示例>>Java>>正文


Java FilterForm类代码示例

本文整理汇总了Java中org.apache.wicket.extensions.markup.html.repeater.data.table.filter.FilterForm的典型用法代码示例。如果您正苦于以下问题:Java FilterForm类的具体用法?Java FilterForm怎么用?Java FilterForm使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


FilterForm类属于org.apache.wicket.extensions.markup.html.repeater.data.table.filter包,在下文中一共展示了FilterForm类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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);
}
 
开发者ID:PkayJava,项目名称:MBaaS,代码行数:27,代码来源:RoleBrowsePage.java

示例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);
}
 
开发者ID:PkayJava,项目名称:MBaaS,代码行数:26,代码来源:SectionBrowsePage.java

示例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);
}
 
开发者ID:PkayJava,项目名称:MBaaS,代码行数:24,代码来源:FileBrowsePage.java

示例4: customerDataTable

import org.apache.wicket.extensions.markup.html.repeater.data.table.filter.FilterForm; //导入依赖的package包/类
private void customerDataTable(CustomerDataProvider customerDataProvider) {

		filterForm = new FilterForm<CustomerFilter>("filterForm", customerDataProvider);
		queue(filterForm);

		List<IColumn<Customer, CustomerSort>> columns = new ArrayList<>();
		columns.add(idColumn());
		columns.add(usernameColumn());
		columns.add(firstnameColumn());
		columns.add(lastnameColumn());
		columns.add(activeColumn());
		columns.add(actionColumn());

		DataTable<Customer, CustomerSort> dataTable = new AjaxFallbackDefaultDataTable<Customer, CustomerSort>("table", columns,
				customerDataProvider, 10);
		FilterToolbar filterToolbar = new FilterToolbar(dataTable, filterForm);

		dataTable.addTopToolbar(filterToolbar);
		queue(dataTable);
	}
 
开发者ID:MarcGiffing,项目名称:wicket-spring-boot,代码行数:21,代码来源:CustomerListPage.java

示例5: 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);
}
 
开发者ID:PkayJava,项目名称:MBaaS,代码行数:30,代码来源:RestBrowsePage.java

示例6: 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);
}
 
开发者ID:PkayJava,项目名称:MBaaS,代码行数:28,代码来源:CollectionBrowsePage.java

示例7: 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);
}
 
开发者ID:PkayJava,项目名称:MBaaS,代码行数:29,代码来源:MenuBrowsePage.java

示例8: 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);
}
 
开发者ID:PkayJava,项目名称:MBaaS,代码行数:30,代码来源:MenuItemBrowsePage.java

示例9: 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);
}
 
开发者ID:PkayJava,项目名称:MBaaS,代码行数:33,代码来源:PageBrowsePage.java

示例10: 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);
}
 
开发者ID:PkayJava,项目名称:MBaaS,代码行数:39,代码来源:DocumentBrowsePage.java

示例11: 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);
}
 
开发者ID:PkayJava,项目名称:MBaaS,代码行数:31,代码来源:LayoutBrowsePage.java

示例12: AbstractTextFieldFilter

import org.apache.wicket.extensions.markup.html.repeater.data.table.filter.FilterForm; //导入依赖的package包/类
public AbstractTextFieldFilter(final String id, final IModel<T> model, final FilterForm<?> form)
{
	super(id, form);
	filter =  createTextFieldComponent("filter", model);
	enableFocusTracking(filter);
	add(filter);
}
 
开发者ID:MarcGiffing,项目名称:wicket-spring-boot,代码行数:8,代码来源:AbstractTextFieldFilter.java

示例13: AbstractCheckBoxFilter

import org.apache.wicket.extensions.markup.html.repeater.data.table.filter.FilterForm; //导入依赖的package包/类
public AbstractCheckBoxFilter(final String id, final IModel<Boolean> model, final FilterForm<?> form)
{
	super(id, form);
	filter =  createTextFieldComponent("filter", model);
	enableFocusTracking(filter);
	add(filter);
}
 
开发者ID:MarcGiffing,项目名称:wicket-spring-boot,代码行数:8,代码来源:AbstractCheckBoxFilter.java

示例14: getFilterModel

import org.apache.wicket.extensions.markup.html.repeater.data.table.filter.FilterForm; //导入依赖的package包/类
@SuppressWarnings("unchecked")
protected IModel<F> getFilterModel(final FilterForm<?> form) {
    if (form.getDefaultModel().getObject() instanceof Map) {
        return new MapPropertyModel<F>((Map<String, F>) form.getDefaultModel().getObject(), getPropertyExpression());
    } else {
        return new PropertyModel<F>(form.getDefaultModel(), getPropertyExpression());
    }
}
 
开发者ID:PkayJava,项目名称:pluggable,代码行数:9,代码来源:TextFilteredPropertyColumn.java

示例15: getFilter

import org.apache.wicket.extensions.markup.html.repeater.data.table.filter.FilterForm; //导入依赖的package包/类
@Override
public Component getFilter(final String componentId, final FilterForm<?> form) {
    ChoiceFilter<Y> filter = new ChoiceFilter<Y>(componentId, getFilterModel(form), form, getFilterChoices(), enableAutoSubmit());

    IChoiceRenderer<Y> renderer = getChoiceRenderer();
    if (renderer != null) {
        filter.getChoice().setChoiceRenderer(renderer);
    }
    return filter;
}
 
开发者ID:PkayJava,项目名称:pluggable,代码行数:11,代码来源:ChoiceFilteredPropertyColumn.java


注:本文中的org.apache.wicket.extensions.markup.html.repeater.data.table.filter.FilterForm类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。