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

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

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

/**
 * Sets the table in ascending order.
 *
 * @param ascending
 *            <code>true</code> if ascending, <code>false</code> if
 *            descending.
 */
public void setSortAscending(boolean ascending) {
  setSortAscending(ascending, true);
}

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

@Override
public void setSortAscending(boolean ascending) {
  sortedAscending = ascending;
  super.setSortAscending(ascending);
  sortEventHandler.fire();
}

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

@Override
public void sortBy(Object propertyId, boolean ascending) {
  if (isSortable()) {
    component.setSortAscending(ascending);
    component.setSortContainerPropertyId(propertyId);
    component.sort();
  }
}

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

@Override
public void sort(String columnId, SortDirection direction) {
  Column column = getColumn(columnId);
  if (column == null) {
    throw new IllegalArgumentException("Unable to find column " + columnId);
  }
  if (isSortable()) {
    component.setSortAscending(direction == SortDirection.ASCENDING);
    component.setSortContainerPropertyId(column.getId());
    component.sort();
  }
}

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

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

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

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

相关文章

微信公众号

最新文章

更多

Table类方法