本文整理了Java中com.vaadin.v7.ui.Table.setColumnCollapsed()
方法的一些代码示例,展示了Table.setColumnCollapsed()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Table.setColumnCollapsed()
方法的具体详情如下:
包路径:com.vaadin.v7.ui.Table
类名称:Table
方法名:setColumnCollapsed
[英]Sets whether the specified column is collapsed or not.
[中]设置指定的列是否折叠。
代码示例来源:origin: de.mhus.lib/mhu-lib-vaadin
public void setCollapsed(boolean collapsed) {
table.setColumnCollapsed(colId, collapsed);
}
代码示例来源:origin: com.haulmont.cuba/cuba-web
if (visible != null) {
if (component.isColumnCollapsingAllowed()) { // throws exception if not
component.setColumnCollapsed(column, !Boolean.parseBoolean(visible));
component.setColumnCollapsed(newColumns.get(0), false);
代码示例来源:origin: tepi/FilteringTable
@Override
public void setColumnCollapsed(Object propertyId, boolean collapsed) throws IllegalStateException {
super.setColumnCollapsed(propertyId, collapsed);
Component c = getColumnIdToFilterMap().get(propertyId);
if (collapsed) {
collapsedColumnIds.add(propertyId);
if (c != null) {
c.setParent(null);
if (c instanceof TextField) {
((TextField) c).setValue("");
} else if (c instanceof AbstractField<?>) {
((AbstractField<?>) c).setValue(null);
}
}
} else {
if (c != null) {
c.setParent(this);
}
collapsedColumnIds.remove(propertyId);
}
reRenderFilterFields = true;
markAsDirty();
}
代码示例来源:origin: com.haulmont.cuba/cuba-web
@Override
public void setColumnCollapsed(Column column, boolean collapsed) {
if (!getColumnControlVisible()) {
return;
}
checkNotNullArgument(column, "column must be non null");
if (column.isCollapsed() != collapsed) {
column.setCollapsed(collapsed);
}
component.setColumnCollapsed(column.getId(), collapsed);
}
代码示例来源:origin: com.vaadin/vaadin-compatibility-server
if (isColumnCollapsed(propertyId)) {
if (!idSet.contains(propertyId)) {
setColumnCollapsed(propertyId, false);
setColumnCollapsed(propertyId, true);
代码示例来源:origin: com.haulmont.cuba/cuba-web
if (!(columnId instanceof MetaPropertyPath) ||
security.isEntityAttrReadPermitted(metaClass, columnId.toString())) {
component.setColumnCollapsed(column.getId(), true);
代码示例来源:origin: com.vaadin/vaadin-compatibility-server
setColumnCollapsed(id, DesignAttributeHandler.readAttribute(
"collapsed", col.attributes(), boolean.class));
代码示例来源:origin: de.mhus.lib/mhu-lib-vaadin
table.setColumnCollapsed(colId, !columnDef.elapsed());
内容来源于网络,如有侵权,请联系作者删除!