1 22 package org.enhydra.barracuda.core.forms; 23 24 import java.util.*; 25 import javax.servlet.*; 26 import javax.servlet.http.*; 27 28 import org.enhydra.barracuda.plankton.data.DefaultStateMap; 29 import org.enhydra.barracuda.plankton.data.StateMap; 30 31 60 public interface FormElement { 61 62 67 public void setKey(String key); 68 69 74 public String getKey(); 75 76 81 public void setName(String name); 82 83 88 public String getName(); 89 90 95 public void setType(FormType type); 96 97 102 public FormType getType(); 103 104 109 public void setDefaultVal(Object defaultVal); 110 111 116 public Object getDefaultVal(); 117 118 123 public void setAllowMultiples(boolean val); 124 125 130 public boolean allowMultiples(); 131 132 137 public void setValidator(FormValidator validator); 138 139 144 public FormValidator getValidator(); 145 146 151 public void setOrigVal(Object iorigVal); 152 153 158 public Object getOrigVal(); 159 160 165 public void setVal(Object ival); 166 167 176 public Object getVal(); 177 178 185 public Object [] getVals(); 186 187 190 public String getStringVal(); 191 192 196 public String getStringVal(String dflt); 197 198 201 public Boolean getBooleanVal(); 202 203 207 public Boolean getBooleanVal(Boolean dflt); 208 209 212 public Integer getIntegerVal(); 213 214 218 public Integer getIntegerVal(Integer dflt); 219 220 223 public Date getDateVal(); 224 225 229 public Date getDateVal(Date dflt); 230 231 234 public Long getLongVal(); 235 236 240 public Long getLongVal(Long dflt); 241 242 245 public Short getShortVal(); 246 247 251 public Short getShortVal(Short dflt); 252 253 256 public Double getDoubleVal(); 257 258 262 public Double getDoubleVal(Double dflt); 263 264 267 public Float getFloatVal(); 268 269 273 public Float getFloatVal(Float dflt); 274 275 280 public void setParseException(ParseException pe); 281 282 288 public ParseException getParseException(); 289 290 291 292 293 295 296 302 304 305 311 312 314 317 318 } 319 | Popular Tags |