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

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

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

Table.isSortEnabled介绍

[英]Checks if sorting is enabled.
[中]

代码示例

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

@Override
public boolean isSortable() {
  return component.isSortEnabled();
}

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

/**
 * Is sorting disabled altogether.
 *
 * True if no sortable columns are given even in the case where data source
 * would support this.
 *
 * @return True if sorting is disabled.
 * @deprecated As of 7.0, use {@link #isSortEnabled()} instead
 */
@Deprecated
public boolean isSortDisabled() {
  return !isSortEnabled();
}

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

/**
 * Gets the container property IDs, which can be used to sort the item.
 * <p>
 * Note that the {@link #isSortEnabled()} state affects what this method
 * returns. Disabling sorting causes this method to always return an empty
 * collection.
 * </p>
 *
 * @see Container.Sortable#getSortableContainerPropertyIds()
 */
@Override
public Collection<?> getSortableContainerPropertyIds() {
  final Container c = getContainerDataSource();
  if (c instanceof Container.Sortable && isSortEnabled()) {
    return ((Container.Sortable) c).getSortableContainerPropertyIds();
  } else {
    return Collections.EMPTY_LIST;
  }
}

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

@Override
public void writeDesign(Element design, DesignContext context) {
  Table def = context.getDefaultInstance(this);
  DesignAttributeHandler.writeAttribute("sortable", design.attributes(),
      isSortEnabled(), def.isSortEnabled(), boolean.class, context);
  Element table = null;
  boolean hasColumns = getVisibleColumns().length != 0;
  if (hasColumns) {
    table = design.appendElement("table");
    writeColumns(table, def, context);
    writeHeader(table, def, context);
  }
  super.writeDesign(design, context);
  if (hasColumns) {
    writeFooter(table);
  }
}

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

if (isSortEnabled()) {

相关文章

微信公众号

最新文章

更多

Table类方法