01: /*
02: * GWT-Ext Widget Library
03: * Copyright(c) 2007-2008, GWT-Ext.
04: * licensing@gwt-ext.com
05: *
06: * http://www.gwt-ext.com/license
07: */
08: package com.gwtext.client.core;
09:
10: /**
11: * Constants for the CSS property 'text-align.
12: */
13: public class TextAlign {
14: /**
15: * Aligns the text to the left.
16: */
17: public static final TextAlign LEFT = new TextAlign("left");
18:
19: /**
20: * Aligns the text to the right
21: */
22: public static final TextAlign RIGHT = new TextAlign("right");
23:
24: /**
25: * Centers the text.
26: */
27: public static final TextAlign CENTER = new TextAlign("center");
28:
29: /**
30: * f the computed value of text-align is 'justify' while the computed value of white-space is 'pre' or 'pre-line',
31: * the actual value of text-align is set to the initial value.
32: */
33: public static final TextAlign JUSTIFY = new TextAlign("justify");
34:
35: private String position;
36:
37: private TextAlign(String position) {
38: this .position = position;
39: }
40:
41: public String getPosition() {
42: return position;
43: }
44: }
|