Subversion Repository Public Repository

litesoft

Diff Revisions 949 vs 950 for /trunk/Java/GWT/Client/src/org/litesoft/GWT/client/widgets/nonpublic/GwtElementDimensionHelperX.java

Diff revisions: vs.
  @@ -1,20 +1,20 @@
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.*;
7 -
8 - public class GwtElementDimensionHelperX extends AbstractGwtElementDimensionHelper {
9 - public static final GwtElementDimensionHelper INSTANCE = new GwtElementDimensionHelperX();
10 -
11 - protected GwtElementDimensionHelperX() {
12 - super( "'X'", "width", "offsetWidth" );
13 - }
14 -
15 - @Override
16 - public int getPosition( Element pElement ) {
17 - Objects.assertNotNull( "Element", pElement );
18 - return DOM.getAbsoluteLeft( pElement );
19 - }
20 - }
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.*;
7 +
8 + public class GwtElementDimensionHelperX extends AbstractGwtElementDimensionHelper {
9 + public static final GwtElementDimensionHelper INSTANCE = new GwtElementDimensionHelperX();
10 +
11 + protected GwtElementDimensionHelperX() {
12 + super( "'X'", "width", "offsetWidth" );
13 + }
14 +
15 + @Override
16 + public int getPosition( Element pElement ) {
17 + Confirm.isNotNull( "Element", pElement );
18 + return DOM.getAbsoluteLeft( pElement );
19 + }
20 + }