# HG changeset patch # User Sascha L. Teichmann # Date 1308587743 0 # Node ID 78907f0fb93934cc5a1de98c189e375f795a0267 # Parent 210339fd1a34659bb77af57e971e32e57535bc5c Added dummy report panel. flys-client/trunk@2170 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r 210339fd1a34 -r 78907f0fb939 flys-client/ChangeLog --- a/flys-client/ChangeLog Mon Jun 20 16:25:48 2011 +0000 +++ b/flys-client/ChangeLog Mon Jun 20 16:35:43 2011 +0000 @@ -1,3 +1,17 @@ +2011-06-20 Sascha L. Teichmann + + * src/main/java/de/intevation/flys/client/client/ui/ParameterList.java: Added report panel. + + * src/main/java/de/intevation/flys/client/server/DescribeCollectionServiceImpl.java, + src/main/java/de/intevation/flys/client/server/DistanceInfoServiceImpl.java, + src/main/java/de/intevation/flys/client/client/ui/LocationDistancePanel.java, + src/main/java/de/intevation/flys/client/client/ui/chart/MousePositionPanel.java, + src/main/java/de/intevation/flys/client/client/ui/DatacageWindow.java: + Removed superfluous imports. + + * src/main/java/de/intevation/flys/client/client/ui/CollectionView.java: + 'boolean ? true : false' <=> 'boolean' + 2011-06-20 Sascha L. Teichmann * src/main/java/de/intevation/flys/client/server/DescribeCollectionServiceImpl.java: diff -r 210339fd1a34 -r 78907f0fb939 flys-client/src/main/java/de/intevation/flys/client/client/ui/CollectionView.java --- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/CollectionView.java Mon Jun 20 16:25:48 2011 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/CollectionView.java Mon Jun 20 16:35:43 2011 +0000 @@ -280,7 +280,7 @@ * @return true, if the Collection is new. */ public boolean isNew() { - return collection.getItemLength() == 0 ? true : false; + return collection.getItemLength() == 0; } diff -r 210339fd1a34 -r 78907f0fb939 flys-client/src/main/java/de/intevation/flys/client/client/ui/DatacageWindow.java --- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/DatacageWindow.java Mon Jun 20 16:25:48 2011 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/DatacageWindow.java Mon Jun 20 16:35:43 2011 +0000 @@ -1,7 +1,6 @@ package de.intevation.flys.client.client.ui; import java.util.List; -import java.util.ArrayList; import com.google.gwt.core.client.GWT; diff -r 210339fd1a34 -r 78907f0fb939 flys-client/src/main/java/de/intevation/flys/client/client/ui/LocationDistancePanel.java --- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/LocationDistancePanel.java Mon Jun 20 16:25:48 2011 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/LocationDistancePanel.java Mon Jun 20 16:35:43 2011 +0000 @@ -1,7 +1,6 @@ package de.intevation.flys.client.client.ui; import java.util.ArrayList; -import java.util.Arrays; import java.util.LinkedHashMap; import java.util.List; diff -r 210339fd1a34 -r 78907f0fb939 flys-client/src/main/java/de/intevation/flys/client/client/ui/ParameterList.java --- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/ParameterList.java Mon Jun 20 16:25:48 2011 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/ParameterList.java Mon Jun 20 16:35:43 2011 +0000 @@ -90,8 +90,10 @@ protected VLayout oldItems; protected VLayout currentItems; protected VLayout exportModes; + protected VLayout report; protected Canvas helperPanel; protected Canvas tablePanel; + protected Canvas reportPanel; public ParameterList(FLYS flys, CollectionView cView, String title) { super(title); @@ -105,6 +107,7 @@ oldItems = new VLayout(); currentItems = new VLayout(); exportModes = new VLayout(); + report = new VLayout(); addParameterChangeHandler(this); @@ -130,6 +133,7 @@ oldItems = new VLayout(); currentItems = new VLayout(); exportModes = new VLayout(); + report = new VLayout(); init(); @@ -159,6 +163,12 @@ left.addMember(oldItems); left.addMember(currentItems); left.addMember(exportModes); + left.addMember(report); + + reportPanel = new Canvas(); + //reportPanel.setContents("I was here!"); + reportPanel.setHeight("*"); + report.addMember(reportPanel); // This canvas is used to render helper widgets helperPanel = new Canvas(); diff -r 210339fd1a34 -r 78907f0fb939 flys-client/src/main/java/de/intevation/flys/client/client/ui/WQInputPanel.java --- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/WQInputPanel.java Mon Jun 20 16:25:48 2011 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/WQInputPanel.java Mon Jun 20 16:35:43 2011 +0000 @@ -942,7 +942,7 @@ public boolean isRangeMode() { String rMode = modes.getValueAsString(FIELD_MODE); - return rMode.equals(FIELD_MODE_RANGE) ? true : false; + return rMode.equals(FIELD_MODE_RANGE); } @@ -953,7 +953,7 @@ */ public boolean isWMode() { String wq = modes.getValueAsString(FIELD_WQ); - return wq.equals(FIELD_WQ_W) ? true : false; + return wq.equals(FIELD_WQ_W); } diff -r 210339fd1a34 -r 78907f0fb939 flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/MousePositionPanel.java --- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/MousePositionPanel.java Mon Jun 20 16:25:48 2011 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/MousePositionPanel.java Mon Jun 20 16:35:43 2011 +0000 @@ -2,7 +2,6 @@ import com.google.gwt.i18n.client.NumberFormat; -import com.smartgwt.client.types.Alignment; import com.smartgwt.client.widgets.Canvas; import com.smartgwt.client.widgets.Label; import com.smartgwt.client.widgets.layout.HLayout; diff -r 210339fd1a34 -r 78907f0fb939 flys-client/src/main/java/de/intevation/flys/client/server/DescribeCollectionServiceImpl.java --- a/flys-client/src/main/java/de/intevation/flys/client/server/DescribeCollectionServiceImpl.java Mon Jun 20 16:25:48 2011 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/server/DescribeCollectionServiceImpl.java Mon Jun 20 16:35:43 2011 +0000 @@ -9,7 +9,6 @@ import org.w3c.dom.Document; import org.w3c.dom.Element; -import org.w3c.dom.Node; import org.w3c.dom.NodeList; import com.google.gwt.user.server.rpc.RemoteServiceServlet; diff -r 210339fd1a34 -r 78907f0fb939 flys-client/src/main/java/de/intevation/flys/client/server/DistanceInfoServiceImpl.java --- a/flys-client/src/main/java/de/intevation/flys/client/server/DistanceInfoServiceImpl.java Mon Jun 20 16:25:48 2011 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/server/DistanceInfoServiceImpl.java Mon Jun 20 16:35:43 2011 +0000 @@ -3,11 +3,8 @@ import java.util.ArrayList; import java.util.List; -import javax.xml.xpath.XPathConstants; - import org.w3c.dom.Document; import org.w3c.dom.Element; -import org.w3c.dom.Node; import org.w3c.dom.NodeList; import com.google.gwt.user.server.rpc.RemoteServiceServlet;