1 16 package org.apache.cocoon.woody.formmodel; 17 18 import java.util.Collection ; 19 import java.util.List ; 20 21 27 public abstract class AbstractContainerDefinition 28 extends AbstractWidgetDefinition implements ContainerDefinition { 29 protected ContainerDefinitionDelegate definitions; 30 31 public AbstractContainerDefinition() { 32 definitions = new ContainerDefinitionDelegate(this); 33 } 34 35 public void createWidget(Widget parent, String id) { 36 definitions.createWidget(parent, id); 37 } 38 39 public void createWidgets(Widget parent) { 40 definitions.createWidgets(parent); 41 } 42 43 public void addWidgetDefinition(WidgetDefinition definition) throws Exception , DuplicateIdException { 44 definition.setParent(this); 45 definitions.addWidgetDefinition(definition); 46 } 47 48 public void resolve(List parents, WidgetDefinition parent) throws Exception { 49 definitions.resolve(parents, parent); 50 } 51 52 public boolean hasWidget(String id) { 53 return definitions.hasWidget(id); 54 } 55 56 public WidgetDefinition getWidgetDefinition(String id) { 57 return definitions.getWidgetDefinition(id); 58 } 59 60 public Collection getWidgetDefinitions() { 61 return definitions.getWidgetDefinitions(); 62 } 63 } 64 | Popular Tags |