litesoft
Diff Revisions
49
vs
151
for /trunk/Java/GWT/Client/src/org/litesoft/GWT/client/widgets/SizeableDualImage.java
|
@@ -1,8 +1,6 @@ |
1 |
1 |
|
// This Source Code is in the Public Domain per: http://litesoft.org/License.txt |
2 |
2 |
|
package org.litesoft.GWT.client.widgets; |
3 |
3 |
|
|
4 |
|
- |
import com.google.gwt.user.client.*; |
5 |
|
- |
import com.google.gwt.user.client.ui.*; |
6 |
4 |
|
import org.litesoft.GWT.client.*; |
7 |
5 |
|
import org.litesoft.GWT.client.widgets.nonpublic.*; |
8 |
6 |
|
import org.litesoft.core.*; |
|
@@ -10,6 +8,9 @@ |
10 |
8 |
|
import org.litesoft.core.util.*; |
11 |
9 |
|
import org.litesoft.logger.*; |
12 |
10 |
|
|
|
11 |
+ |
import com.google.gwt.user.client.*; |
|
12 |
+ |
import com.google.gwt.user.client.ui.*; |
|
13 |
+ |
|
13 |
14 |
|
public class SizeableDualImage extends AbstractSizeableComposite implements SourcesClickEvents, |
14 |
15 |
|
SourcesMouseEvents, |
15 |
16 |
|
SourcesLoadEvents |
|
@@ -22,8 +23,7 @@ |
22 |
23 |
|
|
23 |
24 |
|
public SizeableDualImage( String pUrl ) |
24 |
25 |
|
{ |
25 |
|
- |
initWidget( new ConstrainingSizeableOuterLayers( mHtmlPanel, "litesoft-DualImage", true, |
26 |
|
- |
mHtmlPanel.getInnerTD() ) ); |
|
26 |
+ |
initWidget( new ConstrainingSizeableOuterLayers( mHtmlPanel, "litesoft-DualImage", true, mHtmlPanel.getInnerTD() ) ); |
27 |
27 |
|
|
28 |
28 |
|
setUrl( pUrl ); |
29 |
29 |
|
setImageSize( 100, 100 ); |
|
@@ -190,8 +190,7 @@ |
190 |
190 |
|
super.setHeight( height ); |
191 |
191 |
|
} |
192 |
192 |
|
|
193 |
|
- |
public static class DelegatingLoadListenerCollection extends LoadListenerCollection |
194 |
|
- |
implements LoadListener |
|
193 |
+ |
public static class DelegatingLoadListenerCollection extends LoadListenerCollection implements LoadListener |
195 |
194 |
|
{ |
196 |
195 |
|
@SuppressWarnings({"GwtInconsistentSerializableClass"}) |
197 |
196 |
|
private final Widget owner; |
|
@@ -227,8 +226,7 @@ |
227 |
226 |
|
private static final String HIDDEN_PARENT_ID_PREFIX = "DIHI_"; |
228 |
227 |
|
private static final String DISPLAY_PARENT_ID_PREFIX = "DIVI_"; |
229 |
228 |
|
|
230 |
|
- |
private static final String TRANSPARENT_SPACER = |
231 |
|
- |
"<img width='1' height='1' src='" + TransparentImage.URL + "'>"; |
|
229 |
+ |
private static final String TRANSPARENT_SPACER = "<img width='1' height='1' src='" + TransparentImage.URL + "'>"; |
232 |
230 |
|
|
233 |
231 |
|
private OurImage mHiddenImage = new OurImage( TransparentImage.URL ); |
234 |
232 |
|
private OurImage mDisplayImage = new OurImage( TransparentImage.URL ); |
|
@@ -402,8 +400,7 @@ |
402 |
400 |
|
} |
403 |
401 |
|
catch ( NumberFormatException e ) |
404 |
402 |
|
{ |
405 |
|
- |
throw new IllegalArgumentException( |
406 |
|
- |
"Attempt to set" + pWhat + "( \"" + pValue + "\" ) on " + getClass().getName() ); |
|
403 |
+ |
throw new IllegalArgumentException( "Attempt to set" + pWhat + "( \"" + pValue + "\" ) on " + getClass().getName() ); |
407 |
404 |
|
} |
408 |
405 |
|
} |
409 |
406 |
|
|