当前位置: 首页>>代码示例>>Java>>正文


Java HasHorizontalAlignment.ALIGN_LEFT属性代码示例

本文整理汇总了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;
	}
}
 
开发者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: getHorizontalAlignment

public HorizontalAlignmentConstant getHorizontalAlignment() {
	if( SiteManager.isUserLoggedIn() ) {
		return HasHorizontalAlignment.ALIGN_CENTER;
	} else {
		return HasHorizontalAlignment.ALIGN_LEFT;
	}
}
 
开发者ID:ivan-zapreev,项目名称:x-cure-chat,代码行数:7,代码来源:SiteTitle.java

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

}
 
开发者ID:lsst,项目名称:firefly,代码行数:12,代码来源:DynSearchCmd.java

示例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);
}
 
开发者ID:lsst,项目名称:firefly,代码行数:8,代码来源:DataSetSummaryItem.java

示例8: getColumnAlignment

protected HorizontalAlignmentConstant getColumnAlignment(AttributesColumn column, int idx) {
	switch (column) {
	default:
		return HasHorizontalAlignment.ALIGN_LEFT;
	}
}
 
开发者ID:Jenner4S,项目名称:unitimes,代码行数:6,代码来源:InstructorAttributesTable.java

示例9: getColumnAlignment

protected HorizontalAlignmentConstant getColumnAlignment(InstructorsColumn column, int idx) {
	switch (column) {
	default:
		return HasHorizontalAlignment.ALIGN_LEFT;
	}
}
 
开发者ID:Jenner4S,项目名称:unitimes,代码行数:6,代码来源:InstructorsTable.java

示例10: getColumnAlignment

protected HorizontalAlignmentConstant getColumnAlignment(RoomGroupsColumn column, int idx) {
	switch (column) {
	default:
		return HasHorizontalAlignment.ALIGN_LEFT;
	}
}
 
开发者ID:Jenner4S,项目名称:unitimes,代码行数:6,代码来源:RoomGroupsTable.java

示例11: getColumnAlignment

protected HorizontalAlignmentConstant getColumnAlignment(RoomFeaturesColumn column, int idx) {
	switch (column) {
	default:
		return HasHorizontalAlignment.ALIGN_LEFT;
	}
}
 
开发者ID:Jenner4S,项目名称:unitimes,代码行数:6,代码来源:RoomFeaturesTable.java

示例12: UniTimeTableHeader

public UniTimeTableHeader(String title) {
	this(title, 1, HasHorizontalAlignment.ALIGN_LEFT);
}
 
开发者ID:Jenner4S,项目名称:unitimes,代码行数:3,代码来源:UniTimeTableHeader.java

示例13: CellData

public CellData(String value) {
    this(value, HasHorizontalAlignment.ALIGN_LEFT, HasVerticalAlignment.ALIGN_BOTTOM, true);
}
 
开发者ID:lsst,项目名称:firefly,代码行数:3,代码来源:SearchSummaryItem.java


注:本文中的com.google.gwt.user.client.ui.HasHorizontalAlignment.ALIGN_LEFT属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。