45 lines
1001 B
Java
45 lines
1001 B
Java
package org.gcube.portlets.user.reportgenerator.client.dialog;
|
|
|
|
import com.google.gwt.core.client.GWT;
|
|
import com.google.gwt.event.dom.client.ClickEvent;
|
|
import com.google.gwt.event.dom.client.ClickHandler;
|
|
import com.google.gwt.user.client.ui.ClickListener;
|
|
import com.google.gwt.user.client.ui.DialogBox;
|
|
import com.google.gwt.user.client.ui.HTML;
|
|
import com.google.gwt.user.client.ui.Widget;
|
|
|
|
|
|
/**
|
|
* @author massimiliano.assante@isti.cnr.it
|
|
*
|
|
*/
|
|
public class LoadingPopup extends DialogBox implements ClickHandler {
|
|
|
|
/**
|
|
* @param autoHide auto hide
|
|
*/
|
|
public LoadingPopup(boolean autoHide) {
|
|
super(false);
|
|
HTML msg = new HTML(setToDisplay(), true);
|
|
setWidget(msg);
|
|
}
|
|
|
|
|
|
/**
|
|
* @return inner html
|
|
*/
|
|
protected static String setToDisplay() {
|
|
return
|
|
"<center><table border=\"0\">"+
|
|
"<tr>"+
|
|
"<td>"+
|
|
"<img src=\""+GWT.getModuleBaseURL()+"../images/book_load.gif\" >"+
|
|
"</td></tr>"+
|
|
"</table></center>" ;
|
|
}
|
|
|
|
public void onClick(ClickEvent event) {
|
|
hide();
|
|
|
|
}
|
|
} |