| 1 25 26 package org.objectweb.jonas.webapp.jonasadmin.mbean; 27 28 import javax.servlet.http.HttpServletRequest ; 29 30 import org.apache.struts.action.ActionErrors; 31 import org.apache.struts.action.ActionForm; 32 import org.apache.struts.action.ActionMapping; 33 34 37 38 public class MbeanFilteringForm extends ActionForm { 39 40 42 private boolean description = false; 43 private boolean value = false; 44 private String periodRow; 45 private String selectedName; 46 private String forward; 47 48 50 56 57 public void reset(ActionMapping mapping, HttpServletRequest request) { 58 description = false; 59 value = false; 60 periodRow = "2"; 61 } 62 63 74 public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) { 75 ActionErrors oErrors = new ActionErrors(); 76 return oErrors; 77 } 78 79 81 public boolean isDescription() { 82 return description; 83 } 84 85 public void setDescription(boolean description) { 86 this.description = description; 87 if (isDescription() == false) { 88 periodRow = "2"; 89 } 90 else { 91 periodRow = "1"; 92 } 93 } 94 95 public boolean isValue() { 96 return value; 97 } 98 99 public void setValue(boolean value) { 100 this.value = value; 101 } 102 103 public String getPeriodRow() { 104 return periodRow; 105 } 106 public String getSelectedName() { 107 return selectedName; 108 } 109 public void setSelectedName(String selectedName) { 110 this.selectedName = selectedName; 111 } 112 public String getForward() { 113 return forward; 114 } 115 public void setForward(String forward) { 116 this.forward = forward; 117 } 118 } | Popular Tags |