litesoft
Diff Revisions
527
vs
528
for /trunk/GWT_Sandbox/Upload/src/org/litesoft/sandbox/csapp/client/widgets/UploadWidget.java
|
@@ -147,12 +147,12 @@ |
147 |
147 |
|
formPanel.setAction( servletPath ); |
148 |
148 |
|
formPanel.submit(); |
149 |
149 |
|
enableWidgets( false ); |
|
150 |
+ |
showBusy(); |
150 |
151 |
|
} |
151 |
152 |
|
|
152 |
|
- |
|
153 |
|
- |
|
154 |
153 |
|
private void submitResponse( String pHtmlResponse ) |
155 |
154 |
|
{ |
|
155 |
+ |
hideBusy(); |
156 |
156 |
|
// Truly Bad Url: |
157 |
157 |
|
// null |
158 |
158 |
|
|
|
@@ -246,4 +246,32 @@ |
246 |
246 |
|
style.setOpacity( 0 ); // Tested w/ FireFox & IE8! |
247 |
247 |
|
return upload; |
248 |
248 |
|
} |
|
249 |
+ |
|
|
250 |
+ |
protected void hideBusy() |
|
251 |
+ |
{ |
|
252 |
+ |
busyPopup.hide(); |
|
253 |
+ |
busyPopup = null; |
|
254 |
+ |
} |
|
255 |
+ |
|
|
256 |
+ |
protected void showBusy() |
|
257 |
+ |
{ |
|
258 |
+ |
if ( busyPopup == null ) |
|
259 |
+ |
{ |
|
260 |
+ |
busyPopup = new OurBusyPopup(); |
|
261 |
+ |
} |
|
262 |
+ |
busyPopup.show(); |
|
263 |
+ |
} |
|
264 |
+ |
|
|
265 |
+ |
private OurBusyPopup busyPopup; |
|
266 |
+ |
|
|
267 |
+ |
private class OurBusyPopup extends PopupPanel |
|
268 |
+ |
{ |
|
269 |
+ |
private OurBusyPopup() |
|
270 |
+ |
{ |
|
271 |
+ |
setModal( true ); |
|
272 |
+ |
setGlassEnabled( true ); |
|
273 |
+ |
getGlassElement().getStyle().setOpacity( 0.5 ); |
|
274 |
+ |
setWidget( new Image( "common/Money.gif" ) ); |
|
275 |
+ |
} |
|
276 |
+ |
} |
249 |
277 |
|
} |