KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > jonas > webapp > jonasadmin > service > container > SelectedItemsForm


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: SelectedItemsForm.java,v 1.1 2003/08/28 16:24:03 antonma Exp $
23  * --------------------------------------------------------------------------
24  */

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

39 public class SelectedItemsForm extends ActionForm {
40
41 // --------------------------------------------------------- Constants
42

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

50     public void reset(ActionMapping mapping, HttpServletRequest JavaDoc request) {
51         checkedItems = new String JavaDoc[0];
52     }
53
54     public ActionErrors validate(ActionMapping mapping, HttpServletRequest JavaDoc request) {
55         ActionErrors oErrors = new ActionErrors();
56         return oErrors;
57     }
58
59     public String JavaDoc[] getCheckedItems() {
60         return checkedItems;
61     }
62
63     public void setCheckedItems(String JavaDoc[] checkedItems) {
64         this.checkedItems = checkedItems;
65     }
66
67     public String JavaDoc getAction() {
68         return action;
69     }
70
71     public void setAction(String JavaDoc action) {
72         this.action = action;
73     }
74
75     public ArrayList JavaDoc getSelectedItems() {
76         return selectedItems;
77     }
78
79     public void setSelectedItems(ArrayList JavaDoc selectedItems) {
80         this.selectedItems = selectedItems;
81     }
82
83 // --------------------------------------------------------- Properties Methods
84

85 }
Popular Tags