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

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

本文整理了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

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

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

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

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

/**
 * Sets whether column hiding by user is allowed or not.
 * @param columnHidingAllowed <code>true</code> if column hiding is allowed
 */
public void setColumnHidingAllowed(boolean columnHidingAllowed) {
  switch (getRenderingMode()) {
  case GRID:
    propertyColumnDefinitions.values().forEach(c -> c.setHidable(false));
    break;
  case TABLE:
    getTable().setColumnCollapsingAllowed(columnHidingAllowed);
    break;
  default:
    break;
  }
}

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

private void createArtifactDetailsMaxView() {
  artifactDetailsTable.setValue(null);
  artifactDetailsTable.setSelectable(false);
  artifactDetailsTable.setMultiSelect(false);
  artifactDetailsTable.setDragMode(TableDragMode.NONE);
  artifactDetailsTable.setColumnCollapsingAllowed(true);
  artifactUploadState.setArtifactDetailsMaximized(Boolean.TRUE);
  eventBus.publish(this, ArtifactDetailsEvent.MAXIMIZED);
}

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

private void createArtifactDetailsMaxView() {
  artifactDetailsTable.setValue(null);
  artifactDetailsTable.setSelectable(false);
  artifactDetailsTable.setMultiSelect(false);
  artifactDetailsTable.setDragMode(TableDragMode.NONE);
  artifactDetailsTable.setColumnCollapsingAllowed(true);
  artifactUploadState.setArtifactDetailsMaximized(Boolean.TRUE);
  eventBus.publish(this, ArtifactDetailsEvent.MAXIMIZED);
}

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

public static Table simpleTable(Container dataSource, Object[] visiblePropertyIds, Map<String, ColumnGenerator> customColumns) {
  Table table = new Table();
  table.addStyleName("big striped borderless");
  table.setSizeFull();
  table.setPageLength(0);
  table.setImmediate(false);
  table.setSelectable(false);
  table.setColumnHeaderMode(Table.COLUMN_HEADER_MODE_HIDDEN);
  table.setColumnCollapsingAllowed(false);
  table.setSortDisabled(true);
  if (customColumns != null) {
    for (Map.Entry<String, ColumnGenerator> entry : customColumns.entrySet()) {
      table.addGeneratedColumn(entry.getKey(), entry.getValue());
    }
  }
  table.setContainerDataSource(dataSource);
  table.setVisibleColumns(visiblePropertyIds);
  table.setColumnExpandRatio(visiblePropertyIds[visiblePropertyIds.length - 1], 1.0f);
  return table;
}

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

m_fileTable.addStyleName(OpenCmsTheme.SIMPLE_DRAG);
m_fileTable.setSizeFull();
m_fileTable.setColumnCollapsingAllowed(true);
m_fileTable.setSelectable(true);
m_fileTable.setMultiSelect(true);

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

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

相关文章

微信公众号

最新文章

更多