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

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

本文整理了Java中com.vaadin.v7.ui.Table.setColumnCollapsed()方法的一些代码示例,展示了Table.setColumnCollapsed()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Table.setColumnCollapsed()方法的具体详情如下:
包路径:com.vaadin.v7.ui.Table
类名称:Table
方法名:setColumnCollapsed

Table.setColumnCollapsed介绍

[英]Sets whether the specified column is collapsed or not.
[中]设置指定的列是否折叠。

代码示例

代码示例来源:origin: de.mhus.lib/mhu-lib-vaadin

  1. public void setCollapsed(boolean collapsed) {
  2. table.setColumnCollapsed(colId, collapsed);
  3. }

代码示例来源:origin: com.haulmont.cuba/cuba-web

  1. if (visible != null) {
  2. if (component.isColumnCollapsingAllowed()) { // throws exception if not
  3. component.setColumnCollapsed(column, !Boolean.parseBoolean(visible));
  4. component.setColumnCollapsed(newColumns.get(0), false);

代码示例来源:origin: tepi/FilteringTable

  1. @Override
  2. public void setColumnCollapsed(Object propertyId, boolean collapsed) throws IllegalStateException {
  3. super.setColumnCollapsed(propertyId, collapsed);
  4. Component c = getColumnIdToFilterMap().get(propertyId);
  5. if (collapsed) {
  6. collapsedColumnIds.add(propertyId);
  7. if (c != null) {
  8. c.setParent(null);
  9. if (c instanceof TextField) {
  10. ((TextField) c).setValue("");
  11. } else if (c instanceof AbstractField<?>) {
  12. ((AbstractField<?>) c).setValue(null);
  13. }
  14. }
  15. } else {
  16. if (c != null) {
  17. c.setParent(this);
  18. }
  19. collapsedColumnIds.remove(propertyId);
  20. }
  21. reRenderFilterFields = true;
  22. markAsDirty();
  23. }

代码示例来源:origin: com.haulmont.cuba/cuba-web

  1. @Override
  2. public void setColumnCollapsed(Column column, boolean collapsed) {
  3. if (!getColumnControlVisible()) {
  4. return;
  5. }
  6. checkNotNullArgument(column, "column must be non null");
  7. if (column.isCollapsed() != collapsed) {
  8. column.setCollapsed(collapsed);
  9. }
  10. component.setColumnCollapsed(column.getId(), collapsed);
  11. }

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

  1. if (isColumnCollapsed(propertyId)) {
  2. if (!idSet.contains(propertyId)) {
  3. setColumnCollapsed(propertyId, false);
  4. setColumnCollapsed(propertyId, true);

代码示例来源:origin: com.haulmont.cuba/cuba-web

  1. if (!(columnId instanceof MetaPropertyPath) ||
  2. security.isEntityAttrReadPermitted(metaClass, columnId.toString())) {
  3. component.setColumnCollapsed(column.getId(), true);

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

  1. setColumnCollapsed(id, DesignAttributeHandler.readAttribute(
  2. "collapsed", col.attributes(), boolean.class));

代码示例来源:origin: de.mhus.lib/mhu-lib-vaadin

  1. table.setColumnCollapsed(colId, !columnDef.elapsed());

相关文章

Table类方法