bugs fixed for sample operations and submitquery. Button name changed from "show create table" to table details.

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/databases-manager-portlet@98501 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Loredana Liccardo 2014-07-08 15:53:15 +00:00
parent ffd58356c3
commit 850d3ecda9
4 changed files with 10 additions and 6 deletions

View File

@ -45,9 +45,11 @@ public class Row extends BaseModelData implements Serializable {
//
// }
public Row(List<String> attributes, List<String> values) {
public Row(List<String> attributes, List<String> values, int index) {
set("index", ID++);
// set("index", ID++);
set("index", index);
// System.out.println("setting Row value");

View File

@ -90,7 +90,7 @@ public class GxtToolbarFunctionality {
// toolBar.add(btnGetInfo);
// Button to get the "show create table"
btnShowCreateTable = new Button(ConstantsPortlet.SHOWCREATETABLE);
btnShowCreateTable = new Button(ConstantsPortlet.TABLEDETAILS);
btnShowCreateTable.setScale(ButtonScale.SMALL);
btnShowCreateTable.setArrowAlign(ButtonArrowAlign.BOTTOM);
toolBar.add(btnShowCreateTable);
@ -170,7 +170,7 @@ public class GxtToolbarFunctionality {
// System.out.println("button OK event");
dialog.mask("Loading", "x-mask-loading");
// dialog.mask("Loading", "x-mask-loading");
// dialog.hide();
@ -456,6 +456,8 @@ public class GxtToolbarFunctionality {
MessageBox.alert("Warning", "Query field null", null);
} else {
dialog.mask("Loading", "x-mask-loading");
eventBus.fireEvent(new SubmitQueryEvent());
}

View File

@ -9,7 +9,7 @@ public class ConstantsPortlet {
//Toolbar button
public static final String SUBMITQUERY = "Submit Query";
public static final String GETINFO = "Get Info";
public static final String SHOWCREATETABLE = "Show Create Table";
public static final String TABLEDETAILS = "Table Details";
// public static final String SIMPLESAMPLE = "Simple Sample";
// public static final String SMARTSAMPLE = "Smart Sample";
// public static final String RANDOMSAMPLE = "Random Sample";

View File

@ -835,7 +835,7 @@ public class GWTdbManagerServiceImpl extends RemoteServiceServlet implements
List<String> attrValues = parse(result.get(i).getValue());
Row element = new Row(attrNames, attrValues);
Row element = new Row(attrNames, attrValues, i);
rows.add(element);