2016-05-26 17:50:06 +02:00
|
|
|
package org.gcube.portlets.widgets.githubconnector.client.util;
|
|
|
|
|
2016-06-13 18:26:53 +02:00
|
|
|
import com.google.gwt.core.client.Callback;
|
|
|
|
|
2016-05-26 17:50:06 +02:00
|
|
|
/**
|
|
|
|
*
|
2017-05-12 17:38:47 +02:00
|
|
|
* @author Giancarlo Panichi
|
|
|
|
*
|
2016-05-26 17:50:06 +02:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
public class GWTMessages {
|
2016-06-13 18:26:53 +02:00
|
|
|
|
2016-06-30 18:05:17 +02:00
|
|
|
public static void alert(String title, String text, int zIndex) {
|
|
|
|
AlertDialog alertDialog = new AlertDialog(title, text, zIndex);
|
|
|
|
|
|
|
|
alertDialog.show();
|
2016-05-26 17:50:06 +02:00
|
|
|
|
|
|
|
}
|
|
|
|
|
2016-06-30 18:05:17 +02:00
|
|
|
public static void alert(String title, String text,int zIndex,
|
2016-06-13 18:26:53 +02:00
|
|
|
Callback<Void, Void> callback) {
|
2016-06-30 18:05:17 +02:00
|
|
|
AlertDialog alertDialog = new AlertDialog(title, text, zIndex, callback);
|
|
|
|
alertDialog.show();
|
2016-06-13 18:26:53 +02:00
|
|
|
|
|
|
|
}
|
|
|
|
|
2016-05-26 17:50:06 +02:00
|
|
|
}
|