litesoft
Diff Revisions
947
vs
948
for /trunk/Java/GWT/Client/src/com/google/gwt/gen2/table/client/property/MinimumWidthProperty.java
|
@@ -18,8 +18,7 @@ |
18 |
18 |
|
/** |
19 |
19 |
|
* A {@link ColumnProperty} that provides the minimum width of a column. |
20 |
20 |
|
*/ |
21 |
|
- |
public class MinimumWidthProperty extends ColumnProperty |
22 |
|
- |
{ |
|
21 |
+ |
public class MinimumWidthProperty extends ColumnProperty { |
23 |
22 |
|
/** |
24 |
23 |
|
* The return value when no minimum width is specified. |
25 |
24 |
|
*/ |
|
@@ -28,15 +27,12 @@ |
28 |
27 |
|
/** |
29 |
28 |
|
* Property type. |
30 |
29 |
|
*/ |
31 |
|
- |
public static final Type<MinimumWidthProperty> TYPE = new Type<MinimumWidthProperty>() |
32 |
|
- |
{ |
|
30 |
+ |
public static final Type<MinimumWidthProperty> TYPE = new Type<MinimumWidthProperty>() { |
33 |
31 |
|
private MinimumWidthProperty instance; |
34 |
32 |
|
|
35 |
33 |
|
@Override |
36 |
|
- |
public MinimumWidthProperty getDefault() |
37 |
|
- |
{ |
38 |
|
- |
if ( instance == null ) |
39 |
|
- |
{ |
|
34 |
+ |
public MinimumWidthProperty getDefault() { |
|
35 |
+ |
if ( instance == null ) { |
40 |
36 |
|
instance = new MinimumWidthProperty( NO_MINIMUM_WIDTH ); |
41 |
37 |
|
} |
42 |
38 |
|
return instance; |
|
@@ -50,8 +46,7 @@ |
50 |
46 |
|
* |
51 |
47 |
|
* @param minWidth the minimum column width |
52 |
48 |
|
*/ |
53 |
|
- |
public MinimumWidthProperty( int minWidth ) |
54 |
|
- |
{ |
|
49 |
+ |
public MinimumWidthProperty( int minWidth ) { |
55 |
50 |
|
this.minWidth = minWidth; |
56 |
51 |
|
} |
57 |
52 |
|
|
|
@@ -62,8 +57,7 @@ |
62 |
57 |
|
* |
63 |
58 |
|
* @return the minimum allowable width of the column |
64 |
59 |
|
*/ |
65 |
|
- |
public int getMinimumColumnWidth() |
66 |
|
- |
{ |
|
60 |
+ |
public int getMinimumColumnWidth() { |
67 |
61 |
|
return minWidth; |
68 |
62 |
|
} |
69 |
63 |
|
} |