本文整理了Java中com.vaadin.v7.ui.Table.setSortContainerPropertyId()
方法的一些代码示例,展示了Table.setSortContainerPropertyId()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Table.setSortContainerPropertyId()
方法的具体详情如下:
包路径:com.vaadin.v7.ui.Table
类名称:Table
方法名:setSortContainerPropertyId
[英]Sets the currently sorted column property id.
[中]设置当前已排序的列属性id。
代码示例来源:origin: com.vaadin/vaadin-compatibility-server
/**
* Sets the currently sorted column property id.
*
* @param propertyId
* the Container property id of the currently sorted column.
*/
public void setSortContainerPropertyId(Object propertyId) {
setSortContainerPropertyId(propertyId, true);
}
代码示例来源:origin: de.mhus.lib/mhu-lib-vaadin
@Override
public void setSortContainerPropertyId(Object propertyId) {
sortedColumn = String.valueOf(propertyId);
super.setSortContainerPropertyId(propertyId);
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
boolean sortAscending = Boolean.parseBoolean(columnsElem.attributeValue("sortAscending"));
component.setSortContainerPropertyId(null);
component.setSortAscending(sortAscending);
component.setSortContainerPropertyId(sortProperty);
component.setSortContainerPropertyId(null);
代码示例来源:origin: com.vaadin/vaadin-compatibility-server
&& !"null".equals(colId)) {
final Object id = columnIdMap.get(colId);
setSortContainerPropertyId(id, false);
doSort = true;
内容来源于网络,如有侵权,请联系作者删除!