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
This commit is contained in:
Loredana Liccardo 2014-07-15 15:50:10 +00:00
parent b4be82e177
commit 6d73c91b9b
1 changed files with 69 additions and 68 deletions

View File

@ -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<MessageBoxEvent> l = new Listener<MessageBoxEvent>() {
@Override
public void handleEvent(MessageBoxEvent be) {
// TODO Auto-generated method stub
Button btn = be.getButtonClicked();
if (btn.getText().equals("Yes")) {
// Listener<MessageBoxEvent> l = new Listener<MessageBoxEvent>() {
//
// @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<MessageBoxEvent> l = new Listener<MessageBoxEvent>() {
@Override
public void handleEvent(MessageBoxEvent be) {
// TODO Auto-generated method stub
Button btn = be.getButtonClicked();
if (btn.getText().equals("Yes")) {
// Listener<MessageBoxEvent> l = new Listener<MessageBoxEvent>() {
//
// @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<MessageBoxEvent> l = new Listener<MessageBoxEvent>() {
@Override
public void handleEvent(MessageBoxEvent be) {
// TODO Auto-generated method stub
Button btn = be.getButtonClicked();
if (btn.getText().equals("Yes")) {
// Listener<MessageBoxEvent> l = new Listener<MessageBoxEvent>() {
//
// @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<MessageBoxEvent> l = new Listener<MessageBoxEvent>() {
@Override
public void handleEvent(MessageBoxEvent be) {
// TODO Auto-generated method stub
Button btn = be.getButtonClicked();
if (btn.getText().equals("Yes")) {
}
else {
//
// Listener<MessageBoxEvent> l = new Listener<MessageBoxEvent>() {
//
// @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,