1 25 26 package org.objectweb.jonas.webapp.jonasadmin.service.container; 27 28 import java.util.ArrayList ; 29 30 import javax.servlet.http.HttpServletRequest ; 31 32 import org.apache.struts.action.ActionErrors; 33 import org.apache.struts.action.ActionForm; 34 import org.apache.struts.action.ActionMapping; 35 36 39 public class SelectedItemsForm extends ActionForm { 40 41 43 private String action = null; 45 private String [] checkedItems = new String [0]; 46 private ArrayList selectedItems = new ArrayList (); 47 48 50 public void reset(ActionMapping mapping, HttpServletRequest request) { 51 checkedItems = new String [0]; 52 } 53 54 public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) { 55 ActionErrors oErrors = new ActionErrors(); 56 return oErrors; 57 } 58 59 public String [] getCheckedItems() { 60 return checkedItems; 61 } 62 63 public void setCheckedItems(String [] checkedItems) { 64 this.checkedItems = checkedItems; 65 } 66 67 public String getAction() { 68 return action; 69 } 70 71 public void setAction(String action) { 72 this.action = action; 73 } 74 75 public ArrayList getSelectedItems() { 76 return selectedItems; 77 } 78 79 public void setSelectedItems(ArrayList selectedItems) { 80 this.selectedItems = selectedItems; 81 } 82 83 85 } | Popular Tags |