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

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

本文整理了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

  1. @Override
  2. public boolean isSortable() {
  3. return component.isSortEnabled();
  4. }

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

  1. /**
  2. * Is sorting disabled altogether.
  3. *
  4. * True if no sortable columns are given even in the case where data source
  5. * would support this.
  6. *
  7. * @return True if sorting is disabled.
  8. * @deprecated As of 7.0, use {@link #isSortEnabled()} instead
  9. */
  10. @Deprecated
  11. public boolean isSortDisabled() {
  12. return !isSortEnabled();
  13. }

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

  1. /**
  2. * Gets the container property IDs, which can be used to sort the item.
  3. * <p>
  4. * Note that the {@link #isSortEnabled()} state affects what this method
  5. * returns. Disabling sorting causes this method to always return an empty
  6. * collection.
  7. * </p>
  8. *
  9. * @see Container.Sortable#getSortableContainerPropertyIds()
  10. */
  11. @Override
  12. public Collection<?> getSortableContainerPropertyIds() {
  13. final Container c = getContainerDataSource();
  14. if (c instanceof Container.Sortable && isSortEnabled()) {
  15. return ((Container.Sortable) c).getSortableContainerPropertyIds();
  16. } else {
  17. return Collections.EMPTY_LIST;
  18. }
  19. }

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

  1. @Override
  2. public void writeDesign(Element design, DesignContext context) {
  3. Table def = context.getDefaultInstance(this);
  4. DesignAttributeHandler.writeAttribute("sortable", design.attributes(),
  5. isSortEnabled(), def.isSortEnabled(), boolean.class, context);
  6. Element table = null;
  7. boolean hasColumns = getVisibleColumns().length != 0;
  8. if (hasColumns) {
  9. table = design.appendElement("table");
  10. writeColumns(table, def, context);
  11. writeHeader(table, def, context);
  12. }
  13. super.writeDesign(design, context);
  14. if (hasColumns) {
  15. writeFooter(table);
  16. }
  17. }

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

  1. if (isSortEnabled()) {

相关文章

Table类方法