added tooltips on the buttons defined in the bottom toolbar in class GxtToolbarFunctionality

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/databases-manager-portlet@98899 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Loredana Liccardo 2014-07-23 11:03:40 +00:00
parent 1c4202215f
commit a6e4f7eb61
1 changed files with 6 additions and 0 deletions

View File

@ -75,6 +75,7 @@ public class GxtToolbarFunctionality {
// btnSubmitQuery.setIcon(Resources.ICONS.text());
btnTablesList.setScale(ButtonScale.SMALL);
btnTablesList.setArrowAlign(ButtonArrowAlign.BOTTOM);
btnTablesList.setToolTip("returns the list of tables contained in the database schema");
toolBar.add(btnTablesList);
// Button for Submit Query
@ -82,6 +83,7 @@ public class GxtToolbarFunctionality {
// btnSubmitQuery.setIcon(Resources.ICONS.text());
btnSubmitQuery.setScale(ButtonScale.SMALL);
btnSubmitQuery.setArrowAlign(ButtonArrowAlign.BOTTOM);
btnSubmitQuery.setToolTip("allows to submit a query to the selected database");
toolBar.add(btnSubmitQuery);
// // Button to get information about a database
@ -94,6 +96,7 @@ public class GxtToolbarFunctionality {
btnShowCreateTable = new Button(ConstantsPortlet.TABLEDETAILS);
btnShowCreateTable.setScale(ButtonScale.SMALL);
btnShowCreateTable.setArrowAlign(ButtonArrowAlign.BOTTOM);
btnShowCreateTable.setToolTip("gets information about the selected table, e.g. create statement, number of rows, columns names");
toolBar.add(btnShowCreateTable);
toolBar.add(new SeparatorToolItem());
@ -101,18 +104,21 @@ public class GxtToolbarFunctionality {
btnSimpleSample = new Button(ConstantsPortlet.SAMPLING);
btnSimpleSample.setScale(ButtonScale.SMALL);
btnSimpleSample.setArrowAlign(ButtonArrowAlign.BOTTOM);
btnSimpleSample.setToolTip("retrieves the first 100 rows of the table");
toolBar.add(btnSimpleSample);
// Button for Smart Sample
btnSmartSample = new Button(ConstantsPortlet.SMARTSAMPLING);
btnSmartSample.setScale(ButtonScale.SMALL);
btnSmartSample.setArrowAlign(ButtonArrowAlign.BOTTOM);
btnSmartSample.setToolTip("retrieves the first 100 rows of the table, maximising the number of non empty columns");
toolBar.add(btnSmartSample);
// button for Random Sample
btnRandomSample = new Button(ConstantsPortlet.RANDOMSAMPLING);
btnRandomSample.setScale(ButtonScale.SMALL);
btnRandomSample.setArrowAlign(ButtonArrowAlign.BOTTOM);
btnRandomSample.setToolTip("retrieves 100 randomly picked rows from the table");
toolBar.add(btnRandomSample);
// add(toolBar, new FlowData(10));