本文整理汇总了Java中com.google.gwt.user.client.ui.HasHorizontalAlignment.ALIGN_RIGHT属性的典型用法代码示例。如果您正苦于以下问题:Java HasHorizontalAlignment.ALIGN_RIGHT属性的具体用法?Java HasHorizontalAlignment.ALIGN_RIGHT怎么用?Java HasHorizontalAlignment.ALIGN_RIGHT使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类com.google.gwt.user.client.ui.HasHorizontalAlignment
的用法示例。
在下文中一共展示了HasHorizontalAlignment.ALIGN_RIGHT属性的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getColumnAlignment
public HorizontalAlignmentConstant getColumnAlignment(CurriculumColumn column) {
switch (column) {
case SELECT:
return HasHorizontalAlignment.ALIGN_CENTER;
case LAST_LIKE:
case PROJECTION:
case REQUESTED:
case ENROLLED:
case SNAPSHOT_REQUESTED:
case SNAPSHOT_PROJECTION:
case REGISTERED:
return HasHorizontalAlignment.ALIGN_RIGHT;
default:
return HasHorizontalAlignment.ALIGN_LEFT;
}
}
示例2: getCellAlignment
@Override
public HorizontalAlignmentConstant getCellAlignment() {
switch (iField.getType()) {
case toggle:
return HasHorizontalAlignment.ALIGN_CENTER;
case students:
return HasHorizontalAlignment.ALIGN_RIGHT;
default:
return HasHorizontalAlignment.ALIGN_LEFT;
}
}
示例3: getColumnAlignment
protected HorizontalAlignmentConstant getColumnAlignment(RoomsColumn column, int idx) {
switch (column) {
case CAPACITY:
case EXAM_CAPACITY:
case AREA:
return HasHorizontalAlignment.ALIGN_RIGHT;
default:
return HasHorizontalAlignment.ALIGN_LEFT;
}
}
示例4: getCellAlignment
@Override
public HorizontalAlignmentConstant getCellAlignment() {
if (iHeader == null || iHeader.getAlignment() == null)
return HasHorizontalAlignment.ALIGN_LEFT;
switch (iHeader.getAlignment()) {
case CENTER: return HasHorizontalAlignment.ALIGN_CENTER;
case LEFT: return HasHorizontalAlignment.ALIGN_LEFT;
case RIGHT: return HasHorizontalAlignment.ALIGN_RIGHT;
default: return HasHorizontalAlignment.ALIGN_LEFT;
}
}
示例5: getAlignment
private HasHorizontalAlignment.HorizontalAlignmentConstant getAlignment(FieldGroupTag fg) {
String align = fg.getAlign();
if (align == null || align.equalsIgnoreCase("left"))
return HasHorizontalAlignment.ALIGN_LEFT;
else if (align.equalsIgnoreCase("center"))
return HasHorizontalAlignment.ALIGN_CENTER;
else if (align.equalsIgnoreCase("right"))
return HasHorizontalAlignment.ALIGN_RIGHT;
else
return HasHorizontalAlignment.ALIGN_LEFT;
}
示例6: getCellData
@Override
public CellData getCellData(String colname) {
TableDataView.Align align = cmap.get(colname).getAlign();
HasHorizontalAlignment.HorizontalAlignmentConstant halign = align.equals(TableDataView.Align.LEFT) ?
HasHorizontalAlignment.ALIGN_LEFT : align.equals(TableDataView.Align.RIGHT) ?
HasHorizontalAlignment.ALIGN_RIGHT : HasHorizontalAlignment.ALIGN_CENTER;
return new CellData(String.valueOf(row.getValue(colname)), halign);
}
示例7: getCellAlignment
@Override
public HorizontalAlignmentConstant getCellAlignment() {
return HasHorizontalAlignment.ALIGN_RIGHT;
}
示例8: getHorizontalAlignment
public HorizontalAlignmentConstant getHorizontalAlignment() {
return HasHorizontalAlignment.ALIGN_RIGHT;
}