Subversion Repository Public Repository

litesoft

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
package org.litesoft.GWT.client.widgets;

import org.litesoft.commonfoundation.html.*;

import com.google.gwt.dom.client.*;
import com.google.gwt.safehtml.shared.*;
import com.google.gwt.user.client.ui.*;

public class NewSpacer extends Composite
{
    public NewSpacer()
    {
        HTML zHTML = new HTML( SafeHtmlUtils.fromSafeConstant( HTMLConstants.NBSP ) );
        zHTML.getElement().getStyle().setOverflow( Style.Overflow.HIDDEN );
        initWidget( zHTML );
        size( 1, 1 );
    }

    public NewSpacer size( int width, int height )
    {
        return width( width ).height( height );
    }

    public NewSpacer width( int width )
    {
        setWidth( width + "px" );
        return this;
    }

    public NewSpacer height( int height )
    {
        setHeight( height + "px" );
        return this;
    }
}

Commits for litesoft/trunk/Java/GWT/Client/src/org/litesoft/GWT/client/widgets/NewSpacer.java

Diff revisions: vs.
Revision Author Commited Message
942 Diff Diff GeorgeS picture GeorgeS Mon 02 Jun, 2014 23:41:46 +0000

Extracting commonfoundation

712 GeorgeS picture GeorgeS Sat 09 Jun, 2012 22:46:04 +0000

Move PAV stuff into LiteSoft