litesoft
Diff Revisions
949
vs
950
for /trunk/Java/GWT/Client/src/org/litesoft/GWT/client/widgets/nonpublic/GwtDomDimensionHelperY.java
|
@@ -1,23 +1,23 @@ |
1 |
|
- |
// This Source Code is in the Public Domain per: http://unlicense.org |
2 |
|
- |
package org.litesoft.GWT.client.widgets.nonpublic; |
3 |
|
- |
|
4 |
|
- |
import org.litesoft.commonfoundation.typeutils.*; |
5 |
|
- |
|
6 |
|
- |
import com.google.gwt.user.client.ui.*; |
7 |
|
- |
|
8 |
|
- |
public class GwtDomDimensionHelperY extends GwtElementDimensionHelperY implements GwtDomDimensionHelper { |
9 |
|
- |
public static final GwtDomDimensionHelper INSTANCE = new GwtDomDimensionHelperY(); |
10 |
|
- |
|
11 |
|
- |
protected GwtDomDimensionHelperY() { |
12 |
|
- |
} |
13 |
|
- |
|
14 |
|
- |
@Override |
15 |
|
- |
public boolean setDimension( Widget pWidget, int pDimension ) { |
16 |
|
- |
Objects.assertNotNull( "Widget", pWidget ); |
17 |
|
- |
if ( pDimension > 0 ) { |
18 |
|
- |
pWidget.setHeight( "" + pDimension ); |
19 |
|
- |
return true; |
20 |
|
- |
} |
21 |
|
- |
return false; |
22 |
|
- |
} |
23 |
|
- |
} |
|
1 |
+ |
// This Source Code is in the Public Domain per: http://unlicense.org |
|
2 |
+ |
package org.litesoft.GWT.client.widgets.nonpublic; |
|
3 |
+ |
|
|
4 |
+ |
import org.litesoft.commonfoundation.base.*; |
|
5 |
+ |
|
|
6 |
+ |
import com.google.gwt.user.client.ui.*; |
|
7 |
+ |
|
|
8 |
+ |
public class GwtDomDimensionHelperY extends GwtElementDimensionHelperY implements GwtDomDimensionHelper { |
|
9 |
+ |
public static final GwtDomDimensionHelper INSTANCE = new GwtDomDimensionHelperY(); |
|
10 |
+ |
|
|
11 |
+ |
protected GwtDomDimensionHelperY() { |
|
12 |
+ |
} |
|
13 |
+ |
|
|
14 |
+ |
@Override |
|
15 |
+ |
public boolean setDimension( Widget pWidget, int pDimension ) { |
|
16 |
+ |
Confirm.isNotNull( "Widget", pWidget ); |
|
17 |
+ |
if ( pDimension > 0 ) { |
|
18 |
+ |
pWidget.setHeight( "" + pDimension ); |
|
19 |
+ |
return true; |
|
20 |
+ |
} |
|
21 |
+ |
return false; |
|
22 |
+ |
} |
|
23 |
+ |
} |