# HG changeset patch # User Felix Wolfsteller # Date 1317368981 0 # Node ID cdb1505a32f153959818b434a23d320d8253e508 # Parent e8bb11976c709bf487e2d6a1b32efe08b14e6210 Fix messed up indentation. flys-client/trunk@2868 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r e8bb11976c70 -r cdb1505a32f1 flys-client/ChangeLog --- a/flys-client/ChangeLog Fri Sep 30 07:44:35 2011 +0000 +++ b/flys-client/ChangeLog Fri Sep 30 07:49:41 2011 +0000 @@ -1,3 +1,10 @@ +2011-09-30 Felix Wolfsteller + + Fix accidentally messed-up indentation. + + * src/main/java/de/intevation/flys/client/client/ui/DatacagePairWidget.java: + Fix indentation. + 2011-09-30 Felix Wolfsteller Neaten displayed gridcontent when selecting waterlevels for wdiff, diff -r e8bb11976c70 -r cdb1505a32f1 flys-client/src/main/java/de/intevation/flys/client/client/ui/DatacagePairWidget.java --- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/DatacagePairWidget.java Fri Sep 30 07:44:35 2011 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/DatacagePairWidget.java Fri Sep 30 07:49:41 2011 +0000 @@ -35,76 +35,76 @@ public class DatacagePairWidget extends VLayout { -protected FLYSConstants messages = - GWT.create(FLYSConstants.class); - -/** The "remote" ListGrid to insert data to when add-button is clicked. */ -protected ListGrid grid; - -/** First attribute-name for StringPairRecord. */ -protected static final String ATTRIBUTE_FIRST = "first"; - -/** Second attribute-name for StringPairRecord. */ -protected static final String ATTRIBUTE_SECOND = "second"; - -/** First (upper) DataCage Grid. */ -protected DatacageWidget firstDatacageWidget; - -/** Second (lower) DataCage Grid. */ -protected DatacageWidget secondDatacageWidget; - - -/** - * Two strings to be displayed in a GridList, derived from two - * Recommendations. - */ -protected class RecommendationPairRecord extends ListGridRecord { - Recommendation first; - Recommendation second; - String firstName; - String secondName; - - public RecommendationPairRecord() { + protected FLYSConstants messages = + GWT.create(FLYSConstants.class); + + /** The "remote" ListGrid to insert data to when add-button is clicked. */ + protected ListGrid grid; + + /** First attribute-name for StringPairRecord. */ + protected static final String ATTRIBUTE_FIRST = "first"; + + /** Second attribute-name for StringPairRecord. */ + protected static final String ATTRIBUTE_SECOND = "second"; + + /** First (upper) DataCage Grid. */ + protected DatacageWidget firstDatacageWidget; + + /** Second (lower) DataCage Grid. */ + protected DatacageWidget secondDatacageWidget; + + + /** + * Two strings to be displayed in a GridList, derived from two + * Recommendations. + */ + protected class RecommendationPairRecord extends ListGridRecord { + Recommendation first; + Recommendation second; + String firstName; + String secondName; + + public RecommendationPairRecord() { + } + + public RecommendationPairRecord(String firstName, + Recommendation first, + String secondName, + Recommendation second) + { + setFirst(first, firstName); + setSecond(second, secondName); + } + + + public void setFirst(Recommendation first, String name) { + this.first = first; + this.firstName = name; + setAttribute(ATTRIBUTE_FIRST, name); + } + + + public void setSecond(Recommendation second, String name) { + this.second = second; + this.secondName = name; + setAttribute(ATTRIBUTE_SECOND, name); + } + + public Recommendation getFirst() {return first;} + public Recommendation getSecond() {return second;} + public String getFirstName() {return firstName;} + public String getSecondName() {return secondName;} } - - public RecommendationPairRecord(String firstName, - Recommendation first, - String secondName, - Recommendation second) - { - setFirst(first, firstName); - setSecond(second, secondName); - } - - - public void setFirst(Recommendation first, String name) { - this.first = first; - this.firstName = name; - setAttribute(ATTRIBUTE_FIRST, name); - } - - - public void setSecond(Recommendation second, String name) { - this.second = second; - this.secondName = name; - setAttribute(ATTRIBUTE_SECOND, name); - } - - public Recommendation getFirst() {return first;} - public Recommendation getSecond() {return second;} - public String getFirstName() {return firstName;} - public String getSecondName() {return secondName;} -} - - -/** - * - * @param artifact Artifact to query datacage with. - * @param user User to query datacage with. - * @param outs outs to query datacage with. - * @param grid Grid into which to insert selection of pairs. - */ -public DatacagePairWidget(Artifact artifact, + + + /** + * + * @param artifact Artifact to query datacage with. + * @param user User to query datacage with. + * @param outs outs to query datacage with. + * @param grid Grid into which to insert selection of pairs. + */ + public DatacagePairWidget(Artifact artifact, User user, String outs, ListGrid grid) {