private void createArtifactDetailsMinView() { artifactUploadState.setArtifactDetailsMaximized(Boolean.FALSE); artifactDetailsTable.setColumnCollapsingAllowed(false); eventBus.publish(this, ArtifactDetailsEvent.MINIMIZED); }
private void createArtifactDetailsMinView() { artifactUploadState.setArtifactDetailsMaximized(Boolean.FALSE); artifactDetailsTable.setColumnCollapsingAllowed(false); eventBus.publish(this, ArtifactDetailsEvent.MINIMIZED); }
/** * 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; } }
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); }
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); }
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; }
m_fileTable.addStyleName(OpenCmsTheme.SIMPLE_DRAG); m_fileTable.setSizeFull(); m_fileTable.setColumnCollapsingAllowed(true); m_fileTable.setSelectable(true); m_fileTable.setMultiSelect(true);
m_table.setColumnExpandRatio(COL_TYPE, 1); m_table.setColumnExpandRatio(COL_TIME, 1); m_table.setColumnCollapsingAllowed(true);