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

The following examples show how to use com.google.gwt.user.client.ui.HasHorizontalAlignment#ALIGN_RIGHT . These examples are extracted from open source projects. 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 Project: unitime   File: CurriculaTable.java    License: 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 Project: unitime   File: SimpleEditPage.java    License: 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 Project: unitime   File: RoomsTable.java    License: Apache License 2.0 5 votes vote down vote up
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;
	}
}
 
Example 4
Source Project: unitime   File: DataTable.java    License: 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 5
Source Project: unitime   File: CurriculaCourses.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public HorizontalAlignmentConstant getCellAlignment() {
	return HasHorizontalAlignment.ALIGN_RIGHT;
}
 
Example 6
Source Project: unitime   File: RoomsTable.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public HorizontalAlignmentConstant getCellAlignment() {
	return HasHorizontalAlignment.ALIGN_RIGHT;
}
 
Example 7
Source Project: unitime   File: RoomsTable.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public HorizontalAlignmentConstant getCellAlignment() {
	return HasHorizontalAlignment.ALIGN_RIGHT;
}
 
Example 8
Source Project: unitime   File: UniTimeTable.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public HorizontalAlignmentConstant getCellAlignment() {
	return HasHorizontalAlignment.ALIGN_RIGHT;
}
 
Example 9
Source Project: unitime   File: UniTimeTableHeader.java    License: Apache License 2.0 4 votes vote down vote up
public static HorizontalAlignmentConstant getDefaultHorizontalAlignment() {
	if (LocaleInfo.getCurrentLocale().isRTL())
		return HasHorizontalAlignment.ALIGN_RIGHT;
	return HasHorizontalAlignment.ALIGN_LEFT;
}
 
Example 10
Source Project: unitime   File: EventMeetingTable.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public HorizontalAlignmentConstant getCellAlignment() {
	return HasHorizontalAlignment.ALIGN_RIGHT;
}
 
Example 11
Source Project: unitime   File: SectioningReports.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public HorizontalAlignmentConstant getCellAlignment() {
	return HasHorizontalAlignment.ALIGN_RIGHT;
}
 
Example 12
Source Project: unitime   File: SectioningStatusPage.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public HorizontalAlignmentConstant getCellAlignment() {
	return HasHorizontalAlignment.ALIGN_RIGHT;
}
 
Example 13
Source Project: unitime   File: SectioningStatusPage.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public HorizontalAlignmentConstant getCellAlignment() {
	return HasHorizontalAlignment.ALIGN_RIGHT;
}
 
Example 14
Source Project: unitime   File: SectioningStatusPage.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public HorizontalAlignmentConstant getCellAlignment() {
	return HasHorizontalAlignment.ALIGN_RIGHT;
}
 
Example 15
Source Project: unitime   File: SectioningStatusPage.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public HorizontalAlignmentConstant getCellAlignment() {
	return HasHorizontalAlignment.ALIGN_RIGHT;
}
 
Example 16
Source Project: unitime   File: SectioningStatusPage.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public HorizontalAlignmentConstant getCellAlignment() {
	return HasHorizontalAlignment.ALIGN_RIGHT;
}
 
Example 17
Source Project: unitime   File: SectioningStatusPage.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public HorizontalAlignmentConstant getCellAlignment() {
	return HasHorizontalAlignment.ALIGN_RIGHT;
}
 
Example 18
Source Project: unitime   File: ReservationTable.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public HorizontalAlignmentConstant getCellAlignment() {
	return HasHorizontalAlignment.ALIGN_RIGHT;
}