1 16 package org.apache.cocoon.forms.formmodel; 17 18 import org.apache.cocoon.util.location.Locatable; 19 import org.apache.cocoon.util.location.Location; 20 import org.xml.sax.ContentHandler ; 21 import org.xml.sax.SAXException ; 22 23 31 public interface WidgetDefinition extends Locatable { 32 33 36 void initializeFrom(WidgetDefinition definition) throws Exception ; 37 38 41 FormDefinition getFormDefinition(); 42 43 46 void setParent(WidgetDefinition definition); 47 48 51 Location getLocation(); 52 53 56 String getId(); 57 58 64 Object getAttribute(String name); 65 66 73 boolean validate(Widget widget); 74 75 80 void checkCompleteness() throws IncompletenessException; 81 82 85 Widget createInstance(); 86 87 90 void generateDisplayData(String name, ContentHandler contentHandler) throws SAXException ; 91 92 95 void generateDisplayData(ContentHandler contentHandler) throws SAXException ; 96 97 100 void generateLabel(ContentHandler contentHandler) throws SAXException ; 101 } 102 | Popular Tags |