01: /*
02: * JOnAS: Java(TM) Open Application Server
03: * Copyright (C) 1999 Bull S.A.
04: * Contact: jonas-team@objectweb.org
05: *
06: * This library is free software; you can redistribute it and/or
07: * modify it under the terms of the GNU Lesser General Public
08: * License as published by the Free Software Foundation; either
09: * 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 4408 2004-03-19 14:31:54Z sauthieg $
23: * --------------------------------------------------------------------------
24: */
25:
26: package org.objectweb.jonas.webapp.jonasadmin.common;
27:
28: import java.util.ArrayList;
29:
30: import javax.servlet.http.HttpServletRequest;
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 action = null;
44: private String[] selectedItemsArray = new String[0];
45: private ArrayList selectedItemsList = new ArrayList();
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 request) {
56: selectedItemsArray = new String[0];
57: }
58:
59: // --------------------------------------------------------- Properties Methods
60:
61: public String[] getSelectedItemsArray() {
62: return selectedItemsArray;
63: }
64:
65: public void setSelectedItemsArray(String[] selectedItemsArray) {
66: this .selectedItemsArray = selectedItemsArray;
67: }
68:
69: public String getAction() {
70: return action;
71: }
72:
73: public void setAction(String action) {
74: this .action = action;
75: }
76:
77: public ArrayList getSelectedItemsList() {
78: return selectedItemsList;
79: }
80:
81: public void setSelectedItemsList(ArrayList selectedItemsList) {
82: this.selectedItemsList = selectedItemsList;
83: }
84:
85: }
|