Subversion Repository Public Repository

litesoft

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

Diff revisions: vs.
  @@ -1,50 +1,50 @@
1 - // This Source Code is in the Public Domain per: http://unlicense.org
2 - package org.litesoft.GWT.client.widgets;
3 -
4 - import org.litesoft.GWT.client.widgets.nonpublic.*;
5 -
6 - public class SizeableSpacer extends AbstractSizeableComposite {
7 - protected Spacer mSpacer = new Spacer( 1 );
8 -
9 - public SizeableSpacer() {
10 - initWidget( new ConstrainingSizeableOuterLayers( mSpacer, "LayoutSizeableSpacer" ) );
11 - }
12 -
13 - public SizeableSpacer( int pRectangularEdgeSize ) {
14 - this();
15 - width( pRectangularEdgeSize );
16 - height( pRectangularEdgeSize );
17 - }
18 -
19 - public SizeableSpacer width( int pPixels ) {
20 - mSpacer.setWidth( "" + pPixels );
21 - return this;
22 - }
23 -
24 - public SizeableSpacer height( int pPixels ) {
25 - mSpacer.setHeight( "" + pPixels );
26 - return this;
27 - }
28 -
29 - public SizeableSpacer style( String pStyle ) {
30 - addStyleName( pStyle );
31 - return this;
32 - }
33 -
34 - //****** Implementation Code Block to support delegation to AbsoluteSizeHelper
35 -
36 - public SizeableSpacer stretchable() {
37 - LLstretchable();
38 - return this;
39 - }
40 -
41 - public SizeableSpacer stretchableVertically() {
42 - LLstretchableVertically();
43 - return this;
44 - }
45 -
46 - public SizeableSpacer stretchableHorizontally() {
47 - LLstretchableHorizontally();
48 - return this;
49 - }
50 - }
1 + // This Source Code is in the Public Domain per: http://unlicense.org
2 + package org.litesoft.GWT.client.widgets;
3 +
4 + import org.litesoft.GWT.client.widgets.nonpublic.*;
5 +
6 + public class SizeableSpacer extends AbstractSizeableComposite {
7 + protected Spacer mSpacer = new Spacer( 1 );
8 +
9 + public SizeableSpacer() {
10 + initWidget( new ConstrainingSizeableOuterLayers( mSpacer, "LayoutSizeableSpacer" ) );
11 + }
12 +
13 + public SizeableSpacer( int pRectangularEdgeSize ) {
14 + this();
15 + width( pRectangularEdgeSize );
16 + height( pRectangularEdgeSize );
17 + }
18 +
19 + public SizeableSpacer width( int pPixels ) {
20 + mSpacer.setWidth( "" + pPixels );
21 + return this;
22 + }
23 +
24 + public SizeableSpacer height( int pPixels ) {
25 + mSpacer.setHeight( "" + pPixels );
26 + return this;
27 + }
28 +
29 + public SizeableSpacer style( String pStyle ) {
30 + addStyleName( pStyle );
31 + return this;
32 + }
33 +
34 + //****** Implementation Code Block to support delegation to AbsoluteSizeHelper
35 +
36 + public SizeableSpacer stretchable() {
37 + LLstretchable();
38 + return this;
39 + }
40 +
41 + public SizeableSpacer stretchableVertically() {
42 + LLstretchableVertically();
43 + return this;
44 + }
45 +
46 + public SizeableSpacer stretchableHorizontally() {
47 + LLstretchableHorizontally();
48 + return this;
49 + }
50 + }