Minor Update

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-table-widget@93050 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2014-03-13 13:47:24 +00:00 committed by Giancarlo Panichi
parent f1c5c46bcd
commit e6e9a8afd6
1 changed files with 15 additions and 3 deletions

View File

@ -139,7 +139,7 @@ public class DuplicatesRowsPanel extends FramedPanel {
deleteButton.addSelectHandler(deleteHandler);
// Validates Button
validatesButton = new TextButton("Validates");
validatesButton = new TextButton("Validate");
SelectHandler validatesHandler = new SelectHandler() {
public void onSelect(SelectEvent event) {
@ -202,7 +202,13 @@ public class DuplicatesRowsPanel extends FramedPanel {
}
protected void onDeleteDuplicate() {
duplicatesSession = new DuplicatesSession(trId, getSelectedItems(),
ArrayList<ColumnData> col=getSelectedItems();
if(col==null||col.size()<1){
alert("Attention",
"Attention no column selected!");
return;
}
duplicatesSession = new DuplicatesSession(trId, col,
DuplicatesSession.DuplicateOp.DELETE);
TDGWTServiceAsync.INSTANCE.startDuplicates(duplicatesSession,
@ -227,7 +233,13 @@ public class DuplicatesRowsPanel extends FramedPanel {
protected void onValidatesDuplicate() {
duplicatesSession = new DuplicatesSession(trId, getSelectedItems(),
ArrayList<ColumnData> col=getSelectedItems();
if(col==null||col.size()<1){
alert("Attention",
"Attention no column selected!");
return;
}
duplicatesSession = new DuplicatesSession(trId, col,
DuplicatesSession.DuplicateOp.VALIDATE);
TDGWTServiceAsync.INSTANCE.startDuplicates(duplicatesSession,