本文整理了Java中com.vaadin.v7.ui.Table.setSortAscending()
方法的一些代码示例,展示了Table.setSortAscending()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Table.setSortAscending()
方法的具体详情如下:
包路径:com.vaadin.v7.ui.Table
类名称: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;
内容来源于网络,如有侵权,请联系作者删除!