[PATCH 3 of 3] Removed unnecessary container widgets and layouts
Wald Commits
scm-commit at wald.intevation.org
Tue Jun 17 09:54:51 CEST 2014
# HG changeset patch
# User Raimund Renkert <rrenkert at intevation.de>
# Date 1402991680 -7200
# Node ID 6f8f13d829e5537a3104b430ef2600945d4494f9
# Parent 71a2e408adcaaf80a0d3ae8f0d0c2e5e0768dd4c
Removed unnecessary container widgets and layouts.
diff -r 71a2e408adca -r 6f8f13d829e5 gwt-client/src/main/java/org/dive4elements/river/client/client/ui/stationinfo/GaugeListGrid.java
--- 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);
}
/**
diff -r 71a2e408adca -r 6f8f13d829e5 gwt-client/src/main/java/org/dive4elements/river/client/client/ui/stationinfo/InfoListGrid.java
--- 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();
diff -r 71a2e408adca -r 6f8f13d829e5 gwt-client/src/main/java/org/dive4elements/river/client/client/ui/stationinfo/MeasurementStationListGrid.java
--- 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
More information about the Dive4Elements-commits
mailing list