Mercurial > hg > STI-GWT
comparison src/econnect/wp3_3/client/core/ApplicationGrid.java @ 36:cfe8045c4610
moved the data-table out of the mainContainer again
made the table moveable (to allow placement left/right of the map)
author | Sebastian Kruse <skruse@mpiwg-berlin.mpg.de> |
---|---|
date | Mon, 03 Dec 2012 15:26:56 +0100 |
parents | 18fc3a30e993 |
children | 050331208ad7 |
comparison
equal
deleted
inserted
replaced
35:18fc3a30e993 | 36:cfe8045c4610 |
---|---|
124 this.resize(5,2); | 124 this.resize(5,2); |
125 this.setCellSpacing(0); | 125 this.setCellSpacing(0); |
126 this.setCellPadding(0); | 126 this.setCellPadding(0); |
127 //this.getElement().getStyle().setPosition(Position.ABSOLUTE); | 127 //this.getElement().getStyle().setPosition(Position.ABSOLUTE); |
128 //this.getElement().getStyle().setPropertyPx("left", (docWidth-width)/2); | 128 //this.getElement().getStyle().setPropertyPx("left", (docWidth-width)/2); |
129 this.getElement().getStyle().setPropertyPx("top", 120-39); | 129 //this.getElement().getStyle().setPropertyPx("top", 120-39); |
130 //this.getElement().getStyle().setZIndex(1); | 130 //this.getElement().getStyle().setZIndex(1); |
131 this.getCellFormatter().getElement(2,1).setClassName("cellStyleTop"); | 131 this.getCellFormatter().getElement(2,1).setClassName("cellStyleTop"); |
132 this.getCellFormatter().getElement(3,0).setClassName("cellStyleLeft"); | 132 this.getCellFormatter().getElement(3,0).setClassName("cellStyleLeft"); |
133 RootPanel.get("mainContainer").add(this); | 133 RootPanel.get("mainContainer").add(this); |
134 | 134 |
563 link.addClickHandler(magneticClick); | 563 link.addClickHandler(magneticClick); |
564 | 564 |
565 core.setElements( this.getMap().getJsMap(), this.getPlot().getJsTimeplot() ); | 565 core.setElements( this.getMap().getJsMap(), this.getPlot().getJsTimeplot() ); |
566 StiCore.exportStaticMethods(table,this,this.getPlot(),this.getMap()); | 566 StiCore.exportStaticMethods(table,this,this.getPlot(),this.getMap()); |
567 | 567 |
568 table.setTop( 40 ); | 568 //table.setTop( 40 ); |
569 table.setWidth("100%"); | 569 table.setWidth("100%"); |
570 | 570 |
571 for( int i=0; i<kmlLabels.size(); i++ ){ | 571 for( int i=0; i<kmlLabels.size(); i++ ){ |
572 if( kmlSources.get(i).intValue() == 0 && kmlCategories.get(i) > -1 ){ | 572 if( kmlSources.get(i).intValue() == 0 && kmlCategories.get(i) > -1 ){ |
573 core.openStaticKml(kmlSources.get(i), kmlCategories.get(i), kmlLocations.get(i)); | 573 core.openStaticKml(kmlSources.get(i), kmlCategories.get(i), kmlLocations.get(i)); |
578 else { | 578 else { |
579 core.alert("Unable to load \""+kmlLabels.get(i)+"\"!"); | 579 core.alert("Unable to load \""+kmlLabels.get(i)+"\"!"); |
580 } | 580 } |
581 } | 581 } |
582 | 582 |
583 RootPanel.get("tableWindow").add(table); | |
584 | |
585 /* | |
583 this.setWidget(4, 0, table); | 586 this.setWidget(4, 0, table); |
584 this.getCellFormatter().getElement(4,0).setAttribute("colspan", "2"); | 587 this.getCellFormatter().getElement(4,0).setAttribute("colspan", "2"); |
585 this.getCellFormatter().getElement(4,1).removeFromParent(); | 588 this.getCellFormatter().getElement(4,1).removeFromParent(); |
589 */ | |
586 } | 590 } |
587 | 591 |
588 public void setDefinedBounds(){ | 592 public void setDefinedBounds(){ |
589 int zoom = 0; | 593 int zoom = 0; |
590 float cLon = 0, cLat = 0; | 594 float cLon = 0, cLat = 0; |