1 15 package org.apache.tapestry.valid; 16 17 import java.io.Serializable ; 18 import java.util.List ; 19 20 import org.apache.tapestry.IMarkupWriter; 21 import org.apache.tapestry.IRender; 22 import org.apache.tapestry.IRequestCycle; 23 import org.apache.tapestry.form.IFormComponent; 24 25 78 79 public interface IValidationDelegate extends Serializable 80 { 81 90 91 public void setFormComponent(IFormComponent component); 92 93 99 100 public boolean isInError(); 101 102 107 108 public String getFieldInputValue(); 109 110 117 118 public List getFieldTracking(); 119 120 126 127 public void reset(); 128 129 134 135 public void clear(); 136 137 144 145 public void recordFieldInputValue(String input); 146 147 156 157 public void record(ValidatorException ex); 158 159 168 169 public void record(String message, ValidationConstraint constraint); 170 171 180 181 public void record(IRender errorRenderer, ValidationConstraint constraint); 182 183 197 198 public void writePrefix(IMarkupWriter writer, IRequestCycle cycle, IFormComponent component, 199 IValidator validator); 200 201 217 218 public void writeAttributes(IMarkupWriter writer, IRequestCycle cycle, 219 IFormComponent component, IValidator validator); 220 221 235 236 public void writeSuffix(IMarkupWriter writer, IRequestCycle cycle, IFormComponent component, 237 IValidator validator); 238 239 242 243 public void writeLabelPrefix(IFormComponent component, IMarkupWriter writer, IRequestCycle cycle); 244 245 248 249 public void writeLabelSuffix(IFormComponent component, IMarkupWriter writer, IRequestCycle cycle); 250 251 254 255 public boolean getHasErrors(); 256 257 263 public IFieldTracking getCurrentFieldTracking(); 264 265 272 273 public List getErrorRenderers(); 274 }
| Popular Tags
|