org.apache.wicket.extensions.markup.html.repeater.data.table.DataTable.addTopToolbar()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(3.7k)|赞(0)|评价(0)|浏览(132)

本文整理了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

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()

相关文章