Mercurial > hg > STI-GWT
changeset 11:f0365f1b90ec
- added new link to DARIAH datasheet editor
- added clear data link to http://dev2.dariah.eu/e4d/
git-svn-id: http://dev.dariah.eu/svn/repos/eu.dariah.de/ap1/sti-gwt-dariah-geobrowser@94 f2b5be40-def6-11e0-8a09-b3c1cc336c6b
author | StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b> |
---|---|
date | Wed, 12 Sep 2012 10:24:10 +0000 |
parents | bcc91da76221 |
children | a6cc5a811984 |
files | src/econnect/wp3_3/client/core/ApplicationGrid.java |
diffstat | 1 files changed, 27 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/src/econnect/wp3_3/client/core/ApplicationGrid.java Wed Sep 05 14:23:44 2012 +0000 +++ b/src/econnect/wp3_3/client/core/ApplicationGrid.java Wed Sep 12 10:24:10 2012 +0000 @@ -425,10 +425,12 @@ this.logo = new Image(constants.logoImage()); this.logo.addStyleName("logo"); RootPanel.get().add(this.logo); - RootPanel.get().setWidgetPosition(this.logo,(docWidth-width)/2-40,8); + RootPanel.get().setWidgetPosition(this.logo,(docWidth-width)/40,8); - Grid linkList = new Grid(1,7); - HTML informationLink = new HTML(" e4D - Info"); + // Increased to 8 by DARIAH-DE SUBGOE sfu + Grid linkList = new Grid(1,8); + + HTML informationLink = new HTML(" e4D – Info"); informationLink.setTitle("e4D - Info"); informationLink.addClickHandler(new ClickHandler(){ public void onClick(ClickEvent event) { @@ -437,6 +439,7 @@ }); informationLink.setStyleName("headerLink"); linkList.setWidget(0, 0, informationLink); + HTML helpLink = new HTML(" Help"); helpLink.setTitle("Help"); helpLink.addClickHandler(new ClickHandler(){ @@ -446,6 +449,7 @@ }); helpLink.setStyleName("headerLink"); linkList.setWidget(0, 1, helpLink); + HTML contactLink = new HTML(" Contact"); contactLink.setTitle("Contact"); contactLink.addClickHandler(new ClickHandler(){ @@ -455,15 +459,19 @@ }); contactLink.setStyleName("headerLink"); linkList.setWidget(0, 2, contactLink); + HTML clearLink = new HTML(" Clear Data"); clearLink.setTitle("Clear Data"); clearLink.addClickHandler(new ClickHandler(){ public void onClick(ClickEvent event) { - Window.Location.assign(Window.Location.getHref()); + // Changed to root URL for DARIAH-EU SUBGOE sfu + // Window.Location.assign(Window.Location.getHref()); + Window.open("http://dev2.dariah.eu/e4d/", "_self", ""); } }); clearLink.setStyleName("headerLink"); linkList.setWidget(0, 3, clearLink); + HTML uploadLink = new HTML(" Upload Data"); uploadLink.setTitle("Upload Data"); uploadLink.setStyleName("headerLink"); @@ -473,6 +481,18 @@ } }); linkList.setWidget(0, 4, uploadLink); + + // Newly inserted by DARIAH-DE SUBGOE sfu + HTML dataSheetLink = new HTML(" Data Editor"); + dataSheetLink.setTitle("Data Editor"); + dataSheetLink.addClickHandler(new ClickHandler(){ + public void onClick(ClickEvent event) { + Window.open("http://ref.dariah.eu/workflow/", "_blank", ""); + } + }); + dataSheetLink.setStyleName("headerLink"); + linkList.setWidget(0, 5, dataSheetLink); + ClickHandler magneticClick = new ClickHandler(){ public void onClick(ClickEvent event) { if( core.getDataSets().length() > 0 ){ @@ -504,16 +524,16 @@ } } }; - + HTML magneticLink = new HTML(" Magnetic Link"); magneticLink.setStyleName("headerLink"); magneticLink.addClickHandler(magneticClick); - linkList.setWidget(0, 5, magneticLink); + linkList.setWidget(0, 6, magneticLink); Image link = new Image(constants.linkImage()); link.addStyleName("link"); link.setTitle("Create Magnetic Link"); - linkList.setWidget(0, 6, link); + linkList.setWidget(0, 7, link); linkList.getElement().getStyle().setPosition(Position.ABSOLUTE); linkList.getElement().getStyle().setPropertyPx("left", 0);