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