1 24 package org.riotfamily.forms; 25 26 import java.io.PrintWriter ; 27 28 import org.riotfamily.forms.request.FormRequest; 29 30 31 32 33 34 39 public interface Element { 40 41 47 public void setId(String id); 48 49 52 public String getId(); 53 54 57 public void setForm(Form form); 58 59 62 public Form getForm(); 63 64 68 public void setFormContext(FormContext formContext); 69 70 74 public void setParent(Element parent); 75 76 79 public Element getParent(); 80 81 86 public void processRequest(FormRequest request); 87 88 91 public void render(PrintWriter writer); 92 93 96 public void focus(); 97 98 103 public boolean isEnabled(); 104 105 108 public void setEnabled(boolean enabled); 109 110 114 public boolean isRequired(); 115 116 119 public void setRequired(boolean required); 120 121 126 public boolean isCompositeElement(); 127 128 } | Popular Tags |