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

x33g5p2x  于2022-01-28 转载在 其他  
字(3.3k)|赞(0)|评价(0)|浏览(191)

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

Table.setColumnCollapsingAllowed介绍

暂无

代码示例

代码示例来源:origin: org.eclipse.hawkbit/hawkbit-ui

  1. private void createArtifactDetailsMinView() {
  2. artifactUploadState.setArtifactDetailsMaximized(Boolean.FALSE);
  3. artifactDetailsTable.setColumnCollapsingAllowed(false);
  4. eventBus.publish(this, ArtifactDetailsEvent.MINIMIZED);
  5. }

代码示例来源:origin: eclipse/hawkbit

  1. private void createArtifactDetailsMinView() {
  2. artifactUploadState.setArtifactDetailsMaximized(Boolean.FALSE);
  3. artifactDetailsTable.setColumnCollapsingAllowed(false);
  4. eventBus.publish(this, ArtifactDetailsEvent.MINIMIZED);
  5. }

代码示例来源:origin: com.holon-platform.vaadin7/holon-vaadin

  1. /**
  2. * Sets whether column hiding by user is allowed or not.
  3. * @param columnHidingAllowed <code>true</code> if column hiding is allowed
  4. */
  5. public void setColumnHidingAllowed(boolean columnHidingAllowed) {
  6. switch (getRenderingMode()) {
  7. case GRID:
  8. propertyColumnDefinitions.values().forEach(c -> c.setHidable(false));
  9. break;
  10. case TABLE:
  11. getTable().setColumnCollapsingAllowed(columnHidingAllowed);
  12. break;
  13. default:
  14. break;
  15. }
  16. }

代码示例来源:origin: eclipse/hawkbit

  1. private void createArtifactDetailsMaxView() {
  2. artifactDetailsTable.setValue(null);
  3. artifactDetailsTable.setSelectable(false);
  4. artifactDetailsTable.setMultiSelect(false);
  5. artifactDetailsTable.setDragMode(TableDragMode.NONE);
  6. artifactDetailsTable.setColumnCollapsingAllowed(true);
  7. artifactUploadState.setArtifactDetailsMaximized(Boolean.TRUE);
  8. eventBus.publish(this, ArtifactDetailsEvent.MAXIMIZED);
  9. }

代码示例来源:origin: org.eclipse.hawkbit/hawkbit-ui

  1. private void createArtifactDetailsMaxView() {
  2. artifactDetailsTable.setValue(null);
  3. artifactDetailsTable.setSelectable(false);
  4. artifactDetailsTable.setMultiSelect(false);
  5. artifactDetailsTable.setDragMode(TableDragMode.NONE);
  6. artifactDetailsTable.setColumnCollapsingAllowed(true);
  7. artifactUploadState.setArtifactDetailsMaximized(Boolean.TRUE);
  8. eventBus.publish(this, ArtifactDetailsEvent.MAXIMIZED);
  9. }

代码示例来源:origin: org.aperteworkflow/gui-commons

  1. public static Table simpleTable(Container dataSource, Object[] visiblePropertyIds, Map<String, ColumnGenerator> customColumns) {
  2. Table table = new Table();
  3. table.addStyleName("big striped borderless");
  4. table.setSizeFull();
  5. table.setPageLength(0);
  6. table.setImmediate(false);
  7. table.setSelectable(false);
  8. table.setColumnHeaderMode(Table.COLUMN_HEADER_MODE_HIDDEN);
  9. table.setColumnCollapsingAllowed(false);
  10. table.setSortDisabled(true);
  11. if (customColumns != null) {
  12. for (Map.Entry<String, ColumnGenerator> entry : customColumns.entrySet()) {
  13. table.addGeneratedColumn(entry.getKey(), entry.getValue());
  14. }
  15. }
  16. table.setContainerDataSource(dataSource);
  17. table.setVisibleColumns(visiblePropertyIds);
  18. table.setColumnExpandRatio(visiblePropertyIds[visiblePropertyIds.length - 1], 1.0f);
  19. return table;
  20. }

代码示例来源:origin: org.opencms/opencms-core

  1. m_fileTable.addStyleName(OpenCmsTheme.SIMPLE_DRAG);
  2. m_fileTable.setSizeFull();
  3. m_fileTable.setColumnCollapsingAllowed(true);
  4. m_fileTable.setSelectable(true);
  5. m_fileTable.setMultiSelect(true);

代码示例来源:origin: apache/ace

  1. m_table.setColumnExpandRatio(COL_TYPE, 1);
  2. m_table.setColumnExpandRatio(COL_TIME, 1);
  3. m_table.setColumnCollapsingAllowed(true);

相关文章