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

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

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

Table.setColumnAlignment介绍

暂无

代码示例

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

table.setColumnHeader(propName, localizedHeader);
if (Button.class.isAssignableFrom(column.getProperty().getPropertyType())) {
  table.setColumnAlignment(propName, Align.CENTER);

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

switch (propertyColumn.getAlignment()) {
case CENTER:
  table.setColumnAlignment(property, Align.CENTER);
  break;
case LEFT:
  table.setColumnAlignment(property, Align.LEFT);
  break;
case RIGHT:
  table.setColumnAlignment(property, Align.RIGHT);
  break;
default:

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

protected void initGroupsTable() {
 groupsForUserQuery = new GroupsForUserQuery(identityService, this, user.getId());
 if (groupsForUserQuery.size() > 0) {
  groupTable = new Table();
  groupTable.setSortDisabled(true);
  groupTable.setHeight(150, UNITS_PIXELS);
  groupTable.setWidth(100, UNITS_PERCENTAGE);
  groupLayout.addComponent(groupTable);
  
  groupContainer = new LazyLoadingContainer(groupsForUserQuery, 30);
  groupTable.setContainerDataSource(groupContainer);
  
  groupTable.addContainerProperty("id", Button.class, null);
  groupTable.setColumnExpandRatio("id", 22);
  groupTable.addContainerProperty("name", String.class, null);
  groupTable.setColumnExpandRatio("name", 45);
  groupTable.addContainerProperty("type", String.class, null);
  groupTable.setColumnExpandRatio("type", 22);
  groupTable.addContainerProperty("actions", Component.class, null);
  groupTable.setColumnExpandRatio("actions", 11);
  groupTable.setColumnAlignment("actions", Table.ALIGN_CENTER);
 } else {
  noGroupsLabel = new Label(i18nManager.getMessage(Messages.USER_NO_GROUPS));
  groupLayout.addComponent(noGroupsLabel);
 }
}

代码示例来源:origin: org.ikasan/ikasan-dashboard-jar

this.directoryTable.setColumnExpandRatio("Type", 25);
this.directoryTable.setColumnAlignment("Order",
    Align.CENTER);
this.directoryTable.setColumnExpandRatio("Order", 10);
this.directoryTable.setColumnAlignment("Operations",
    Align.CENTER);
this.directoryTable.setColumnWidth("Operations", 300);

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

instancesTable.setColumnAlignment(AlfrescoProcessInstanceTableItem.PROPERTY_ACTIONS, Table.ALIGN_CENTER);

相关文章

微信公众号

最新文章

更多