litesoft
@ 948
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 |
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; } } |