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


Java FilterForm.add方法代码示例

本文整理汇总了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);
}
 
开发者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: 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

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

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

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

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

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

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

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


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