From 6d73c91b9b10c870e9294a5a362967f4c49c0b5c Mon Sep 17 00:00:00 2001 From: Loredana Liccardo Date: Tue, 15 Jul 2014 15:50:10 +0000 Subject: [PATCH] MessageBox Confirm removed in TableDetails e Sampling operations git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/databases-manager-portlet@98657 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../client/panels/GxtBorderLayoutPanel.java | 137 +++++++++--------- 1 file changed, 69 insertions(+), 68 deletions(-) diff --git a/src/main/java/org/gcube/portlets/user/databasesmanager/client/panels/GxtBorderLayoutPanel.java b/src/main/java/org/gcube/portlets/user/databasesmanager/client/panels/GxtBorderLayoutPanel.java index 408b4a8..96396f1 100644 --- a/src/main/java/org/gcube/portlets/user/databasesmanager/client/panels/GxtBorderLayoutPanel.java +++ b/src/main/java/org/gcube/portlets/user/databasesmanager/client/panels/GxtBorderLayoutPanel.java @@ -1564,7 +1564,7 @@ public class GxtBorderLayoutPanel extends ContentPanel { // the table has not a schema // database = treePanel.getTreeStore().getParent(selectedItem); - // resource = treePanel.getTreeStore().getParent(database); + // resource = treePanel.getTreeStore().getmessageParent(database); // // dataInput.put("ResourceName", resource.getName()); // dataInput.put("DatabaseName", database.getName()); @@ -1649,15 +1649,15 @@ public class GxtBorderLayoutPanel extends ContentPanel { // // selectedItem.getName()); // } - Listener l = new Listener() { - - @Override - public void handleEvent(MessageBoxEvent be) { - // TODO Auto-generated method stub - - Button btn = be.getButtonClicked(); - - if (btn.getText().equals("Yes")) { +// Listener l = new Listener() { +// +// @Override +// public void handleEvent(MessageBoxEvent be) { +// // TODO Auto-generated method stub +// +// Button btn = be.getButtonClicked(); +// +// if (btn.getText().equals("Yes")) { // to mask the entire content panel obj.mask("Sampling the table", "x-mask-loading"); @@ -1714,14 +1714,14 @@ public class GxtBorderLayoutPanel extends ContentPanel { }); - } +// } +// +// } +// +// }; - } - - }; - - MessageBox.confirm("Confirm", "Are you sure you want to sample the " - + selectedTable + " table?", l); +// MessageBox.confirm("Confirm", "Are you sure you want to sample the " +// + selectedTable + " table?", l); } @@ -1904,14 +1904,14 @@ public class GxtBorderLayoutPanel extends ContentPanel { // // selectedItem.getName()); // } - Listener l = new Listener() { - - @Override - public void handleEvent(MessageBoxEvent be) { - // TODO Auto-generated method stub - Button btn = be.getButtonClicked(); - - if (btn.getText().equals("Yes")) { +// Listener l = new Listener() { +// +// @Override +// public void handleEvent(MessageBoxEvent be) { +// // TODO Auto-generated method stub +// Button btn = be.getButtonClicked(); +// +// if (btn.getText().equals("Yes")) { // to mask the entire content panel obj.mask("Sampling the table", "x-mask-loading"); @@ -1968,14 +1968,14 @@ public class GxtBorderLayoutPanel extends ContentPanel { }); - } - - } - - }; - - MessageBox.confirm("Confirm", "Are you sure you want to sample the " - + selectedTable + " table?", l); +// } +// +// } +// +// }; +// +// MessageBox.confirm("Confirm", "Are you sure you want to sample the " +// + selectedTable + " table?", l); } @@ -2158,15 +2158,15 @@ public class GxtBorderLayoutPanel extends ContentPanel { // // selectedItem.getName()); // } - Listener l = new Listener() { - - @Override - public void handleEvent(MessageBoxEvent be) { - // TODO Auto-generated method stub - - Button btn = be.getButtonClicked(); - - if (btn.getText().equals("Yes")) { +// Listener l = new Listener() { +// +// @Override +// public void handleEvent(MessageBoxEvent be) { +// // TODO Auto-generated method stub +// +// Button btn = be.getButtonClicked(); +// +// if (btn.getText().equals("Yes")) { // to mask the entire content panel obj.mask("Sampling the table", "x-mask-loading"); @@ -2223,14 +2223,14 @@ public class GxtBorderLayoutPanel extends ContentPanel { }); - } +// } +// +// } +// +// }; - } - - }; - - MessageBox.confirm("Confirm", "Are you sure you want to sample the " - + selectedTable + " table?", l); +// MessageBox.confirm("Confirm", "Are you sure you want to sample the " +// + selectedTable + " table?", l); } @@ -2804,17 +2804,18 @@ public class GxtBorderLayoutPanel extends ContentPanel { displayTableDetails(Table); - } else { - - Listener l = new Listener() { - - @Override - public void handleEvent(MessageBoxEvent be) { - // TODO Auto-generated method stub - - Button btn = be.getButtonClicked(); - - if (btn.getText().equals("Yes")) { + } + else { +// +// Listener l = new Listener() { +// +// @Override +// public void handleEvent(MessageBoxEvent be) { +// // TODO Auto-generated method stub +// +// Button btn = be.getButtonClicked(); +// +// if (btn.getText().equals("Yes")) { // to mask the entire content panel @@ -2958,15 +2959,15 @@ public class GxtBorderLayoutPanel extends ContentPanel { } }); - } +// } +// +// } +// +// }; - } - - }; - - MessageBox.confirm("Confirm", - "Are you sure you want to get details for " + selectedTable - + " table?", l); +// MessageBox.confirm("Confirm", +// "Are you sure you want to get details for " + selectedTable +// + " table?", l); // // call remote service // RPCservice.getTableDetails(dataInput,