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

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

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

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;

相关文章

微信公众号

最新文章

更多

Table类方法