View Javadoc

1   /*
2    * $Header: /cvsroot/jdbforms/dbforms/src/org/dbforms/taglib/DbFormContext.java,v 1.4 2004/10/17 07:02:27 hkollmann Exp $
3    * $Revision: 1.4 $
4    * $Date: 2004/10/17 07:02:27 $
5    *
6    * DbForms - a Rapid Application Development Framework
7    * Copyright (C) 2001 Joachim Peer <joepeer@excite.com>
8    *
9    * This library is free software; you can redistribute it and/or
10   * modify it under the terms of the GNU Lesser General Public
11   * License as published by the Free Software Foundation; either
12   * version 2.1 of the License, or (at your option) any later version.
13   *
14   * This library is distributed in the hope that it will be useful,
15   * but WITHOUT ANY WARRANTY; without even the implied warranty of
16   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17   * Lesser General Public License for more details.
18   *
19   * You should have received a copy of the GNU Lesser General Public
20   * License along with this library; if not, write to the Free Software
21   * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
22   */
23  
24  package org.dbforms.taglib;
25  
26  import org.dbforms.config.ResultSetVector;
27  
28  import java.util.Map;
29  
30  
31  
32  /***
33   * This is the context of the dbform tag. Used as TEI class element. In the
34   * pagecontext is holded a map named dbform with name of form as  key and this
35   * context as object.
36   *
37   * @author Henner Kollmann
38   */
39  public class DbFormContext {
40     private Map             currentRow;
41     private Map             searchFieldAlgorithmNames;
42     private Map             searchFieldModeNames;
43     private Map             searchFieldNames;
44     private ResultSetVector rsv;
45     private String          position;
46  
47     /***
48      * Creates a new DbFormContext object.
49      *
50      * @param searchFieldNames DOCUMENT ME!
51      * @param searchFieldModeNames DOCUMENT ME!
52      * @param searchFieldAlgorithmNames DOCUMENT ME!
53      * @param rsv DOCUMENT ME!
54      */
55     public DbFormContext(Map             searchFieldNames,
56                          Map             searchFieldModeNames,
57                          Map             searchFieldAlgorithmNames,
58                          ResultSetVector rsv) {
59        this.searchFieldNames          = searchFieldNames;
60        this.searchFieldModeNames      = searchFieldModeNames;
61        this.searchFieldAlgorithmNames = searchFieldAlgorithmNames;
62        this.rsv                       = rsv;
63     }
64  
65     /***
66      * DOCUMENT ME!
67      *
68      * @param map
69      */
70     public void setCurrentRow(Map map) {
71        currentRow = map;
72     }
73  
74  
75     /***
76      * DOCUMENT ME!
77      *
78      * @return
79      */
80     public Map getCurrentRow() {
81        return currentRow;
82     }
83  
84  
85     /***
86      * DOCUMENT ME!
87      *
88      * @param string
89      */
90     public void setPosition(String string) {
91        position = string;
92     }
93  
94  
95     /***
96      * DOCUMENT ME!
97      *
98      * @return
99      */
100    public String getPosition() {
101       return position;
102    }
103 
104 
105    /***
106     * DOCUMENT ME!
107     *
108     * @return
109     */
110    public ResultSetVector getRsv() {
111       return rsv;
112    }
113 
114 
115    /***
116     * DOCUMENT ME!
117     *
118     * @return
119     */
120    public Map getSearchFieldAlgorithmNames() {
121       return searchFieldAlgorithmNames;
122    }
123 
124 
125    /***
126     * DOCUMENT ME!
127     *
128     * @return
129     */
130    public Map getSearchFieldModeNames() {
131       return searchFieldModeNames;
132    }
133 
134 
135    /***
136     * DOCUMENT ME!
137     *
138     * @return
139     */
140    public Map getSearchFieldNames() {
141       return searchFieldNames;
142    }
143 }