comparison src/econnect/wp3_3/client/core/ApplicationGrid.java @ 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 517a6422d1bd
children fef6080e83ad
comparison
equal deleted inserted replaced
10:bcc91da76221 11:f0365f1b90ec
423 controls.setSize("100%",height+"px"); 423 controls.setSize("100%",height+"px");
424 424
425 this.logo = new Image(constants.logoImage()); 425 this.logo = new Image(constants.logoImage());
426 this.logo.addStyleName("logo"); 426 this.logo.addStyleName("logo");
427 RootPanel.get().add(this.logo); 427 RootPanel.get().add(this.logo);
428 RootPanel.get().setWidgetPosition(this.logo,(docWidth-width)/2-40,8); 428 RootPanel.get().setWidgetPosition(this.logo,(docWidth-width)/40,8);
429 429
430 Grid linkList = new Grid(1,7); 430 // Increased to 8 by DARIAH-DE SUBGOE sfu
431 HTML informationLink = new HTML("&nbsp;e4D&nbsp;-&nbsp;Info"); 431 Grid linkList = new Grid(1,8);
432
433 HTML informationLink = new HTML("&nbsp;e4D&nbsp;&ndash;&nbsp;Info");
432 informationLink.setTitle("e4D&nbsp;-&nbsp;Info"); 434 informationLink.setTitle("e4D&nbsp;-&nbsp;Info");
433 informationLink.addClickHandler(new ClickHandler(){ 435 informationLink.addClickHandler(new ClickHandler(){
434 public void onClick(ClickEvent event) { 436 public void onClick(ClickEvent event) {
435 Window.open("http://wp1187670.wp212.webpack.hosteurope.de/e4d/?page_id=2", "_blank", ""); 437 Window.open("http://wp1187670.wp212.webpack.hosteurope.de/e4d/?page_id=2", "_blank", "");
436 } 438 }
437 }); 439 });
438 informationLink.setStyleName("headerLink"); 440 informationLink.setStyleName("headerLink");
439 linkList.setWidget(0, 0, informationLink); 441 linkList.setWidget(0, 0, informationLink);
442
440 HTML helpLink = new HTML("&nbsp;Help"); 443 HTML helpLink = new HTML("&nbsp;Help");
441 helpLink.setTitle("Help"); 444 helpLink.setTitle("Help");
442 helpLink.addClickHandler(new ClickHandler(){ 445 helpLink.addClickHandler(new ClickHandler(){
443 public void onClick(ClickEvent event) { 446 public void onClick(ClickEvent event) {
444 Window.open("http://wp1187670.wp212.webpack.hosteurope.de/e4d/?page_id=23", "_blank", ""); 447 Window.open("http://wp1187670.wp212.webpack.hosteurope.de/e4d/?page_id=23", "_blank", "");
445 } 448 }
446 }); 449 });
447 helpLink.setStyleName("headerLink"); 450 helpLink.setStyleName("headerLink");
448 linkList.setWidget(0, 1, helpLink); 451 linkList.setWidget(0, 1, helpLink);
452
449 HTML contactLink = new HTML("&nbsp;Contact"); 453 HTML contactLink = new HTML("&nbsp;Contact");
450 contactLink.setTitle("Contact"); 454 contactLink.setTitle("Contact");
451 contactLink.addClickHandler(new ClickHandler(){ 455 contactLink.addClickHandler(new ClickHandler(){
452 public void onClick(ClickEvent event) { 456 public void onClick(ClickEvent event) {
453 Window.open("http://wp1187670.wp212.webpack.hosteurope.de/e4d/?page_id=4", "_blank", ""); 457 Window.open("http://wp1187670.wp212.webpack.hosteurope.de/e4d/?page_id=4", "_blank", "");
454 } 458 }
455 }); 459 });
456 contactLink.setStyleName("headerLink"); 460 contactLink.setStyleName("headerLink");
457 linkList.setWidget(0, 2, contactLink); 461 linkList.setWidget(0, 2, contactLink);
462
458 HTML clearLink = new HTML("&nbsp;Clear Data"); 463 HTML clearLink = new HTML("&nbsp;Clear Data");
459 clearLink.setTitle("Clear Data"); 464 clearLink.setTitle("Clear Data");
460 clearLink.addClickHandler(new ClickHandler(){ 465 clearLink.addClickHandler(new ClickHandler(){
461 public void onClick(ClickEvent event) { 466 public void onClick(ClickEvent event) {
462 Window.Location.assign(Window.Location.getHref()); 467 // Changed to root URL for DARIAH-EU SUBGOE sfu
468 // Window.Location.assign(Window.Location.getHref());
469 Window.open("http://dev2.dariah.eu/e4d/", "_self", "");
463 } 470 }
464 }); 471 });
465 clearLink.setStyleName("headerLink"); 472 clearLink.setStyleName("headerLink");
466 linkList.setWidget(0, 3, clearLink); 473 linkList.setWidget(0, 3, clearLink);
474
467 HTML uploadLink = new HTML("&nbsp;Upload Data"); 475 HTML uploadLink = new HTML("&nbsp;Upload Data");
468 uploadLink.setTitle("Upload Data"); 476 uploadLink.setTitle("Upload Data");
469 uploadLink.setStyleName("headerLink"); 477 uploadLink.setStyleName("headerLink");
470 uploadLink.addClickHandler(new ClickHandler(){ 478 uploadLink.addClickHandler(new ClickHandler(){
471 public void onClick(ClickEvent event) { 479 public void onClick(ClickEvent event) {
472 Window.open("http://wp1187670.wp212.webpack.hosteurope.de/e4d/?page_id=11", "_blank", ""); 480 Window.open("http://wp1187670.wp212.webpack.hosteurope.de/e4d/?page_id=11", "_blank", "");
473 } 481 }
474 }); 482 });
475 linkList.setWidget(0, 4, uploadLink); 483 linkList.setWidget(0, 4, uploadLink);
484
485 // Newly inserted by DARIAH-DE SUBGOE sfu
486 HTML dataSheetLink = new HTML("&nbsp;Data Editor");
487 dataSheetLink.setTitle("Data Editor");
488 dataSheetLink.addClickHandler(new ClickHandler(){
489 public void onClick(ClickEvent event) {
490 Window.open("http://ref.dariah.eu/workflow/", "_blank", "");
491 }
492 });
493 dataSheetLink.setStyleName("headerLink");
494 linkList.setWidget(0, 5, dataSheetLink);
495
476 ClickHandler magneticClick = new ClickHandler(){ 496 ClickHandler magneticClick = new ClickHandler(){
477 public void onClick(ClickEvent event) { 497 public void onClick(ClickEvent event) {
478 if( core.getDataSets().length() > 0 ){ 498 if( core.getDataSets().length() > 0 ){
479 String link = Window.Location.getHref() + "?"; 499 String link = Window.Location.getHref() + "?";
480 for( int i=0; i<core.getDataSets().length(); i++ ){ 500 for( int i=0; i<core.getDataSets().length(); i++ ){
502 else { 522 else {
503 core.alert("Link could not be created; no datasets available."); 523 core.alert("Link could not be created; no datasets available.");
504 } 524 }
505 } 525 }
506 }; 526 };
507 527
508 HTML magneticLink = new HTML("&nbsp;Magnetic Link"); 528 HTML magneticLink = new HTML("&nbsp;Magnetic Link");
509 magneticLink.setStyleName("headerLink"); 529 magneticLink.setStyleName("headerLink");
510 magneticLink.addClickHandler(magneticClick); 530 magneticLink.addClickHandler(magneticClick);
511 linkList.setWidget(0, 5, magneticLink); 531 linkList.setWidget(0, 6, magneticLink);
512 532
513 Image link = new Image(constants.linkImage()); 533 Image link = new Image(constants.linkImage());
514 link.addStyleName("link"); 534 link.addStyleName("link");
515 link.setTitle("Create Magnetic Link"); 535 link.setTitle("Create Magnetic Link");
516 linkList.setWidget(0, 6, link); 536 linkList.setWidget(0, 7, link);
517 537
518 linkList.getElement().getStyle().setPosition(Position.ABSOLUTE); 538 linkList.getElement().getStyle().setPosition(Position.ABSOLUTE);
519 linkList.getElement().getStyle().setPropertyPx("left", 0); 539 linkList.getElement().getStyle().setPropertyPx("left", 0);
520 linkList.getElement().getStyle().setPropertyPx("top", 0); 540 linkList.getElement().getStyle().setPropertyPx("top", 0);
521 RootPanel.get().add(linkList); 541 RootPanel.get().add(linkList);