本文整理匯總了Java中com.google.gwt.user.client.ui.HasHorizontalAlignment.ALIGN_LEFT屬性的典型用法代碼示例。如果您正苦於以下問題:Java HasHorizontalAlignment.ALIGN_LEFT屬性的具體用法?Java HasHorizontalAlignment.ALIGN_LEFT怎麽用?Java HasHorizontalAlignment.ALIGN_LEFT使用的例子?那麽, 這裏精選的屬性代碼示例或許可以為您提供幫助。您也可以進一步了解該屬性所在類com.google.gwt.user.client.ui.HasHorizontalAlignment
的用法示例。
在下文中一共展示了HasHorizontalAlignment.ALIGN_LEFT屬性的13個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的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: getHorizontalAlignment
public HorizontalAlignmentConstant getHorizontalAlignment() {
if( SiteManager.isUserLoggedIn() ) {
return HasHorizontalAlignment.ALIGN_CENTER;
} else {
return HasHorizontalAlignment.ALIGN_LEFT;
}
}
示例6: 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;
}
示例7: 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);
}
示例8: getColumnAlignment
protected HorizontalAlignmentConstant getColumnAlignment(AttributesColumn column, int idx) {
switch (column) {
default:
return HasHorizontalAlignment.ALIGN_LEFT;
}
}
示例9: getColumnAlignment
protected HorizontalAlignmentConstant getColumnAlignment(InstructorsColumn column, int idx) {
switch (column) {
default:
return HasHorizontalAlignment.ALIGN_LEFT;
}
}
示例10: getColumnAlignment
protected HorizontalAlignmentConstant getColumnAlignment(RoomGroupsColumn column, int idx) {
switch (column) {
default:
return HasHorizontalAlignment.ALIGN_LEFT;
}
}
示例11: getColumnAlignment
protected HorizontalAlignmentConstant getColumnAlignment(RoomFeaturesColumn column, int idx) {
switch (column) {
default:
return HasHorizontalAlignment.ALIGN_LEFT;
}
}
示例12: UniTimeTableHeader
public UniTimeTableHeader(String title) {
this(title, 1, HasHorizontalAlignment.ALIGN_LEFT);
}
示例13: CellData
public CellData(String value) {
this(value, HasHorizontalAlignment.ALIGN_LEFT, HasVerticalAlignment.ALIGN_BOTTOM, true);
}