View Javadoc

1   /*
2    *  File: Taetigkeit.java 
3    *  Copyright (c) 2004-2007  Peter Kliem (Peter.Kliem@jaret.de)
4    *  A commercial license is available, see http://www.jaret.de.
5    *
6    *  This program is free software; you can redistribute it and/or modify
7    *  it under the terms of the GNU General Public License as published by
8    *  the Free Software Foundation; either version 2 of the License, or
9    *  (at your option) any later version.
10   *
11   *  This program is distributed in the hope that it will be useful,
12   *  but WITHOUT ANY WARRANTY; without even the implied warranty of
13   *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14   *  GNU General Public License for more details.
15   *
16   *  You should have received a copy of the GNU General Public License
17   *  along with this program; if not, write to the Free Software
18   *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19   */
20  package de.jaret.examples.timebars.pdi.model;
21  
22  import java.util.ArrayList;
23  import java.util.List;
24  
25  import de.jaret.util.date.IntervalImpl;
26  
27  /***
28   * @author Peter Kliem
29   * @version $Id: Taetigkeit.java 160 2007-01-02 22:02:40Z olk $
30   */
31  public class Taetigkeit extends IntervalImpl {
32      protected String _beginOrt;
33      protected String _endeOrt;
34      protected int _bezahlteZeitSeconds;
35      protected List _probleme;
36  
37      /***
38       * @return Returns the beginOrt.
39       */
40      public String getBeginOrt() {
41          return _beginOrt;
42      }
43  
44      /***
45       * @param beginOrt The beginOrt to set.
46       */
47      public void setBeginOrt(String beginOrt) {
48          _beginOrt = beginOrt;
49      }
50  
51      /***
52       * @return Returns the bezahlteZeitSeconds.
53       */
54      public int getBezahlteZeitSeconds() {
55          return _bezahlteZeitSeconds;
56      }
57  
58      /***
59       * @param bezahlteZeitSeconds The bezahlteZeitSeconds to set.
60       */
61      public void setBezahlteZeitSeconds(int bezahlteZeitSeconds) {
62          _bezahlteZeitSeconds = bezahlteZeitSeconds;
63      }
64  
65      /***
66       * @return Returns the endeOrt.
67       */
68      public String getEndeOrt() {
69          return _endeOrt;
70      }
71  
72      /***
73       * @param endeOrt The endeOrt to set.
74       */
75      public void setEndeOrt(String endeOrt) {
76          _endeOrt = endeOrt;
77      }
78  
79      public List getProbleme() {
80          return _probleme;
81      }
82  
83      public void addProblem(String problem) {
84          if (_probleme == null) {
85              _probleme = new ArrayList();
86          }
87          _probleme.add(problem);
88          firePropertyChange("Probleme", null, problem);
89      }
90  
91      public void clearProbleme() {
92          if (_probleme != null) {
93              _probleme.clear();
94              firePropertyChange("Probleme", null, null);
95          }
96      }
97  
98  }