KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > jonas > webapp > jonasadmin > common > ItemsForm


1 /*
2  * JOnAS: Java(TM) Open Application Server
3  * Copyright (C) 1999 Bull S.A.
4  * Contact: jonas-team@objectweb.org
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or any later version.
10  *
11  * This library 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 GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
19  * USA
20  *
21  * --------------------------------------------------------------------------
22  * $Id: ItemsForm.java,v 1.2 2004/03/19 14:31:53 sauthieg Exp $
23  * --------------------------------------------------------------------------
24  */

25
26 package org.objectweb.jonas.webapp.jonasadmin.common;
27
28 import java.util.ArrayList JavaDoc;
29
30 import javax.servlet.http.HttpServletRequest JavaDoc;
31
32 import org.apache.struts.action.ActionForm;
33 import org.apache.struts.action.ActionMapping;
34
35 /**
36  * @author Michel-Ange ANTON
37  */

38 public class ItemsForm extends ActionForm {
39
40 // --------------------------------------------------------- Constants
41

42 // --------------------------------------------------------- Properties variables
43
private String JavaDoc action = null;
44     private String JavaDoc[] selectedItemsArray = new String JavaDoc[0];
45     private ArrayList JavaDoc selectedItemsList = new ArrayList JavaDoc();
46
47 // --------------------------------------------------------- Public Methods
48

49     /**
50      * Reset all properties to their default values.
51      *
52      * @param mapping The mapping used to select this instance
53      * @param request The servlet request we are processing
54      */

55     public void reset(ActionMapping mapping, HttpServletRequest JavaDoc request) {
56         selectedItemsArray = new String JavaDoc[0];
57     }
58
59 // --------------------------------------------------------- Properties Methods
60

61     public String JavaDoc[] getSelectedItemsArray() {
62         return selectedItemsArray;
63     }
64
65     public void setSelectedItemsArray(String JavaDoc[] selectedItemsArray) {
66         this.selectedItemsArray = selectedItemsArray;
67     }
68
69     public String JavaDoc getAction() {
70         return action;
71     }
72
73     public void setAction(String JavaDoc action) {
74         this.action = action;
75     }
76
77     public ArrayList JavaDoc getSelectedItemsList() {
78         return selectedItemsList;
79     }
80
81     public void setSelectedItemsList(ArrayList JavaDoc selectedItemsList) {
82         this.selectedItemsList = selectedItemsList;
83     }
84
85
86 }
Popular Tags