com.vaadin.v7.ui.Table.setSortAscending()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(1.7k)|赞(0)|评价(0)|浏览(328)

本文整理了Java中com.vaadin.v7.ui.Table.setSortAscending()方法的一些代码示例,展示了Table.setSortAscending()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Table.setSortAscending()方法的具体详情如下:
包路径:com.vaadin.v7.ui.Table
类名称:Table
方法名:setSortAscending

Table.setSortAscending介绍

[英]Sets the table in ascending order.
[中]按升序设置表格。

代码示例

代码示例来源:origin: com.vaadin/vaadin-compatibility-server

  1. /**
  2. * Sets the table in ascending order.
  3. *
  4. * @param ascending
  5. * <code>true</code> if ascending, <code>false</code> if
  6. * descending.
  7. */
  8. public void setSortAscending(boolean ascending) {
  9. setSortAscending(ascending, true);
  10. }

代码示例来源:origin: de.mhus.lib/mhu-lib-vaadin

  1. @Override
  2. public void setSortAscending(boolean ascending) {
  3. sortedAscending = ascending;
  4. super.setSortAscending(ascending);
  5. sortEventHandler.fire();
  6. }

代码示例来源:origin: com.haulmont.cuba/cuba-web

  1. @Override
  2. public void sortBy(Object propertyId, boolean ascending) {
  3. if (isSortable()) {
  4. component.setSortAscending(ascending);
  5. component.setSortContainerPropertyId(propertyId);
  6. component.sort();
  7. }
  8. }

代码示例来源:origin: com.haulmont.cuba/cuba-web

  1. @Override
  2. public void sort(String columnId, SortDirection direction) {
  3. Column column = getColumn(columnId);
  4. if (column == null) {
  5. throw new IllegalArgumentException("Unable to find column " + columnId);
  6. }
  7. if (isSortable()) {
  8. component.setSortAscending(direction == SortDirection.ASCENDING);
  9. component.setSortContainerPropertyId(column.getId());
  10. component.sort();
  11. }
  12. }

代码示例来源:origin: com.haulmont.cuba/cuba-web

  1. component.setSortAscending(sortAscending);
  2. component.setSortContainerPropertyId(sortProperty);

代码示例来源:origin: com.vaadin/vaadin-compatibility-server

  1. .booleanValue();
  2. if (state != sortAscending) {
  3. setSortAscending(state, false);
  4. doSort = true;

相关文章

Table类方法