Subversion Repository Public Repository

litesoft

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

Diff revisions: vs.
  @@ -1,30 +1,30 @@
1 - package org.litesoft.GWT.client.widgets;
2 -
3 - import org.litesoft.commonfoundation.html.*;
4 -
5 - import com.google.gwt.dom.client.*;
6 - import com.google.gwt.safehtml.shared.*;
7 - import com.google.gwt.user.client.ui.*;
8 -
9 - public class NewSpacer extends Composite {
10 - public NewSpacer() {
11 - HTML zHTML = new HTML( SafeHtmlUtils.fromSafeConstant( HTMLConstants.NBSP ) );
12 - zHTML.getElement().getStyle().setOverflow( Style.Overflow.HIDDEN );
13 - initWidget( zHTML );
14 - size( 1, 1 );
15 - }
16 -
17 - public NewSpacer size( int width, int height ) {
18 - return width( width ).height( height );
19 - }
20 -
21 - public NewSpacer width( int width ) {
22 - setWidth( width + "px" );
23 - return this;
24 - }
25 -
26 - public NewSpacer height( int height ) {
27 - setHeight( height + "px" );
28 - return this;
29 - }
30 - }
1 + package org.litesoft.GWT.client.widgets;
2 +
3 + import org.litesoft.commonfoundation.html.*;
4 +
5 + import com.google.gwt.dom.client.*;
6 + import com.google.gwt.safehtml.shared.*;
7 + import com.google.gwt.user.client.ui.*;
8 +
9 + public class NewSpacer extends Composite {
10 + public NewSpacer() {
11 + HTML zHTML = new HTML( SafeHtmlUtils.fromSafeConstant( HtmlEntity.NBSP ) );
12 + zHTML.getElement().getStyle().setOverflow( Style.Overflow.HIDDEN );
13 + initWidget( zHTML );
14 + size( 1, 1 );
15 + }
16 +
17 + public NewSpacer size( int width, int height ) {
18 + return width( width ).height( height );
19 + }
20 +
21 + public NewSpacer width( int width ) {
22 + setWidth( width + "px" );
23 + return this;
24 + }
25 +
26 + public NewSpacer height( int height ) {
27 + setHeight( height + "px" );
28 + return this;
29 + }
30 + }