本文整理了Java中org.apache.wicket.extensions.markup.html.repeater.data.table.DataTable.addTopToolbar()
方法的一些代码示例,展示了DataTable.addTopToolbar()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。DataTable.addTopToolbar()
方法的具体详情如下:
包路径:org.apache.wicket.extensions.markup.html.repeater.data.table.DataTable
类名称:DataTable
方法名:addTopToolbar
[英]Adds a toolbar to the datatable that will be displayed before the data
[中]向数据表中添加工具栏,该工具栏将显示在数据表之前
代码示例来源:origin: MarcGiffing/wicket-spring-boot
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);
}
代码示例来源:origin: theonedev/onedev
buildsTable.addTopToolbar(new AjaxFallbackHeadersToolbar<Void>(buildsTable, dataProvider));
buildsTable.addBottomToolbar(new NoRecordsToolbar(buildsTable));
add(buildsTable);
代码示例来源:origin: apache/wicket
/**
* Construct.
*
* @param id
* component id
* @param columns
* columns for the {@link DataTable}
* @param provider
* the provider of the tree
* @param rowsPerPage
* rows to show on each page
* @param state
* expansion state
*/
public DefaultTableTree(String id, List<? extends IColumn<T, S>> columns,
ISortableTreeProvider<T, S> provider, int rowsPerPage, IModel<? extends Set<T>> state)
{
super(id, columns, provider, rowsPerPage, state);
getTable().addTopToolbar(new NavigationToolbar(getTable()));
getTable().addTopToolbar(new HeadersToolbar<>(getTable(), provider));
getTable().addBottomToolbar(new NoRecordsToolbar(getTable()));
add(new WindowsTheme());
}
代码示例来源:origin: micromata/projectforge
dataTable.addTopToolbar(headersToolbar);
table.add(dataTable);
代码示例来源:origin: theonedev/onedev
fieldsTable.addTopToolbar(new HeadersToolbar<Void>(fieldsTable, null));
fieldsTable.addBottomToolbar(new NoRecordsToolbar(fieldsTable));
fieldsTable.setOutputMarkupId(true);
代码示例来源:origin: theonedev/onedev
boardsTable.addTopToolbar(new HeadersToolbar<Void>(boardsTable, null));
boardsTable.addBottomToolbar(new NoRecordsToolbar(boardsTable));
boardsTable.setOutputMarkupId(true);
代码示例来源:origin: theonedev/onedev
statesTable.addTopToolbar(new HeadersToolbar<Void>(statesTable, null));
statesTable.addBottomToolbar(new NoRecordsToolbar(statesTable));
statesTable.setOutputMarkupId(true);
代码示例来源:origin: theonedev/onedev
dataTable.addTopToolbar(new HeadersToolbar<Void>(dataTable, null));
dataTable.addBottomToolbar(new NoRecordsToolbar(dataTable));
代码示例来源:origin: micromata/projectforge
dataTable.addTopToolbar(headersToolbar);
body.add(dataTable);
final Label timeOfCreationLabel = new Label("timeOfCreation",
代码示例来源:origin: org.opensingular/singular-wicket-utils
getTable().addTopToolbar(headersToolbar);
代码示例来源:origin: org.opensingular/wicket-utils
getTable().addTopToolbar(headersToolbar);
代码示例来源:origin: micromata/projectforge
tree.getTable().addTopToolbar(new HeadersToolbar<String>(tree.getTable(), null));
tree.getTable().addBottomToolbar(new NoRecordsToolbar(tree.getTable()));
tree.add(new Behavior()
代码示例来源:origin: micromata/projectforge
tree.getTable().addTopToolbar(new HeadersToolbar<String>(tree.getTable(), null));
tree.getTable().addBottomToolbar(new NoRecordsToolbar(tree.getTable()));
tree.add(new Behavior()
内容来源于网络,如有侵权,请联系作者删除!