Mercurial > dive4elements > river
changeset 1284:cdb1505a32f1
Fix messed up indentation.
flys-client/trunk@2868 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Fri, 30 Sep 2011 07:49:41 +0000 |
parents | e8bb11976c70 |
children | 0f3b19df1880 |
files | flys-client/ChangeLog flys-client/src/main/java/de/intevation/flys/client/client/ui/DatacagePairWidget.java |
diffstat | 2 files changed, 76 insertions(+), 69 deletions(-) [+] |
line wrap: on
line diff
--- 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 <felix.wolfsteller@intevation.de> + + Fix accidentally messed-up indentation. + + * src/main/java/de/intevation/flys/client/client/ui/DatacagePairWidget.java: + Fix indentation. + 2011-09-30 Felix Wolfsteller <felix.wolfsteller@intevation.de> Neaten displayed gridcontent when selecting waterlevels for wdiff,
--- 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) {