2016-07-20 18:34:49 +02:00
|
|
|
package org.gcube.portlets.widgets.openlayerbasicwidgets.client.util;
|
|
|
|
|
|
|
|
import com.google.gwt.core.client.Callback;
|
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
2017-05-12 14:56:53 +02:00
|
|
|
* @author Giancarlo Panichi
|
|
|
|
*
|
2016-07-20 18:34:49 +02:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
public class GWTMessages {
|
|
|
|
|
|
|
|
public static void alert(String title, String text, int zIndex) {
|
|
|
|
AlertDialog alertDialog = new AlertDialog(title, text, zIndex);
|
|
|
|
|
|
|
|
alertDialog.show();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
public static void alert(String title, String text,int zIndex,
|
|
|
|
Callback<Void, Void> callback) {
|
|
|
|
AlertDialog alertDialog = new AlertDialog(title, text, zIndex, callback);
|
|
|
|
alertDialog.show();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|