本文整理了Java中com.vaadin.v7.ui.Table.setSortEnabled()
方法的一些代码示例,展示了Table.setSortEnabled()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Table.setSortEnabled()
方法的具体详情如下:
包路径:com.vaadin.v7.ui.Table
类名称:Table
方法名:setSortEnabled
[英]Enables or disables sorting.
Setting this to false disallows sorting by the user. It is still possible to call #sort().
[中]启用或禁用排序。
如果将其设置为false,则不允许用户进行排序。仍然可以调用#sort()。
代码示例来源:origin: com.vaadin/vaadin-compatibility-server
/**
* Disables the sorting by the user altogether.
*
* @param sortDisabled
* True if sorting is disabled.
* @deprecated As of 7.0, use {@link #setSortEnabled(boolean)} instead
*/
@Deprecated
public void setSortDisabled(boolean sortDisabled) {
setSortEnabled(!sortDisabled);
}
代码示例来源:origin: com.haulmont.cuba/cuba-web
@Override
public void setSortable(boolean sortable) {
component.setSortEnabled(sortable && canBeSorted(getItems()));
}
代码示例来源:origin: com.vaadin/vaadin-compatibility-server
@Override
public void readDesign(Element design, DesignContext context) {
super.readDesign(design, context);
if (design.hasAttr("sortable")) {
setSortEnabled(DesignAttributeHandler.readAttribute("sortable",
design.attributes(), boolean.class));
}
readColumns(design);
readHeader(design);
readBody(design, context);
readFooter(design);
}
代码示例来源:origin: OpenNMS/opennms
categoriesTable.setHeight(250.0f, Unit.PIXELS);
categoriesTable.setCaption("Categories");
categoriesTable.setSortEnabled(true);
categoriesTable.addContainerProperty("name", String.class, "");
categoriesTable.setColumnHeader("name", "Category");
代码示例来源:origin: OpenNMS/opennms
columnsTable.setSortEnabled(false);
columnsTable.setWidth(25, Unit.PERCENTAGE);
rowsTable.setSortEnabled(false);
rowsTable.setWidth(25, Unit.PERCENTAGE);
内容来源于网络,如有侵权,请联系作者删除!