1 16 package org.apache.cocoon.woody.formmodel; 17 18 import org.apache.cocoon.woody.FormContext; 19 import org.apache.cocoon.woody.event.WidgetEvent; 20 import org.xml.sax.ContentHandler ; 21 import org.xml.sax.SAXException ; 22 23 import java.util.Locale ; 24 25 59 public interface Widget { 60 61 64 public String getLocation(); 65 66 69 public String getId(); 70 71 75 public Widget getParent(); 76 77 82 public void setParent(Widget widget); 83 84 88 public Form getForm(); 89 90 96 public String getNamespace(); 97 98 102 public String getFullyQualifiedId(); 103 104 109 public void readFromRequest(FormContext formContext); 110 111 116 public boolean validate(FormContext formContext); 117 118 123 public void generateSaxFragment(ContentHandler contentHandler, Locale locale) throws SAXException ; 124 125 129 public void generateLabel(ContentHandler contentHandler) throws SAXException ; 130 131 135 public Object getValue(); 136 137 141 public void setValue(Object object); 142 143 147 public boolean isRequired(); 148 149 152 public Widget getWidget(String id); 153 154 157 public void broadcastEvent(WidgetEvent event); 158 } 159 | Popular Tags |