refs 2521: Explore the possibility to port the StatMan interface onto Dataminer

https://support.d4science.org/issues/2521

Added Icons

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/data-miner-manager@128951 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2016-06-01 10:48:06 +00:00
parent 8173093749
commit 452eb0e782
15 changed files with 38 additions and 20 deletions

View File

@ -50,7 +50,7 @@ public class ComputationValueFilePanel extends SimpleContainer {
lc.add(fileNameHtml, new VerticalLayoutData(-1, -1, new Margins(0)));
TextButton downloadBtn = new TextButton("Download File");
downloadBtn.setIcon(DataMinerManager.resources.fileDownload());
downloadBtn.setIcon(DataMinerManager.resources.download());
downloadBtn.addSelectHandler(new SelectEvent.SelectHandler() {
@Override
public void onSelect(SelectEvent event) {

View File

@ -5,6 +5,7 @@ import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.gcube.portlets.user.dataminermanager.client.DataMinerManager;
import org.gcube.portlets.user.dataminermanager.client.common.EventBusProvider;
import org.gcube.portlets.user.dataminermanager.client.events.CancelExecutionFromComputationsRequestEvent;
import org.gcube.portlets.user.dataminermanager.client.events.ComputationDataRequestEvent;
@ -316,7 +317,7 @@ public class ComputationsExecutedPanel extends FramedPanel {
// ToolBar
btnShow = new TextButton("Show");
// btnOpen.setIcon(StatAlgoImporterResources.INSTANCE.download16());
btnShow.setIcon(DataMinerManager.resources.show());
btnShow.setScale(ButtonScale.SMALL);
btnShow.setIconAlign(IconAlign.LEFT);
btnShow.setToolTip("Show");
@ -330,7 +331,7 @@ public class ComputationsExecutedPanel extends FramedPanel {
});
btnDownload = new TextButton("Download");
// btnOpen.setIcon(StatAlgoImporterResources.INSTANCE.download16());
btnDownload.setIcon(DataMinerManager.resources.download());
btnDownload.setScale(ButtonScale.SMALL);
btnDownload.setIconAlign(IconAlign.LEFT);
btnDownload.setToolTip("Download");
@ -344,7 +345,7 @@ public class ComputationsExecutedPanel extends FramedPanel {
});
btnDelete = new TextButton("Delete");
// btnDelete.setIcon(StatAlgoImporterResources.INSTANCE.delete16());
btnDelete.setIcon(DataMinerManager.resources.deleteCircle());
btnDelete.setScale(ButtonScale.SMALL);
btnDelete.setIconAlign(IconAlign.LEFT);
btnDelete.setToolTip("Delete");
@ -358,7 +359,7 @@ public class ComputationsExecutedPanel extends FramedPanel {
});
btnRefresh = new TextButton("Refresh");
// btnRefresh.setIcon(StatAlgoImporterResources.INSTANCE.reload16());
btnRefresh.setIcon(DataMinerManager.resources.refresh());
btnRefresh.setScale(ButtonScale.SMALL);
btnRefresh.setIconAlign(IconAlign.LEFT);
btnRefresh.setToolTip("Refresh");
@ -372,7 +373,7 @@ public class ComputationsExecutedPanel extends FramedPanel {
});
btnResubmit = new TextButton("Resubmit");
// btnResubmit.setIcon(StatAlgoImporterResources.INSTANCE.reload16());
btnResubmit.setIcon(DataMinerManager.resources.resubmit());
btnResubmit.setScale(ButtonScale.SMALL);
btnResubmit.setIconAlign(IconAlign.LEFT);
btnResubmit.setToolTip("Resubmit");
@ -386,7 +387,7 @@ public class ComputationsExecutedPanel extends FramedPanel {
});
btnCancel = new TextButton("Cancel");
// btnCancel.setIcon(StatAlgoImporterResources.INSTANCE.reload16());
btnCancel.setIcon(DataMinerManager.resources.cancelCircle());
btnCancel.setScale(ButtonScale.SMALL);
btnCancel.setIconAlign(IconAlign.LEFT);
btnCancel.setToolTip("Cancel");

View File

@ -5,6 +5,7 @@ import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.gcube.portlets.user.dataminermanager.client.DataMinerManager;
import org.gcube.portlets.user.dataminermanager.client.common.EventBusProvider;
import org.gcube.portlets.user.dataminermanager.client.events.DataMinerWorkAreaEvent;
import org.gcube.portlets.user.dataminermanager.client.events.DeleteItemRequestEvent;
@ -302,7 +303,7 @@ public class InputDataSetsPanel extends FramedPanel {
// ToolBar
btnDownload = new TextButton("Download");
// btnOpen.setIcon(StatAlgoImporterResources.INSTANCE.download16());
btnDownload.setIcon(DataMinerManager.resources.download());
btnDownload.setScale(ButtonScale.SMALL);
btnDownload.setIconAlign(IconAlign.LEFT);
btnDownload.setToolTip("Download");
@ -316,7 +317,7 @@ public class InputDataSetsPanel extends FramedPanel {
});
btnDelete = new TextButton("Delete");
// btnDelete.setIcon(StatAlgoImporterResources.INSTANCE.delete16());
btnDelete.setIcon(DataMinerManager.resources.deleteCircle());
btnDelete.setScale(ButtonScale.SMALL);
btnDelete.setIconAlign(IconAlign.LEFT);
btnDelete.setToolTip("Delete");
@ -330,7 +331,7 @@ public class InputDataSetsPanel extends FramedPanel {
});
btnRefresh = new TextButton("Refresh");
// btnRefresh.setIcon(StatAlgoImporterResources.INSTANCE.reload16());
btnRefresh.setIcon(DataMinerManager.resources.refresh());
btnRefresh.setScale(ButtonScale.SMALL);
btnRefresh.setIconAlign(IconAlign.LEFT);
btnRefresh.setToolTip("Refresh");

View File

@ -5,6 +5,7 @@ import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.gcube.portlets.user.dataminermanager.client.DataMinerManager;
import org.gcube.portlets.user.dataminermanager.client.common.EventBusProvider;
import org.gcube.portlets.user.dataminermanager.client.events.DataMinerWorkAreaEvent;
import org.gcube.portlets.user.dataminermanager.client.events.DeleteItemRequestEvent;
@ -301,7 +302,7 @@ public class OutputDataSetsPanel extends FramedPanel {
// ToolBar
btnDownload = new TextButton("Download");
// btnOpen.setIcon(StatAlgoImporterResources.INSTANCE.download16());
btnDownload.setIcon(DataMinerManager.resources.download());
btnDownload.setScale(ButtonScale.SMALL);
btnDownload.setIconAlign(IconAlign.LEFT);
btnDownload.setToolTip("Download");
@ -315,7 +316,7 @@ public class OutputDataSetsPanel extends FramedPanel {
});
btnDelete = new TextButton("Delete");
// btnDelete.setIcon(StatAlgoImporterResources.INSTANCE.delete16());
btnDelete.setIcon(DataMinerManager.resources.deleteCircle());
btnDelete.setScale(ButtonScale.SMALL);
btnDelete.setIconAlign(IconAlign.LEFT);
btnDelete.setToolTip("Delete");
@ -329,7 +330,7 @@ public class OutputDataSetsPanel extends FramedPanel {
});
btnRefresh = new TextButton("Refresh");
// btnRefresh.setIcon(StatAlgoImporterResources.INSTANCE.reload16());
btnRefresh.setIcon(DataMinerManager.resources.refresh());
btnRefresh.setScale(ButtonScale.SMALL);
btnRefresh.setIconAlign(IconAlign.LEFT);
btnRefresh.setToolTip("Refresh");

View File

@ -179,7 +179,7 @@ public class FileFld extends AbstractFld {
});
downloadButton = new TextButton("");
downloadButton.setIcon(DataMinerManager.resources.fileDownload());
downloadButton.setIcon(DataMinerManager.resources.download());
downloadButton.addSelectHandler(new SelectEvent.SelectHandler() {
@Override

View File

@ -93,7 +93,7 @@ public class TabItem extends HBoxLayoutContainer {
downloadButton = new TextButton("");
downloadButton.setIcon(DataMinerManager.resources.fileDownload());
downloadButton.setIcon(DataMinerManager.resources.download());
downloadButton.addSelectHandler(new SelectEvent.SelectHandler() {
@Override

View File

@ -251,7 +251,7 @@ public class TabularFld extends AbstractFld implements
});
downloadButton = new TextButton("");
downloadButton.setIcon(DataMinerManager.resources.fileDownload());
downloadButton.setIcon(DataMinerManager.resources.download());
downloadButton.addSelectHandler(new SelectEvent.SelectHandler() {
@Override

View File

@ -59,9 +59,6 @@ public interface Resources extends ClientBundle {
@Source("menuItemDataspace.png")
ImageResource menuItemInputspace();
@Source("table.png")
ImageResource fileDownload(); // TODO change
@Source("ajax-loader-big.gif")
ImageResource loaderBig();
@ -77,4 +74,22 @@ public interface Resources extends ClientBundle {
@Source("monitor.png")
ImageResource computationPerspective();
@Source("download.png")
ImageResource download();
@Source("cancel_circle.png")
ImageResource cancelCircle();
@Source("delete_circle.png")
ImageResource deleteCircle();
@Source("refresh.png")
ImageResource refresh();
@Source("resubmit.png")
ImageResource resubmit();
@Source("show.png")
ImageResource show();
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 890 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 852 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 605 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 783 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 770 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 906 B

View File

@ -50,7 +50,7 @@ public class FileViewer extends SimpleContainer {
.toSafeHtml().asString() + "</p></div>");
lc.add(fileNameHtml, new VerticalLayoutData(-1, -1, new Margins(0)));
TextButton downloadBtn = new TextButton("Download File");
downloadBtn.setIcon(DataMinerManager.resources.fileDownload());
downloadBtn.setIcon(DataMinerManager.resources.download());
downloadBtn.addSelectHandler(new SelectEvent.SelectHandler() {
@Override
public void onSelect(SelectEvent event) {