1 4 package org.oddjob.designer.model; 5 6 import java.util.ArrayList ; 7 import java.util.List ; 8 9 13 public class StandardForm implements FormDefinition { 14 15 private final String name; 16 private List groups = new ArrayList (); 17 18 public StandardForm(String name) { 19 this.name = name; 20 } 21 22 public String getName() { 23 return name; 24 } 25 26 32 public StandardForm addGroup(DesignDefinition designDef) { 33 groups.add(designDef); 34 return this; 35 } 36 37 public int size() { 38 return groups.size(); 39 } 40 41 public DesignDefinition getDesignDefinition(int index) { 42 return (DesignDefinition) groups.get(index); 43 } 44 45 } 46 | Popular Tags |