Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/CalculationMessage.java @ 3468:f37e7e8907cb
merged flys-artifacts/2.8.1
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Fri, 28 Sep 2012 12:14:39 +0200 |
parents | 4bd3d8bbb60c |
children |
comparison
equal
deleted
inserted
replaced
3387:5ffad8bde8ad | 3468:f37e7e8907cb |
---|---|
1 package de.intevation.flys.artifacts.model; | |
2 | |
3 import de.intevation.artifacts.Message; | |
4 | |
5 | |
6 public class CalculationMessage implements Message { | |
7 | |
8 protected String message; | |
9 protected int steps; | |
10 protected int currentStep; | |
11 | |
12 | |
13 public CalculationMessage() { | |
14 } | |
15 | |
16 | |
17 public CalculationMessage(int steps, int currentStep, String message) { | |
18 this.steps = steps; | |
19 this.currentStep = currentStep; | |
20 this.message = message; | |
21 } | |
22 | |
23 | |
24 public int getSteps() { | |
25 return steps; | |
26 } | |
27 | |
28 | |
29 public int getCurrentStep() { | |
30 return currentStep; | |
31 } | |
32 | |
33 | |
34 public String getMessage() { | |
35 return message; | |
36 } | |
37 | |
38 | |
39 @Override | |
40 public String getText() { | |
41 return | |
42 String.valueOf(currentStep) + "/" + String.valueOf(steps) + | |
43 " - " + getMessage(); | |
44 } | |
45 } | |
46 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |