|
@@ -3,91 +3,73 @@ |
3 |
3 |
|
|
4 |
4 |
|
import com.google.gwt.gen2.table.client.property.*; |
5 |
5 |
|
|
6 |
|
- |
public class PaddingProperty extends ColumnProperty |
7 |
|
- |
{ |
|
6 |
+ |
public class PaddingProperty extends ColumnProperty { |
8 |
7 |
|
private static PaddingProperty sDefaultLeft = new PaddingProperty( 4 ); |
9 |
8 |
|
private static PaddingProperty sDefaultRight = new PaddingProperty( 4 ); |
10 |
9 |
|
private static PaddingProperty sDefaultTop = new PaddingProperty( 4 ); |
11 |
10 |
|
private static PaddingProperty sDefaultBottom = new PaddingProperty( 4 ); |
12 |
11 |
|
|
13 |
|
- |
public static final Type<PaddingProperty> LEFT = new Type<PaddingProperty>() |
14 |
|
- |
{ |
|
12 |
+ |
public static final Type<PaddingProperty> LEFT = new Type<PaddingProperty>() { |
15 |
13 |
|
@Override |
16 |
|
- |
public PaddingProperty getDefault() |
17 |
|
- |
{ |
|
14 |
+ |
public PaddingProperty getDefault() { |
18 |
15 |
|
return sDefaultLeft; |
19 |
16 |
|
} |
20 |
17 |
|
}; |
21 |
18 |
|
|
22 |
|
- |
public static final Type<PaddingProperty> RIGHT = new Type<PaddingProperty>() |
23 |
|
- |
{ |
|
19 |
+ |
public static final Type<PaddingProperty> RIGHT = new Type<PaddingProperty>() { |
24 |
20 |
|
@Override |
25 |
|
- |
public PaddingProperty getDefault() |
26 |
|
- |
{ |
|
21 |
+ |
public PaddingProperty getDefault() { |
27 |
22 |
|
return sDefaultRight; |
28 |
23 |
|
} |
29 |
24 |
|
}; |
30 |
25 |
|
|
31 |
|
- |
public static final Type<PaddingProperty> TOP = new Type<PaddingProperty>() |
32 |
|
- |
{ |
|
26 |
+ |
public static final Type<PaddingProperty> TOP = new Type<PaddingProperty>() { |
33 |
27 |
|
@Override |
34 |
|
- |
public PaddingProperty getDefault() |
35 |
|
- |
{ |
|
28 |
+ |
public PaddingProperty getDefault() { |
36 |
29 |
|
return sDefaultTop; |
37 |
30 |
|
} |
38 |
31 |
|
}; |
39 |
32 |
|
|
40 |
|
- |
public static final Type<PaddingProperty> BOTTOM = new Type<PaddingProperty>() |
41 |
|
- |
{ |
|
33 |
+ |
public static final Type<PaddingProperty> BOTTOM = new Type<PaddingProperty>() { |
42 |
34 |
|
@Override |
43 |
|
- |
public PaddingProperty getDefault() |
44 |
|
- |
{ |
|
35 |
+ |
public PaddingProperty getDefault() { |
45 |
36 |
|
return sDefaultBottom; |
46 |
37 |
|
} |
47 |
38 |
|
}; |
48 |
39 |
|
|
49 |
|
- |
public static int getDefaultLeft() |
50 |
|
- |
{ |
|
40 |
+ |
public static int getDefaultLeft() { |
51 |
41 |
|
return sDefaultLeft.getValue(); |
52 |
42 |
|
} |
53 |
43 |
|
|
54 |
|
- |
public static void setDefaultLeft( int pValue ) |
55 |
|
- |
{ |
|
44 |
+ |
public static void setDefaultLeft( int pValue ) { |
56 |
45 |
|
sDefaultLeft = new PaddingProperty( pValue ); |
57 |
46 |
|
} |
58 |
47 |
|
|
59 |
|
- |
public static int getDefaultRight() |
60 |
|
- |
{ |
|
48 |
+ |
public static int getDefaultRight() { |
61 |
49 |
|
return sDefaultRight.getValue(); |
62 |
50 |
|
} |
63 |
51 |
|
|
64 |
|
- |
public static void setDefaultRight( int pValue ) |
65 |
|
- |
{ |
|
52 |
+ |
public static void setDefaultRight( int pValue ) { |
66 |
53 |
|
sDefaultRight = new PaddingProperty( pValue ); |
67 |
54 |
|
} |
68 |
55 |
|
|
69 |
|
- |
public static int getDefaultTop() |
70 |
|
- |
{ |
|
56 |
+ |
public static int getDefaultTop() { |
71 |
57 |
|
return sDefaultTop.getValue(); |
72 |
58 |
|
} |
73 |
59 |
|
|
74 |
|
- |
public static void setDefaultTop( int pValue ) |
75 |
|
- |
{ |
|
60 |
+ |
public static void setDefaultTop( int pValue ) { |
76 |
61 |
|
sDefaultTop = new PaddingProperty( pValue ); |
77 |
62 |
|
} |
78 |
63 |
|
|
79 |
|
- |
public static int getDefaultBottom() |
80 |
|
- |
{ |
|
64 |
+ |
public static int getDefaultBottom() { |
81 |
65 |
|
return sDefaultBottom.getValue(); |
82 |
66 |
|
} |
83 |
67 |
|
|
84 |
|
- |
public static void setDefaultBottom( int pValue ) |
85 |
|
- |
{ |
|
68 |
+ |
public static void setDefaultBottom( int pValue ) { |
86 |
69 |
|
sDefaultBottom = new PaddingProperty( pValue ); |
87 |
70 |
|
} |
88 |
71 |
|
|
89 |
|
- |
public static void setDefaults( int pTop, int pRight, int pBottom, int pLeft ) |
90 |
|
- |
{ |
|
72 |
+ |
public static void setDefaults( int pTop, int pRight, int pBottom, int pLeft ) { |
91 |
73 |
|
setDefaultTop( pTop ); |
92 |
74 |
|
setDefaultRight( pRight ); |
93 |
75 |
|
setDefaultBottom( pBottom ); |
|
@@ -96,13 +78,11 @@ |
96 |
78 |
|
|
97 |
79 |
|
private final int mValue; |
98 |
80 |
|
|
99 |
|
- |
private PaddingProperty( int pValue ) |
100 |
|
- |
{ |
|
81 |
+ |
private PaddingProperty( int pValue ) { |
101 |
82 |
|
mValue = pValue; |
102 |
83 |
|
} |
103 |
84 |
|
|
104 |
|
- |
public int getValue() |
105 |
|
- |
{ |
|
85 |
+ |
public int getValue() { |
106 |
86 |
|
return mValue; |
107 |
87 |
|
} |
108 |
88 |
|
} |