Minor Update
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-expression-widget@93099 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
5b2e4b7ffb
commit
7a7a3168e6
|
@ -92,14 +92,8 @@ public class ColumnFilterDialog extends Window {
|
|||
HTML errorMessage = new HTML(
|
||||
"This type of column is not supported for now!");
|
||||
add(errorMessage);
|
||||
AlertMessageBox d = new AlertMessageBox("Error",
|
||||
alert("Error",
|
||||
"This type of column is not supported for now!");
|
||||
d.addHideHandler(new HideHandler() {
|
||||
public void onHide(HideEvent event) {
|
||||
hide();
|
||||
}
|
||||
});
|
||||
d.show();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -128,14 +122,7 @@ public class ColumnFilterDialog extends Window {
|
|||
public void onFailure(Throwable caught) {
|
||||
Log.error("Error retrieving column: "
|
||||
+ caught.getMessage());
|
||||
AlertMessageBox d = new AlertMessageBox(
|
||||
"Error retrieving column", caught.getMessage());
|
||||
d.addHideHandler(new HideHandler() {
|
||||
public void onHide(HideEvent event) {
|
||||
hide();
|
||||
}
|
||||
});
|
||||
d.show();
|
||||
alert("Error retrieving column", caught.getMessage());
|
||||
}
|
||||
|
||||
public void onSuccess(ColumnData result) {
|
||||
|
@ -166,15 +153,8 @@ public class ColumnFilterDialog extends Window {
|
|||
Log.error("Error submitting the column filter: "
|
||||
+ caught.getMessage()+ " "+caught.getCause());
|
||||
caught.printStackTrace();
|
||||
AlertMessageBox d = new AlertMessageBox(
|
||||
"Error submitting the column filter", caught
|
||||
alert("Error submitting the column filter", caught
|
||||
.getMessage());
|
||||
d.addHideHandler(new HideHandler() {
|
||||
public void onHide(HideEvent event) {
|
||||
hide();
|
||||
}
|
||||
});
|
||||
d.show();
|
||||
|
||||
}
|
||||
});
|
||||
|
@ -185,5 +165,16 @@ public class ColumnFilterDialog extends Window {
|
|||
dialog = new ColumnFilterProgressDialog(this, eventBus);
|
||||
dialog.show();
|
||||
}
|
||||
|
||||
protected void alert(String title, String message) {
|
||||
final AlertMessageBox d = new AlertMessageBox(title, message);
|
||||
d.addHideHandler(new HideHandler() {
|
||||
|
||||
public void onHide(HideEvent event) {
|
||||
|
||||
}
|
||||
});
|
||||
d.show();
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue