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

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

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

Table.setColumnWidth介绍

暂无

代码示例

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

  1. protected void addContainerProperties() {
  2. table.addContainerProperty("type", Embedded.class, null);
  3. table.setColumnWidth("type", 16);
  4. table.addContainerProperty("name", Component.class, null);
  5. table.addContainerProperty("delete", Embedded.class, null);
  6. table.setColumnWidth("delete", 16);
  7. }

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

  1. m_fileTable.setColumnWidth(expandCol, getAlternativeWidthForExpandingColumns(expandCol));

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

  1. String name = column.getProperty().getName();
  2. if (info.width() >= 0) {
  3. table.setColumnWidth(name, info.width());

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

  1. m_fileTable.setColumnWidth(visibleProp, visibleProp.getColumnWidth());

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

  1. selectedUsersTable.setColumnWidth("icon", 16);
  2. selectedUsersTable.setColumnWidth("icon", 16);

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

  1. reportTable.setColumnWidth("icon", 22);

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

  1. reportTable.setColumnWidth("icon", 22);

代码示例来源: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.setColumnWidth("icon", 22);

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

  1. table.setColumnWidth("icon", 22);

代码示例来源: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. jobTable.setColumnWidth("icon", 22);

代码示例来源: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.setColumnWidth("icon", 22);

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

  1. processDefinitionTable.setColumnWidth("icon", 22);

代码示例来源: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.setColumnWidth("icon", 22);

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

  1. attachmentTypes.setColumnWidth("type", 16);
  2. attachmentTypes.addContainerProperty("name", String.class, null);

相关文章