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