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

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

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

protected void addContainerProperties() {
 table.addContainerProperty("type", Embedded.class, null);
 table.setColumnWidth("type", 16);
 table.addContainerProperty("name", Component.class, null);
 
 table.addContainerProperty("delete", Embedded.class, null);
 table.setColumnWidth("delete", 16);
}

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

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

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

protected Table initRelatedContentTable() {
 Table table = new Table();
 table.setWidth(100, UNITS_PERCENTAGE);
 table.addStyleName(ExplorerLayout.STYLE_RELATED_CONTENT_LIST);
 
 // Invisible by default, only shown when attachments are present
 table.setVisible(false);
 table.setColumnHeaderMode(Table.COLUMN_HEADER_MODE_HIDDEN);
 table.addContainerProperty("type", Embedded.class, null);
 table.setColumnWidth("type", 16);
 table.addContainerProperty("name", Component.class, null);
 
 relatedContentLayout.addComponent(table);
 return table;
}

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

@Override
protected Table createList() {
 final Table tableList = new Table();
 
 // Listener to change right panel when clicked on a task
 tableList.addListener(new Property.ValueChangeListener() {
  private static final long serialVersionUID = 8811553575319455854L;
  public void valueChange(ValueChangeEvent event) {
   // The itemId of the table list is the tableName
   String tableName = (String) event.getProperty().getValue();
   setDetailComponent(new DatabaseDetailPanel(tableName));
      // Update URL
   ExplorerApp.get().setCurrentUriFragment(
    new UriFragment(DatabaseNavigator.TABLE_URI_PART, tableName));
  }
 });
 
 // Create column headers
 tableList.addContainerProperty("icon", Embedded.class, null);
 tableList.setColumnWidth("icon", 22);
 tableList.addContainerProperty("tableName", String.class, null);
 tableList.setColumnHeaderMode(Table.COLUMN_HEADER_MODE_HIDDEN);
 
 return tableList;
}

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

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

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

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

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

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

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

reportTable.setColumnWidth("icon", 22);

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

reportTable.setColumnWidth("icon", 22);

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

@Override
protected Table createList() {
 taskTable = new Table();
 taskTable.addStyleName(ExplorerLayout.STYLE_TASK_LIST);
 taskTable.addStyleName(ExplorerLayout.STYLE_SCROLLABLE);
 
 // Listener to change right panel when clicked on a task
 taskTable.addListener(getListSelectionListener());
 
 this.lazyLoadingQuery = createLazyLoadingQuery();
 this.taskListContainer = new LazyLoadingContainer(lazyLoadingQuery, 30);
 taskTable.setContainerDataSource(taskListContainer);
 
 // Create column header
 taskTable.addGeneratedColumn("icon", new ThemeImageColumnGenerator(Images.TASK_22));
 taskTable.setColumnWidth("icon", 22);
 
 taskTable.addContainerProperty("name", String.class, null);
 taskTable.setColumnHeaderMode(Table.COLUMN_HEADER_MODE_HIDDEN);
 
 return taskTable;
}

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

processInstanceTable.setColumnWidth("icon", 22);

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

table.setColumnWidth("icon", 22);

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

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

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

jobTable.setColumnWidth("icon", 22);

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

protected void initMatchingUsersTable() {
 matchingUsersTable = new Table();
 matchingUsersTable.setColumnHeaderMode(Table.COLUMN_HEADER_MODE_HIDDEN);
 matchingUsersTable.setSelectable(true);
 matchingUsersTable.setEditable(false);
 matchingUsersTable.setImmediate(true);
 matchingUsersTable.setNullSelectionAllowed(false);
 matchingUsersTable.setSortDisabled(true);
  if (multiSelect) {
  matchingUsersTable.setMultiSelect(true);
 }
  matchingUsersTable.addGeneratedColumn("icon", new ThemeImageColumnGenerator(Images.USER_16));
 matchingUsersTable.setColumnWidth("icon", 16);
 matchingUsersTable.addContainerProperty("userName", String.class, null);
 matchingUsersTable.setWidth(300, UNITS_PIXELS);
 matchingUsersTable.setHeight(200, UNITS_PIXELS);
 userSelectionLayout.addComponent(matchingUsersTable);
}

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

deploymentTable.setColumnWidth("icon", 22);

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

processDefinitionTable.setColumnWidth("icon", 22);

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

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

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

processDefinitionTable.setColumnWidth("icon", 22);

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

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

相关文章

微信公众号

最新文章

更多