本文整理了Java中com.vaadin.v7.ui.Table.isColumnReorderingAllowed()
方法的一些代码示例,展示了Table.isColumnReorderingAllowed()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Table.isColumnReorderingAllowed()
方法的具体详情如下:
包路径:com.vaadin.v7.ui.Table
类名称:Table
方法名:isColumnReorderingAllowed
[英]Checks if column reordering is allowed.
[中]检查是否允许列重新排序。
代码示例来源:origin: com.haulmont.cuba/cuba-web
@Override
public boolean getColumnReorderingAllowed() {
return component.isColumnReorderingAllowed();
}
代码示例来源:origin: com.vaadin/vaadin-compatibility-server
private void setColumnOrder(Object[] columnOrder) {
if (columnOrder == null || !isColumnReorderingAllowed()) {
return;
}
final LinkedList<Object> newOrder = new LinkedList<Object>();
for (Object id : columnOrder) {
if (id != null && visibleColumns.contains(id)) {
visibleColumns.remove(id);
newOrder.add(id);
}
}
for (final Object columnId : visibleColumns) {
if (!newOrder.contains(columnId)) {
newOrder.add(columnId);
}
}
visibleColumns = newOrder;
// Assure visual refresh
refreshRowCache();
}
代码示例来源:origin: com.vaadin/vaadin-compatibility-server
if (isColumnReorderingAllowed()) {
if (variables.containsKey("columnorder")) {
try {
内容来源于网络,如有侵权,请联系作者删除!