Subversion Repository Public Repository

litesoft

Diff Revisions 947 vs 948 for /trunk/Java/GWT/Client/src/org/litesoft/GWT/client/widgets/datatables/VerticalAlignmentProperty.java

Diff revisions: vs.
  @@ -5,46 +5,37 @@
5 5 import com.google.gwt.user.client.ui.*;
6 6 import com.google.gwt.user.client.ui.HasVerticalAlignment.*;
7 7
8 - public class VerticalAlignmentProperty extends ColumnProperty
9 - {
8 + public class VerticalAlignmentProperty extends ColumnProperty {
10 9 public static final VerticalAlignmentProperty MIDDLE = new VerticalAlignmentProperty( HasVerticalAlignment.ALIGN_MIDDLE );
11 10 public static final VerticalAlignmentProperty TOP = new VerticalAlignmentProperty( HasVerticalAlignment.ALIGN_TOP );
12 11 public static final VerticalAlignmentProperty BOTTOM = new VerticalAlignmentProperty( HasVerticalAlignment.ALIGN_BOTTOM );
13 12 public static final VerticalAlignmentProperty DEFAULT = MIDDLE;
14 13
15 - public static final Type<VerticalAlignmentProperty> TYPE = new Type<VerticalAlignmentProperty>()
16 - {
14 + public static final Type<VerticalAlignmentProperty> TYPE = new Type<VerticalAlignmentProperty>() {
17 15 @Override
18 - public VerticalAlignmentProperty getDefault()
19 - {
16 + public VerticalAlignmentProperty getDefault() {
20 17 return DEFAULT;
21 18 }
22 19 };
23 20
24 21 private final VerticalAlignmentConstant mValue;
25 22
26 - private VerticalAlignmentProperty( VerticalAlignmentConstant pValue )
27 - {
23 + private VerticalAlignmentProperty( VerticalAlignmentConstant pValue ) {
28 24 mValue = pValue;
29 25 }
30 26
31 - public VerticalAlignmentConstant getValue()
32 - {
27 + public VerticalAlignmentConstant getValue() {
33 28 return mValue;
34 29 }
35 30
36 - public static VerticalAlignmentProperty getInstance( VerticalAlignmentConstant pValue )
37 - {
38 - if ( pValue == HasVerticalAlignment.ALIGN_MIDDLE )
39 - {
31 + public static VerticalAlignmentProperty getInstance( VerticalAlignmentConstant pValue ) {
32 + if ( pValue == HasVerticalAlignment.ALIGN_MIDDLE ) {
40 33 return MIDDLE;
41 34 }
42 - if ( pValue == HasVerticalAlignment.ALIGN_TOP )
43 - {
35 + if ( pValue == HasVerticalAlignment.ALIGN_TOP ) {
44 36 return TOP;
45 37 }
46 - if ( pValue == HasVerticalAlignment.ALIGN_BOTTOM )
47 - {
38 + if ( pValue == HasVerticalAlignment.ALIGN_BOTTOM ) {
48 39 return BOTTOM;
49 40 }
50 41 throw new IllegalArgumentException( pValue.getVerticalAlignString() );