本文整理了Java中com.vaadin.v7.ui.Table.setColumnAlignment()
方法的一些代码示例,展示了Table.setColumnAlignment()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Table.setColumnAlignment()
方法的具体详情如下:
包路径:com.vaadin.v7.ui.Table
类名称:Table
方法名:setColumnAlignment
[英]Sets the specified column's alignment.
Throws IllegalArgumentException if the alignment is not one of the following: Align#LEFT, Align#CENTER or Align#RIGHT
[中]设置指定列的对齐方式。
如果对齐不符合以下条件之一,则引发IllegalArgumentException:左对齐、中对齐或右对齐
代码示例来源:origin: com.vaadin/vaadin-compatibility-server
return false;
setColumnAlignment(propertyId, columnAlignment);
setColumnHeader(propertyId, columnHeader);
setColumnIcon(propertyId, columnIcon);
代码示例来源:origin: com.haulmont.cuba/cuba-web
@Override
public void setColumnAlignment(Column column, ColumnAlignment alignment) {
checkNotNullArgument(column, "column must be non null");
if (column.getAlignment() != alignment) {
column.setAlignment(alignment);
}
component.setColumnAlignment(column.getId(), WebWrapperUtils.convertColumnAlignment(alignment));
}
代码示例来源:origin: com.vaadin/vaadin-compatibility-server
setColumnAlignment(id, Align.CENTER);
} else if (col.hasAttr("right")) {
setColumnAlignment(id, Align.RIGHT);
代码示例来源:origin: de.mhus.lib/mhu-lib-vaadin
table.setColumnAlignment(colId, mapToVaadin(columnDef.align()));
代码示例来源:origin: com.haulmont.cuba/cuba-web
component.setColumnAlignment(columnId,
WebWrapperUtils.convertColumnAlignment(column.getAlignment()));
内容来源于网络,如有侵权,请联系作者删除!