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

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

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

Table.setColumnHeaderMode介绍

暂无

代码示例

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

  1. /**
  2. * Set whether the listing column headers are visible.
  3. * @param headersVisible whether the listing column headers are visible
  4. */
  5. public void setHeadersVisible(boolean headersVisible) {
  6. switch (getRenderingMode()) {
  7. case GRID:
  8. getGrid().setHeaderVisible(headersVisible);
  9. break;
  10. case TABLE:
  11. getTable().setColumnHeaderMode(
  12. headersVisible ? ColumnHeaderMode.EXPLICIT_DEFAULTS_ID : ColumnHeaderMode.HIDDEN);
  13. break;
  14. default:
  15. break;
  16. }
  17. }

代码示例来源: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.activiti/activiti-explorer

  1. protected Table initRelatedContentTable() {
  2. Table table = new Table();
  3. table.setWidth(100, UNITS_PERCENTAGE);
  4. table.addStyleName(ExplorerLayout.STYLE_RELATED_CONTENT_LIST);
  5. // Invisible by default, only shown when attachments are present
  6. table.setVisible(false);
  7. table.setColumnHeaderMode(Table.COLUMN_HEADER_MODE_HIDDEN);
  8. table.addContainerProperty("type", Embedded.class, null);
  9. table.setColumnWidth("type", 16);
  10. table.addContainerProperty("name", Component.class, null);
  11. relatedContentLayout.addComponent(table);
  12. return table;
  13. }

代码示例来源:origin: org.activiti/activiti-explorer

  1. @Override
  2. protected Table createList() {
  3. final Table tableList = new Table();
  4. // Listener to change right panel when clicked on a task
  5. tableList.addListener(new Property.ValueChangeListener() {
  6. private static final long serialVersionUID = 8811553575319455854L;
  7. public void valueChange(ValueChangeEvent event) {
  8. // The itemId of the table list is the tableName
  9. String tableName = (String) event.getProperty().getValue();
  10. setDetailComponent(new DatabaseDetailPanel(tableName));
  11. // Update URL
  12. ExplorerApp.get().setCurrentUriFragment(
  13. new UriFragment(DatabaseNavigator.TABLE_URI_PART, tableName));
  14. }
  15. });
  16. // Create column headers
  17. tableList.addContainerProperty("icon", Embedded.class, null);
  18. tableList.setColumnWidth("icon", 22);
  19. tableList.addContainerProperty("tableName", String.class, null);
  20. tableList.setColumnHeaderMode(Table.COLUMN_HEADER_MODE_HIDDEN);
  21. return tableList;
  22. }

代码示例来源:origin: org.activiti/activiti-explorer

  1. protected void initAttachmentTable() {
  2. contentLayout = new VerticalLayout();
  3. addComponent(contentLayout);
  4. table = new Table();
  5. table.setWidth(100, UNITS_PERCENTAGE);
  6. table.addStyleName(ExplorerLayout.STYLE_RELATED_CONTENT_LIST);
  7. // Invisible by default, only shown when attachments are present
  8. table.setVisible(false);
  9. table.setColumnHeaderMode(Table.COLUMN_HEADER_MODE_HIDDEN);
  10. addContainerProperties();
  11. // Get the related content for this task
  12. refreshTaskAttachments();
  13. contentLayout.addComponent(table);
  14. }

代码示例来源:origin: org.activiti/activiti-explorer

  1. processDefinitionTable.setColumnHeaderMode(Table.COLUMN_HEADER_MODE_HIDDEN);

代码示例来源:origin: org.activiti/activiti-explorer

  1. processDefinitionTable.setColumnHeaderMode(Table.COLUMN_HEADER_MODE_HIDDEN);

代码示例来源:origin: org.activiti/activiti-explorer

  1. reportTable.setColumnHeaderMode(Table.COLUMN_HEADER_MODE_HIDDEN);

代码示例来源:origin: org.activiti/activiti-explorer

  1. reportTable.setColumnHeaderMode(Table.COLUMN_HEADER_MODE_HIDDEN);

代码示例来源:origin: org.activiti/activiti-explorer

  1. @Override
  2. protected Table createList() {
  3. taskTable = new Table();
  4. taskTable.addStyleName(ExplorerLayout.STYLE_TASK_LIST);
  5. taskTable.addStyleName(ExplorerLayout.STYLE_SCROLLABLE);
  6. // Listener to change right panel when clicked on a task
  7. taskTable.addListener(getListSelectionListener());
  8. this.lazyLoadingQuery = createLazyLoadingQuery();
  9. this.taskListContainer = new LazyLoadingContainer(lazyLoadingQuery, 30);
  10. taskTable.setContainerDataSource(taskListContainer);
  11. // Create column header
  12. taskTable.addGeneratedColumn("icon", new ThemeImageColumnGenerator(Images.TASK_22));
  13. taskTable.setColumnWidth("icon", 22);
  14. taskTable.addContainerProperty("name", String.class, null);
  15. taskTable.setColumnHeaderMode(Table.COLUMN_HEADER_MODE_HIDDEN);
  16. return taskTable;
  17. }

代码示例来源:origin: org.activiti/activiti-explorer

  1. processInstanceTable.setColumnHeaderMode(Table.COLUMN_HEADER_MODE_HIDDEN);

代码示例来源:origin: org.activiti/activiti-explorer

  1. table.setColumnHeaderMode(Table.COLUMN_HEADER_MODE_HIDDEN);

代码示例来源:origin: org.activiti/activiti-explorer

  1. userTable.setColumnWidth("icon", 22);
  2. userTable.addContainerProperty("name", String.class, null);
  3. userTable.setColumnHeaderMode(Table.COLUMN_HEADER_MODE_HIDDEN);

代码示例来源:origin: org.activiti/activiti-explorer

  1. protected void initMatchingUsersTable() {
  2. matchingUsersTable = new Table();
  3. matchingUsersTable.setColumnHeaderMode(Table.COLUMN_HEADER_MODE_HIDDEN);
  4. matchingUsersTable.setSelectable(true);
  5. matchingUsersTable.setEditable(false);
  6. matchingUsersTable.setImmediate(true);
  7. matchingUsersTable.setNullSelectionAllowed(false);
  8. matchingUsersTable.setSortDisabled(true);
  9. if (multiSelect) {
  10. matchingUsersTable.setMultiSelect(true);
  11. }
  12. matchingUsersTable.addGeneratedColumn("icon", new ThemeImageColumnGenerator(Images.USER_16));
  13. matchingUsersTable.setColumnWidth("icon", 16);
  14. matchingUsersTable.addContainerProperty("userName", String.class, null);
  15. matchingUsersTable.setWidth(300, UNITS_PIXELS);
  16. matchingUsersTable.setHeight(200, UNITS_PIXELS);
  17. userSelectionLayout.addComponent(matchingUsersTable);
  18. }

代码示例来源:origin: org.activiti/activiti-explorer

  1. deploymentTable.setColumnHeaderMode(Table.COLUMN_HEADER_MODE_HIDDEN);

代码示例来源:origin: org.activiti/activiti-explorer

  1. jobTable.setColumnHeaderMode(Table.COLUMN_HEADER_MODE_HIDDEN);

代码示例来源:origin: org.activiti/activiti-explorer

  1. protected void initSelectedUsersTable() {
  2. selectedUsersTable = new Table();
  3. selectedUsersTable.setColumnHeaderMode(Table.COLUMN_HEADER_MODE_HIDDEN);
  4. selectedUsersTable.setEditable(false);
  5. selectedUsersTable.setSortDisabled(true);

代码示例来源:origin: org.activiti/activiti-explorer

  1. processDefinitionTable.setColumnHeaderMode(Table.COLUMN_HEADER_MODE_HIDDEN);

代码示例来源:origin: org.activiti/activiti-explorer

  1. groupTable.setColumnWidth("icon", 22);
  2. groupTable.addContainerProperty("name", String.class, null);
  3. groupTable.setColumnHeaderMode(Table.COLUMN_HEADER_MODE_HIDDEN);

代码示例来源:origin: org.activiti/activiti-explorer

  1. processDefinitionTable.setColumnHeaderMode(Table.COLUMN_HEADER_MODE_HIDDEN);

相关文章