Java Code Examples for com.google.gwt.user.client.ui.HasHorizontalAlignment#ALIGN_CENTER

The following examples show how to use com.google.gwt.user.client.ui.HasHorizontalAlignment#ALIGN_CENTER . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: CurriculaTable.java    From unitime with Apache License 2.0 6 votes vote down vote up
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;
	}
}
 
Example 2
Source File: SimpleEditPage.java    From unitime with Apache License 2.0 5 votes vote down vote up
@Override
public HorizontalAlignmentConstant getCellAlignment() {
	switch (iField.getType()) {
	case toggle:
		return HasHorizontalAlignment.ALIGN_CENTER;
	case students:
		return HasHorizontalAlignment.ALIGN_RIGHT;
	default:
		return HasHorizontalAlignment.ALIGN_LEFT;
	}
}
 
Example 3
Source File: DataTable.java    From unitime with Apache License 2.0 5 votes vote down vote up
@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;
	}
}
 
Example 4
Source File: UniTimeTable.java    From unitime with Apache License 2.0 4 votes vote down vote up
@Override
public HorizontalAlignmentConstant getCellAlignment() {
	return HasHorizontalAlignment.ALIGN_CENTER;
}
 
Example 5
Source File: UniTimeTable.java    From unitime with Apache License 2.0 4 votes vote down vote up
@Override
public HorizontalAlignmentConstant getCellAlignment() {
	return HasHorizontalAlignment.ALIGN_CENTER;
}
 
Example 6
Source File: CourseFinderClasses.java    From unitime with Apache License 2.0 4 votes vote down vote up
@Override
public HorizontalAlignmentConstant getCellAlignment() {
	return HasHorizontalAlignment.ALIGN_CENTER;
}
 
Example 7
Source File: Lookup.java    From unitime with Apache License 2.0 4 votes vote down vote up
@Override
public HorizontalAlignmentConstant getCellAlignment() {
	return HasHorizontalAlignment.ALIGN_CENTER;
}
 
Example 8
Source File: SectioningStatusPage.java    From unitime with Apache License 2.0 4 votes vote down vote up
@Override
public HorizontalAlignmentConstant getCellAlignment() {
	return HasHorizontalAlignment.ALIGN_CENTER;
}
 
Example 9
Source File: RestrictionsTable.java    From unitime with Apache License 2.0 4 votes vote down vote up
@Override
public HorizontalAlignmentConstant getCellAlignment() {
	return HasHorizontalAlignment.ALIGN_CENTER;
}