Minor updated
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-portlet@87232 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
e9f8133911
commit
e98d1375f5
|
@ -13,9 +13,6 @@
|
|||
<dependent-module archiveName="tabular-data-gwt-service-2.0.0-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/tabular-data-gwt-service/tabular-data-gwt-service">
|
||||
<dependency-type>uses</dependency-type>
|
||||
</dependent-module>
|
||||
<dependent-module archiveName="tabular-data-tasks-widget-1.0.0-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/tabular-data-tasks-widget/tabular-data-tasks-widget">
|
||||
<dependency-type>uses</dependency-type>
|
||||
</dependent-module>
|
||||
<property name="context-root" value="tabular-data-portlet"/>
|
||||
<property name="java-output-path" value="/tabular-data-portlet/target/tabular-data-portlet-2.0.0-SNAPSHOT/WEB-INF/classes"/>
|
||||
</wb-module>
|
||||
|
|
|
@ -26,6 +26,12 @@ public interface TabularDataResources extends ClientBundle {
|
|||
@Source("page-white-close.png")
|
||||
ImageResource close();
|
||||
|
||||
@Source("page-white-share_32.png")
|
||||
ImageResource share32();
|
||||
|
||||
@Source("page-white-share.png")
|
||||
ImageResource share();
|
||||
|
||||
@Source("disk.png")
|
||||
ImageResource save();
|
||||
|
||||
|
|
|
@ -36,8 +36,9 @@ public class FileToolBar {
|
|||
protected ToolBar toolBar;
|
||||
|
||||
protected TextButton openButton;
|
||||
protected TextButton deleteButton;
|
||||
protected TextButton closeButton;
|
||||
protected TextButton shareButton;
|
||||
protected TextButton deleteButton;
|
||||
protected TextButton propertiesButton;
|
||||
|
||||
protected TextButton importCSVButton;
|
||||
|
@ -114,13 +115,34 @@ public class FileToolBar {
|
|||
dataLayout.setWidget(0, 1, closeButton);
|
||||
dataLayout.getFlexCellFormatter().setRowSpan(0, 1, 2);
|
||||
|
||||
shareButton = new TextButton("Share",
|
||||
TabularDataResources.INSTANCE.close32());
|
||||
shareButton.disable();
|
||||
shareButton.setId("shareButton");
|
||||
shareButton.setScale(ButtonScale.LARGE);
|
||||
shareButton.setIconAlign(IconAlign.TOP);
|
||||
shareButton.setArrowAlign(ButtonArrowAlign.BOTTOM);
|
||||
shareButton.setToolTip("Share Tabular Resource");
|
||||
|
||||
shareButton.addSelectHandler(new SelectHandler() {
|
||||
|
||||
public void onSelect(SelectEvent event) {
|
||||
eventBus.fireEvent(new RibbonEvent(RibbonType.SHARE));
|
||||
}
|
||||
});
|
||||
|
||||
dataLayout.setWidget(0, 2, shareButton);
|
||||
dataLayout.getFlexCellFormatter().setRowSpan(0, 2, 2);
|
||||
|
||||
|
||||
|
||||
deleteButton = new TextButton("Delete",
|
||||
TabularDataResources.INSTANCE.delete());
|
||||
deleteButton.disable();
|
||||
deleteButton.setId("closeButton");
|
||||
deleteButton.setToolTip("Delete Tabular Resource");
|
||||
|
||||
dataLayout.setWidget(0, 2, deleteButton);
|
||||
dataLayout.setWidget(0, 3, deleteButton);
|
||||
deleteButton.addSelectHandler(new SelectHandler() {
|
||||
|
||||
public void onSelect(SelectEvent event) {
|
||||
|
@ -134,7 +156,7 @@ public class FileToolBar {
|
|||
propertiesButton.setId("propertiesButton");
|
||||
propertiesButton.setToolTip("Show properties");
|
||||
|
||||
dataLayout.setWidget(1, 2, propertiesButton);
|
||||
dataLayout.setWidget(1, 3, propertiesButton);
|
||||
propertiesButton.addSelectHandler(new SelectHandler() {
|
||||
|
||||
public void onSelect(SelectEvent event) {
|
||||
|
@ -336,6 +358,7 @@ public class FileToolBar {
|
|||
case START:
|
||||
openButton.enable();
|
||||
closeButton.disable();
|
||||
shareButton.disable();
|
||||
deleteButton.disable();
|
||||
propertiesButton.disable();
|
||||
importCSVButton.enable();
|
||||
|
@ -350,6 +373,7 @@ public class FileToolBar {
|
|||
case TR_CLOSE:
|
||||
openButton.enable();
|
||||
closeButton.disable();
|
||||
shareButton.disable();
|
||||
deleteButton.disable();
|
||||
propertiesButton.disable();
|
||||
importCSVButton.enable();
|
||||
|
@ -364,6 +388,7 @@ public class FileToolBar {
|
|||
case TR_OPEN:
|
||||
openButton.enable();
|
||||
closeButton.enable();
|
||||
shareButton.disable();
|
||||
deleteButton.enable();
|
||||
propertiesButton.enable();
|
||||
importCSVButton.enable();
|
||||
|
@ -383,6 +408,7 @@ public class FileToolBar {
|
|||
case WIZARD_OPEN:
|
||||
openButton.disable();
|
||||
closeButton.disable();
|
||||
shareButton.disable();
|
||||
deleteButton.disable();
|
||||
propertiesButton.disable();
|
||||
importCSVButton.disable();
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 830 B |
Binary file not shown.
After Width: | Height: | Size: 1.7 KiB |
Loading…
Reference in New Issue