Minor Update
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-portlet@112018 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
5532e25b53
commit
5f2a775f0b
|
@ -62,9 +62,15 @@ public interface TabularDataResources extends ClientBundle {
|
|||
|
||||
@Source("csv.png")
|
||||
ImageResource csv();
|
||||
|
||||
@Source("csv_32.png")
|
||||
ImageResource csv32();
|
||||
|
||||
@Source("json.png")
|
||||
ImageResource json();
|
||||
|
||||
@Source("json_32.png")
|
||||
ImageResource json32();
|
||||
|
||||
@Source("chart-bar.png")
|
||||
ImageResource chart();
|
||||
|
|
|
@ -213,16 +213,19 @@ public class FileToolBar {
|
|||
importLayout.getFlexCellFormatter().setRowSpan(0, 0, 2);
|
||||
|
||||
importCSVButton = new TextButton("CSV",
|
||||
TabularDataResources.INSTANCE.csv());
|
||||
TabularDataResources.INSTANCE.csv32());
|
||||
importCSVButton.setScale(ButtonScale.LARGE);
|
||||
importCSVButton.setIconAlign(IconAlign.TOP);
|
||||
importCSVButton.setToolTip("Import table from CSV source");
|
||||
importCSVButton.setArrowAlign(ButtonArrowAlign.BOTTOM);
|
||||
importCSVButton.addSelectHandler(new SelectHandler() {
|
||||
|
||||
public void onSelect(SelectEvent event) {
|
||||
eventBus.fireEvent(new RibbonEvent(RibbonType.IMPORT_CSV));
|
||||
}
|
||||
});
|
||||
importLayout.setWidget(0, 2, importCSVButton);
|
||||
|
||||
importLayout.setWidget(0, 1, importCSVButton);
|
||||
importLayout.getFlexCellFormatter().setRowSpan(0, 1, 2);
|
||||
|
||||
/*
|
||||
importJSONButton = new TextButton("JSON",
|
||||
|
@ -235,7 +238,7 @@ public class FileToolBar {
|
|||
eventBus.fireEvent(new RibbonEvent(RibbonType.IMPORT_JSON));
|
||||
}
|
||||
});
|
||||
importLayout.setWidget(1, 2, importJSONButton);
|
||||
importLayout.setWidget(1, 1, importJSONButton);
|
||||
*/
|
||||
|
||||
cleanCells(importLayout.getElement());
|
||||
|
|
Loading…
Reference in New Issue