litesoft
@ 950
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( HtmlEntity.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
Revision | Author | Commited | Message |
---|---|---|---|
950 Diff | GeorgeS | Thu 19 Jun, 2014 17:57:04 +0000 | New Lines |
948 Diff | GeorgeS | Sat 07 Jun, 2014 23:42:39 +0000 | Jusefuls Formatter Updated to New Code Format |
942 Diff | GeorgeS | Mon 02 Jun, 2014 23:41:46 +0000 | Extracting commonfoundation |
712 | GeorgeS | Sat 09 Jun, 2012 22:46:04 +0000 | Move PAV stuff into LiteSoft |