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

The following examples show how to use com.google.gwt.user.client.ui.HasHorizontalAlignment#ALIGN_LEFT . 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
protected HorizontalAlignmentConstant getColumnAlignment(AttributesColumn column, int idx) {
	switch (column) {
	default:
		return HasHorizontalAlignment.ALIGN_LEFT;
	}
}
 
Example 6
Source Project: unitime   File: InstructorsTable.java    License: Apache License 2.0 4 votes vote down vote up
protected HorizontalAlignmentConstant getColumnAlignment(InstructorsColumn column, int idx) {
	switch (column) {
	default:
		return HasHorizontalAlignment.ALIGN_LEFT;
	}
}
 
Example 7
Source Project: unitime   File: TasksTable.java    License: Apache License 2.0 4 votes vote down vote up
protected HorizontalAlignmentConstant getColumnAlignment(TasksTableColumn column, int idx) {
	switch (column) {
	default:
		return HasHorizontalAlignment.ALIGN_LEFT;
	}
}
 
Example 8
Source Project: unitime   File: TaskExecutionsTable.java    License: Apache License 2.0 4 votes vote down vote up
protected HorizontalAlignmentConstant getColumnAlignment(TaskExecutionsTableColumn column, int idx) {
	switch (column) {
	default:
		return HasHorizontalAlignment.ALIGN_LEFT;
	}
}
 
Example 9
Source Project: unitime   File: RoomGroupsTable.java    License: Apache License 2.0 4 votes vote down vote up
protected HorizontalAlignmentConstant getColumnAlignment(RoomGroupsColumn column, int idx) {
	switch (column) {
	default:
		return HasHorizontalAlignment.ALIGN_LEFT;
	}
}
 
Example 10
Source Project: unitime   File: RoomFeaturesTable.java    License: Apache License 2.0 4 votes vote down vote up
protected HorizontalAlignmentConstant getColumnAlignment(RoomFeaturesColumn column, int idx) {
	switch (column) {
	default:
		return HasHorizontalAlignment.ALIGN_LEFT;
	}
}
 
Example 11
Source Project: unitime   File: ConflictTable.java    License: Apache License 2.0 4 votes vote down vote up
protected HorizontalAlignmentConstant getColumnAlignment(ConflictColum column, int idx) {
	switch (column) {
	default:
		return HasHorizontalAlignment.ALIGN_LEFT;
	}
}
 
Example 12
Source Project: unitime   File: SuggestionsTable.java    License: Apache License 2.0 4 votes vote down vote up
protected HorizontalAlignmentConstant getColumnAlignment(SuggestionColumn column, int idx) {
	switch (column) {
	default:
		return HasHorizontalAlignment.ALIGN_LEFT;
	}
}
 
Example 13
Source Project: unitime   File: AssignmentTable.java    License: Apache License 2.0 4 votes vote down vote up
protected HorizontalAlignmentConstant getColumnAlignment(AssignmentColumn column, int idx) {
	switch (column) {
	default:
		return HasHorizontalAlignment.ALIGN_LEFT;
	}
}
 
Example 14
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 15
protected HorizontalAlignmentConstant getColumnAlignment(TableColumn column, int idx) {
	switch (column) {
	default:
		return HasHorizontalAlignment.ALIGN_LEFT;
	}
}