litesoft
Diff Revisions
949
vs
950
for /trunk/Java/GWT/Client/src/org/litesoft/GWT/client/widgets/BackgroundImage.java
|
@@ -1,17 +1,17 @@ |
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 |
|
- |
import org.litesoft.commonfoundation.typeutils.*; |
6 |
|
- |
|
7 |
|
- |
import com.google.gwt.user.client.*; |
8 |
|
- |
|
9 |
|
- |
public class BackgroundImage extends AbstractBrowserEventListenableWidget { |
10 |
|
- |
public BackgroundImage( String pStyle ) { |
11 |
|
- |
Strings.assertNotNullNotEmpty( "Style", pStyle ); |
12 |
|
- |
setElement( DOM.createImg() ); |
13 |
|
- |
CommonElementHelper.setImgSrc( getElement(), TransparentImage.URL ); |
14 |
|
- |
//noinspection GWTStyleCheck |
15 |
|
- |
setStyleName( pStyle.trim() ); |
16 |
|
- |
} |
17 |
|
- |
} |
|
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 |
+ |
import org.litesoft.commonfoundation.base.*; |
|
6 |
+ |
|
|
7 |
+ |
import com.google.gwt.user.client.*; |
|
8 |
+ |
|
|
9 |
+ |
public class BackgroundImage extends AbstractBrowserEventListenableWidget { |
|
10 |
+ |
public BackgroundImage( String pStyle ) { |
|
11 |
+ |
Confirm.significant( "Style", pStyle ); |
|
12 |
+ |
setElement( DOM.createImg() ); |
|
13 |
+ |
CommonElementHelper.setImgSrc( getElement(), TransparentImage.URL ); |
|
14 |
+ |
//noinspection GWTStyleCheck |
|
15 |
+ |
setStyleName( pStyle.trim() ); |
|
16 |
+ |
} |
|
17 |
+ |
} |