litesoft
@ 821
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
// This Source Code is in the Public Domain per: http://litesoft.org/License.txt package org.litesoft.GWT.client.widgets; import org.litesoft.GWT.client.widgets.nonpublic.*; import org.litesoft.core.typeutils.*; import com.google.gwt.user.client.*; public class BackgroundImage extends AbstractBrowserEventListenableWidget { public BackgroundImage( String pStyle ) { Strings.assertNotNullNotEmpty( "Style", pStyle ); setElement( DOM.createImg() ); CommonElementHelper.setImgSrc( getElement(), TransparentImage.URL ); //noinspection GWTStyleCheck setStyleName( pStyle.trim() ); } } |