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

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

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

Table.getSortableContainerPropertyIds介绍

[英]Gets the container property IDs, which can be used to sort the item.

Note that the #isSortEnabled() state affects what this method returns. Disabling sorting causes this method to always return an empty collection.
[中]获取容器属性ID,该ID可用于对项进行排序。
请注意,#isSortEnabled()状态会影响此方法返回的内容。禁用排序会导致此方法始终返回空集合。

代码示例

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

@Override
public Collection<?> getSortableContainerPropertyIds() {
  Collection<?> ids = new ArrayList<>(super.getSortableContainerPropertyIds());
  if (nonSortableProperties != null) {
    ids.removeAll(nonSortableProperties);
  }
  return ids;
}

代码示例来源:origin: viritin/viritin

@Override
public Collection<?> getSortableContainerPropertyIds() {
  if (getSortableProperties() != null) {
    return Collections.unmodifiableCollection(sortableProperties);
  }
  return super.getSortableContainerPropertyIds();
}

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

target.endTag("column");
final Collection<?> sortables = getSortableContainerPropertyIds();
for (Object colId : visibleColumns) {
  if (colId != null) {

相关文章

微信公众号

最新文章

更多

Table类方法