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(
|
HTML errorMessage = new HTML(
|
||||||
"This type of column is not supported for now!");
|
"This type of column is not supported for now!");
|
||||||
add(errorMessage);
|
add(errorMessage);
|
||||||
AlertMessageBox d = new AlertMessageBox("Error",
|
alert("Error",
|
||||||
"This type of column is not supported for now!");
|
"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) {
|
public void onFailure(Throwable caught) {
|
||||||
Log.error("Error retrieving column: "
|
Log.error("Error retrieving column: "
|
||||||
+ caught.getMessage());
|
+ caught.getMessage());
|
||||||
AlertMessageBox d = new AlertMessageBox(
|
alert("Error retrieving column", caught.getMessage());
|
||||||
"Error retrieving column", caught.getMessage());
|
|
||||||
d.addHideHandler(new HideHandler() {
|
|
||||||
public void onHide(HideEvent event) {
|
|
||||||
hide();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
d.show();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onSuccess(ColumnData result) {
|
public void onSuccess(ColumnData result) {
|
||||||
|
@ -166,15 +153,8 @@ public class ColumnFilterDialog extends Window {
|
||||||
Log.error("Error submitting the column filter: "
|
Log.error("Error submitting the column filter: "
|
||||||
+ caught.getMessage()+ " "+caught.getCause());
|
+ caught.getMessage()+ " "+caught.getCause());
|
||||||
caught.printStackTrace();
|
caught.printStackTrace();
|
||||||
AlertMessageBox d = new AlertMessageBox(
|
alert("Error submitting the column filter", caught
|
||||||
"Error submitting the column filter", caught
|
|
||||||
.getMessage());
|
.getMessage());
|
||||||
d.addHideHandler(new HideHandler() {
|
|
||||||
public void onHide(HideEvent event) {
|
|
||||||
hide();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
d.show();
|
|
||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -186,4 +166,15 @@ public class ColumnFilterDialog extends Window {
|
||||||
dialog.show();
|
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