Mercurial > dive4elements > river
diff flys-client/src/main/java/de/intevation/flys/client/client/ui/DatacagePairWidget.java @ 1298:b0ed67cb5197
Minor refactoring, improved displayed Strings in W-Diff branch.
flys-client/trunk@2920 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Mon, 10 Oct 2011 10:02:16 +0000 |
parents | d9cb362b8b34 |
children | 2fa7ed1ac7cf |
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/DatacagePairWidget.java Mon Oct 10 09:31:08 2011 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/DatacagePairWidget.java Mon Oct 10 10:02:16 2011 +0000 @@ -35,61 +35,12 @@ /** 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;} - } - + /** *