# HG changeset patch # User Ingo Weinzierl # Date 1302532194 0 # Node ID 79fb4d9006436cfee65497a051571c4731e0cb66 # Parent 907b61e4d702bbe841de683dcf12828415c2ff58 Added a model class that represents a distance information. flys-client/trunk@1661 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r 907b61e4d702 -r 79fb4d900643 flys-client/ChangeLog --- a/flys-client/ChangeLog Fri Apr 08 10:05:14 2011 +0000 +++ b/flys-client/ChangeLog Mon Apr 11 14:29:54 2011 +0000 @@ -1,3 +1,13 @@ +2011-04-11 Ingo Weinzierl + + * src/main/java/de/intevation/flys/client/shared/model/DistanceInfoObjectImpl.java, + src/main/java/de/intevation/flys/client/shared/model/DistanceInfoObject.java: + New. This model will be used by the LocationDistancePanel to bring up a + table with distances which supports the user while entering the start + and end point of the WINFO paramterization. A DistanceInfoObject + contains information about a specific distance (description, from, to + and riverside). + 2011-04-08 Ingo Weinzierl * src/main/java/de/intevation/flys/client/server/UserServiceImpl.java, diff -r 907b61e4d702 -r 79fb4d900643 flys-client/src/main/java/de/intevation/flys/client/shared/model/DistanceInfoObject.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/shared/model/DistanceInfoObject.java Mon Apr 11 14:29:54 2011 +0000 @@ -0,0 +1,19 @@ +package de.intevation.flys.client.shared.model; + +import java.io.Serializable; + + +/** + * @author Ingo Weinzierl + */ +public interface DistanceInfoObject extends Serializable { + + String getDescription(); + + Double getFrom(); + + Double getTo(); + + String getRiverside(); +} +// vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : diff -r 907b61e4d702 -r 79fb4d900643 flys-client/src/main/java/de/intevation/flys/client/shared/model/DistanceInfoObjectImpl.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/shared/model/DistanceInfoObjectImpl.java Mon Apr 11 14:29:54 2011 +0000 @@ -0,0 +1,54 @@ +package de.intevation.flys.client.shared.model; + + +/** + * @author Ingo Weinzierl + */ +public class DistanceInfoObjectImpl implements DistanceInfoObject { + + protected String description; + + protected Double from; + + protected Double to; + + protected String riverside; + + + public DistanceInfoObjectImpl() { + } + + + public DistanceInfoObjectImpl( + String description, + Double from, + Double to, + String riverside) + { + this.description = description; + this.from = from; + this.to = to; + this.riverside = riverside; + } + + + public String getDescription() { + return description; + } + + + public Double getFrom() { + return from; + } + + + public Double getTo() { + return to; + } + + + public String getRiverside() { + return riverside; + } +} +// vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :