changeset 7935:6f8f13d829e5

Removed unnecessary container widgets and layouts.
author Raimund Renkert <rrenkert@intevation.de>
date Tue, 17 Jun 2014 09:54:40 +0200
parents 71a2e408adca
children 5ef60ed15c25 6e852a6c72f2
files gwt-client/src/main/java/org/dive4elements/river/client/client/ui/stationinfo/GaugeListGrid.java gwt-client/src/main/java/org/dive4elements/river/client/client/ui/stationinfo/InfoListGrid.java gwt-client/src/main/java/org/dive4elements/river/client/client/ui/stationinfo/MeasurementStationListGrid.java
diffstat 3 files changed, 3 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/stationinfo/GaugeListGrid.java	Tue Jun 17 09:47:45 2014 +0200
+++ b/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/stationinfo/GaugeListGrid.java	Tue Jun 17 09:54:40 2014 +0200
@@ -304,7 +304,7 @@
     @Override
     protected Canvas getExpandPanel(ListGridRecord record) {
         GaugeRecord item = (GaugeRecord)record;
-        return new WidgetCanvas(new GaugeInfoPanel(item, flys));
+        return new GaugeInfoPanel(item, flys);
     }
 
     /**
--- a/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/stationinfo/InfoListGrid.java	Tue Jun 17 09:47:45 2014 +0200
+++ b/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/stationinfo/InfoListGrid.java	Tue Jun 17 09:54:40 2014 +0200
@@ -79,10 +79,7 @@
 
     @Override
     protected Canvas getExpansionComponent(ListGridRecord record) {
-        VLayout layout = new VLayout();
-        layout.setPadding(5);
-        layout.addMember(this.getExpandPanel(record));
-        return layout;
+        return this.getExpandPanel(record);
     }
 
     public abstract void open();
--- a/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/stationinfo/MeasurementStationListGrid.java	Tue Jun 17 09:47:45 2014 +0200
+++ b/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/stationinfo/MeasurementStationListGrid.java	Tue Jun 17 09:54:40 2014 +0200
@@ -11,7 +11,6 @@
 import com.google.gwt.core.client.GWT;
 
 import com.smartgwt.client.widgets.Canvas;
-import com.smartgwt.client.widgets.WidgetCanvas;
 import com.smartgwt.client.widgets.grid.ListGridField;
 import com.smartgwt.client.widgets.grid.ListGridRecord;
 import com.smartgwt.client.widgets.grid.events.RecordClickEvent;
@@ -102,7 +101,7 @@
     @Override
     protected Canvas getExpandPanel(ListGridRecord record) {
         MeasurementStationRecord station = (MeasurementStationRecord)record;
-        return new WidgetCanvas(new MeasurementStationInfoPanel(station));
+        return new MeasurementStationInfoPanel(station);
     }
 
     @Override

http://dive4elements.wald.intevation.org