當前位置: 首頁>>代碼示例>>Java>>正文


Java HasHorizontalAlignment.ALIGN_RIGHT屬性代碼示例

本文整理匯總了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;
	}
}
 
開發者ID:Jenner4S,項目名稱:unitimes,代碼行數:16,代碼來源:CurriculaTable.java

示例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;
	}
}
 
開發者ID:Jenner4S,項目名稱:unitimes,代碼行數:11,代碼來源:SimpleEditPage.java

示例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;
	}
}
 
開發者ID:Jenner4S,項目名稱:unitimes,代碼行數:10,代碼來源:RoomsTable.java

示例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;
	}
}
 
開發者ID:Jenner4S,項目名稱:unitimes,代碼行數:11,代碼來源:DataTable.java

示例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;

}
 
開發者ID:lsst,項目名稱:firefly,代碼行數:12,代碼來源:DynSearchCmd.java

示例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);
}
 
開發者ID:lsst,項目名稱:firefly,代碼行數:8,代碼來源:DataSetSummaryItem.java

示例7: getCellAlignment

@Override
public HorizontalAlignmentConstant getCellAlignment() {
	return HasHorizontalAlignment.ALIGN_RIGHT;
}
 
開發者ID:Jenner4S,項目名稱:unitimes,代碼行數:4,代碼來源:CurriculaCourses.java

示例8: getHorizontalAlignment

public HorizontalAlignmentConstant getHorizontalAlignment() {
	return HasHorizontalAlignment.ALIGN_RIGHT;
}
 
開發者ID:ivan-zapreev,項目名稱:x-cure-chat,代碼行數:3,代碼來源:ThreeLevelSiteMenu.java


注:本文中的com.google.gwt.user.client.ui.HasHorizontalAlignment.ALIGN_RIGHT屬性示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。