litesoft
Diff Revisions
947
vs
948
for /trunk/Java/GWT/Client/src/org/litesoft/GWT/client/widgets/nonpublic/AbstractGwtElementDimensionHelper.java
|
@@ -5,31 +5,26 @@ |
5 |
5 |
|
|
6 |
6 |
|
import com.google.gwt.user.client.*; |
7 |
7 |
|
|
8 |
|
- |
public abstract class AbstractGwtElementDimensionHelper implements GwtElementDimensionHelper |
9 |
|
- |
{ |
|
8 |
+ |
public abstract class AbstractGwtElementDimensionHelper implements GwtElementDimensionHelper { |
10 |
9 |
|
private String mWhat; |
11 |
10 |
|
private String mStyleDimensionAttribute; |
12 |
11 |
|
private String mOffsetDimensionAttribute; |
13 |
12 |
|
|
14 |
|
- |
protected AbstractGwtElementDimensionHelper( String pWhat, String pStyleDimensionAttribute, String pOffsetDimensionAttribute ) |
15 |
|
- |
{ |
|
13 |
+ |
protected AbstractGwtElementDimensionHelper( String pWhat, String pStyleDimensionAttribute, String pOffsetDimensionAttribute ) { |
16 |
14 |
|
mWhat = pWhat; |
17 |
15 |
|
mStyleDimensionAttribute = pStyleDimensionAttribute; |
18 |
16 |
|
mOffsetDimensionAttribute = pOffsetDimensionAttribute; |
19 |
17 |
|
} |
20 |
18 |
|
|
21 |
19 |
|
@Override |
22 |
|
- |
public final String getWhat() |
23 |
|
- |
{ |
|
20 |
+ |
public final String getWhat() { |
24 |
21 |
|
return mWhat; |
25 |
22 |
|
} |
26 |
23 |
|
|
27 |
24 |
|
@Override |
28 |
|
- |
public final boolean setStyleDimension( Element pElement, int pDimension ) |
29 |
|
- |
{ |
|
25 |
+ |
public final boolean setStyleDimension( Element pElement, int pDimension ) { |
30 |
26 |
|
Objects.assertNotNull( "Element", pElement ); |
31 |
|
- |
if ( pDimension > 0 ) |
32 |
|
- |
{ |
|
27 |
+ |
if ( pDimension > 0 ) { |
33 |
28 |
|
DOM.setIntStyleAttribute( pElement, mStyleDimensionAttribute, pDimension ); |
34 |
29 |
|
return true; |
35 |
30 |
|
} |
|
@@ -37,15 +32,13 @@ |
37 |
32 |
|
} |
38 |
33 |
|
|
39 |
34 |
|
@Override |
40 |
|
- |
public final void removeStyleDimension( Element pElement ) |
41 |
|
- |
{ |
|
35 |
+ |
public final void removeStyleDimension( Element pElement ) { |
42 |
36 |
|
Objects.assertNotNull( "Element", pElement ); |
43 |
37 |
|
DOM.setStyleAttribute( pElement, mStyleDimensionAttribute, "" ); |
44 |
38 |
|
} |
45 |
39 |
|
|
46 |
40 |
|
@Override |
47 |
|
- |
public final int getOffsetDimension( Element pElement ) |
48 |
|
- |
{ |
|
41 |
+ |
public final int getOffsetDimension( Element pElement ) { |
49 |
42 |
|
Objects.assertNotNull( "Element", pElement ); |
50 |
43 |
|
return DOM.getElementPropertyInt( pElement, mOffsetDimensionAttribute ); |
51 |
44 |
|
} |