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
|
|
|
/**
|
|
|
|
*
|
2016-06-13 18:26:53 +02:00
|
|
|
* @author Giancarlo Panichi email: <a
|
|
|
|
* href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
2016-05-26 17:50:06 +02:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
public class GWTMessages {
|
2016-06-13 18:26:53 +02:00
|
|
|
|
2016-05-26 17:50:06 +02:00
|
|
|
public static void alert(String title, String text) {
|
|
|
|
AlertDialog alertDialgo = new AlertDialog(title, text);
|
|
|
|
alertDialgo.show();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2016-06-13 18:26:53 +02:00
|
|
|
public static void alert(String title, String text,
|
|
|
|
Callback<Void, Void> callback) {
|
|
|
|
AlertDialog alertDialgo = new AlertDialog(title, text, callback);
|
|
|
|
alertDialgo.show();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2016-05-26 17:50:06 +02:00
|
|
|
}
|