KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > quikj > application > communicator > applications > webtalk > controller > CannedMessageSearchForm


1
2 package com.quikj.application.communicator.applications.webtalk.controller;
3
4 import javax.servlet.http.HttpServletRequest JavaDoc;
5 import org.apache.struts.action.*;
6 import java.util.*;
7
8 /**
9  *
10  * @author bhm
11  */

12 public class CannedMessageSearchForm extends ActionForm
13 {
14     
15     /** Holds value of property id. */
16     private String JavaDoc id;
17     
18     /** Holds value of property sortBy. */
19     private String JavaDoc sortBy;
20     
21     /** Holds value of property group. */
22     private String JavaDoc group;
23     
24     /** Holds value of property description. */
25     private String JavaDoc description;
26     
27     /** Holds value of property message. */
28     private String JavaDoc message;
29     
30     /** Holds value of property userGroups. */
31     private ArrayList userGroups = new ArrayList();
32     
33     /** Creates a new instance of CustomerManagementForm */
34     public CannedMessageSearchForm()
35     {
36         reset();
37     }
38     
39     /** Getter for property id.
40      * @return Value of property id.
41      *
42      */

43     public String JavaDoc getId()
44     {
45         return this.id;
46     }
47     
48     /** Setter for property id.
49      * @param id New value of property id.
50      *
51      */

52     public void setId(String JavaDoc id)
53     {
54         this.id = id.trim();
55     }
56     
57     /** Getter for property sortBy.
58      * @return Value of property sortBy.
59      *
60      */

61     public String JavaDoc getSortBy()
62     {
63         return this.sortBy;
64     }
65     
66     /** Setter for property sortBy.
67      * @param sortBy New value of property sortBy.
68      *
69      */

70     public void setSortBy(String JavaDoc sortBy)
71     {
72         this.sortBy = sortBy;
73     }
74     
75     public ActionErrors validate(ActionMapping mapping, HttpServletRequest JavaDoc request)
76     {
77         return null;
78     }
79     
80     public void reset()
81     {
82         id = null;
83         group = null;
84         description = null;
85         message = null;
86         sortBy = "Group";
87     }
88     
89     /** Getter for property group.
90      * @return Value of property group.
91      *
92      */

93     public String JavaDoc getGroup()
94     {
95         return this.group;
96     }
97     
98     /** Setter for property group.
99      * @param group New value of property group.
100      *
101      */

102     public void setGroup(String JavaDoc group)
103     {
104         this.group = group.trim();
105     }
106     
107     /** Getter for property description.
108      * @return Value of property description.
109      *
110      */

111     public String JavaDoc getDescription()
112     {
113         return this.description;
114     }
115     
116     /** Setter for property description.
117      * @param description New value of property description.
118      *
119      */

120     public void setDescription(String JavaDoc description)
121     {
122         this.description = description.trim();
123     }
124     
125     /** Getter for property message.
126      * @return Value of property message.
127      *
128      */

129     public String JavaDoc getMessage()
130     {
131         return this.message;
132     }
133     
134     /** Setter for property message.
135      * @param message New value of property message.
136      *
137      */

138     public void setMessage(String JavaDoc message)
139     {
140         this.message = message.trim();
141     }
142     
143     /** Getter for property userGroups.
144      * @return Value of property userGroups.
145      *
146      */

147     public ArrayList getUserGroups()
148     {
149         return this.userGroups;
150     }
151     
152     /** Setter for property userGroups.
153      * @param userGroups New value of property userGroups.
154      *
155      */

156     public void setUserGroups(ArrayList userGroups)
157     {
158         this.userGroups = userGroups;
159     }
160     
161 }
162
Popular Tags