Java Code Examples for com.google.gwt.user.client.ui.ValueBoxBase#TextAlignment

The following examples show how to use com.google.gwt.user.client.ui.ValueBoxBase#TextAlignment . 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: UniTimeTextBox.java    From unitime with Apache License 2.0 5 votes vote down vote up
public UniTimeTextBox(int maxWidth, int width, ValueBoxBase.TextAlignment align) {
	this();
	setWidth(width + "px");
	setMaxLength(maxWidth);
	if (align != null)
		setAlignment(align);
}
 
Example 2
Source File: UniTimeTextBox.java    From unitime with Apache License 2.0 4 votes vote down vote up
public UniTimeTextBox(int maxWidth, ValueBoxBase.TextAlignment align) {
	this(maxWidth, 10 * maxWidth, align);
}
 
Example 3
Source File: UniTimeTextBox.java    From unitime with Apache License 2.0 4 votes vote down vote up
public UniTimeTextBox(int maxWidth, ValueBoxBase.TextAlignment align, boolean editable) {
	this(maxWidth, align);
	setReadOnly(!editable);
}