本文整理了Java中com.vaadin.v7.ui.Table.isSortEnabled()
方法的一些代码示例,展示了Table.isSortEnabled()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Table.isSortEnabled()
方法的具体详情如下:
包路径:com.vaadin.v7.ui.Table
类名称: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()) {
内容来源于网络,如有侵权,请联系作者删除!