1 18 23 24 package org.apache.roller.config.runtime; 25 26 import java.util.ArrayList ; 27 import java.util.List ; 28 29 35 public class DisplayGroup { 36 37 private List propertyDefs = null; 38 private String name = null; 39 private String key = null; 40 41 42 public DisplayGroup() { 43 this.propertyDefs = new ArrayList (); 44 } 45 46 public DisplayGroup(List propdefs) { 47 this.propertyDefs = propdefs; 48 } 49 50 51 public boolean addPropertyDef(PropertyDef prop) { 52 return this.propertyDefs.add(prop); 53 } 54 55 public boolean removePropertyDef(PropertyDef prop) { 56 return this.propertyDefs.remove(prop); 57 } 58 59 60 public String toString() { 61 return name+","+key; 62 } 63 64 public List getPropertyDefs() { 65 return propertyDefs; 66 } 67 68 public void setPropertyDefs(List propertyDefs) { 69 this.propertyDefs = propertyDefs; 70 } 71 72 public String getName() { 73 return name; 74 } 75 76 public void setName(String name) { 77 this.name = name; 78 } 79 80 public String getKey() { 81 return key; 82 } 83 84 public void setKey(String key) { 85 this.key = key; 86 } 87 88 89 } 90 | Popular Tags |