litesoft
Diff Revisions
947
vs
948
for /trunk/Java/GWT/Client/src/org/litesoft/GWT/client/widgets/NewSpacer.java
|
@@ -6,29 +6,24 @@ |
6 |
6 |
|
import com.google.gwt.safehtml.shared.*; |
7 |
7 |
|
import com.google.gwt.user.client.ui.*; |
8 |
8 |
|
|
9 |
|
- |
public class NewSpacer extends Composite |
10 |
|
- |
{ |
11 |
|
- |
public NewSpacer() |
12 |
|
- |
{ |
|
9 |
+ |
public class NewSpacer extends Composite { |
|
10 |
+ |
public NewSpacer() { |
13 |
11 |
|
HTML zHTML = new HTML( SafeHtmlUtils.fromSafeConstant( HTMLConstants.NBSP ) ); |
14 |
12 |
|
zHTML.getElement().getStyle().setOverflow( Style.Overflow.HIDDEN ); |
15 |
13 |
|
initWidget( zHTML ); |
16 |
14 |
|
size( 1, 1 ); |
17 |
15 |
|
} |
18 |
16 |
|
|
19 |
|
- |
public NewSpacer size( int width, int height ) |
20 |
|
- |
{ |
|
17 |
+ |
public NewSpacer size( int width, int height ) { |
21 |
18 |
|
return width( width ).height( height ); |
22 |
19 |
|
} |
23 |
20 |
|
|
24 |
|
- |
public NewSpacer width( int width ) |
25 |
|
- |
{ |
|
21 |
+ |
public NewSpacer width( int width ) { |
26 |
22 |
|
setWidth( width + "px" ); |
27 |
23 |
|
return this; |
28 |
24 |
|
} |
29 |
25 |
|
|
30 |
|
- |
public NewSpacer height( int height ) |
31 |
|
- |
{ |
|
26 |
+ |
public NewSpacer height( int height ) { |
32 |
27 |
|
setHeight( height + "px" ); |
33 |
28 |
|
return this; |
34 |
29 |
|
} |