View Javadoc

1   ////////////////////////////////////////////////////////////////////////////////
2   //CabaWeb
3   //Copyright (C) 2004  Thomas Vogt <Thomas.Vogt@TVC-Software.com>
4   //
5   //This library is free software; you can redistribute it and/or
6   //modify it under the terms of the GNU Lesser General Public
7   //License as published by the Free Software Foundation; either
8   //version 2.1 of the License, or (at your option) any later version.
9   //
10  //This library is distributed in the hope that it will be useful,
11  //but WITHOUT ANY WARRANTY; without even the implied warranty of
12  //MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13  //Lesser General Public License for more details.
14  //
15  //You should have received a copy of the GNU Lesser General Public
16  //License along with this library; if not, write to the Free Software
17  //Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
18  ////////////////////////////////////////////////////////////////////////////////
19  package org.fhw.cabaweb.webfrontend.forms.multiple;
20  
21  import java.util.Collection;
22  
23  import javax.servlet.http.HttpServletRequest;
24  
25  import org.apache.struts.action.ActionForm;
26  import org.apache.struts.action.ActionMapping;
27  
28  /***
29   * Formularklasse der MVC Architektur von Struts.
30   * In diesem Fall für eine Collection von Objekten (Liste der Projektgruppen)
31   *
32   * @author  <a href="mailto:thomas.vogt@tvc-software.com">Thomas Vogt</a>
33   * @version Version 1.0 05.07.2004
34   */
35  public final class ProjektgruppenForm extends ActionForm {
36  
37      //--- Instanz Variablen --------------------------------------
38      /*** Collection von Projektgruppen Objekten */
39      private Collection projektgruppen = null;
40  
41      //--- Eigenschaften (Variablen) ------------------------------
42  
43      /*** 
44       * GET Methode 
45       *
46       * @return der Parameterwert (Collection von Projektgruppen) 
47       */
48      public Collection getProjektgruppen()
49      {
50          return this.projektgruppen;
51      }
52  
53      /***
54       * SET Methode 
55       *
56       * @param projektgruppen Der zu setzende Parameterwert (Collection von Projektgruppen)
57       */
58      public void setProjektgruppen(Collection projektgruppen)
59      {
60          this.projektgruppen = projektgruppen;
61      }
62  
63      //--- Öffentliche Methoden -----------------------------------
64  
65      /***
66       * Zurücksetzen aller Parameterwerte auf die Default Werte.
67       *
68       * @param mapping Das Mapping das benutzt wurde um diese Instanz zu selektieren
69       * @param request Die Servlet Anfrage die wir gerade bearbeiten
70       */
71      public void reset(ActionMapping mapping, HttpServletRequest request) 
72      {
73          this.projektgruppen = null;
74      }
75  }