1 16 package org.apache.cocoon.forms.formmodel; 17 18 import org.apache.cocoon.util.Deprecation; 19 import org.w3c.dom.Element ; 20 21 27 public class StructDefinitionBuilder extends AbstractContainerDefinitionBuilder { 28 29 public WidgetDefinition buildWidgetDefinition(Element element) throws Exception { 30 StructDefinition definition = new StructDefinition(); 31 super.setupDefinition(element, definition); 32 setDisplayData(element, definition); 33 34 setupContainer(element,"widgets",definition); 35 36 definition.makeImmutable(); 37 Deprecation.logger.info("Use of 'fd:struct' is deprecated. Use 'fd:group' instead, at " + definition.getLocation()); 38 return definition; 39 } 40 } 41 | Popular Tags |