1 6 7 package org.roller.config.runtime; 8 9 import java.util.ArrayList ; 10 import java.util.List ; 11 12 18 public class DisplayGroup { 19 20 private List propertyDefs = null; 21 private String name = null; 22 private String key = null; 23 24 25 public DisplayGroup() { 26 this.propertyDefs = new ArrayList (); 27 } 28 29 public DisplayGroup(List propdefs) { 30 this.propertyDefs = propdefs; 31 } 32 33 34 public boolean addPropertyDef(PropertyDef prop) { 35 return this.propertyDefs.add(prop); 36 } 37 38 public boolean removePropertyDef(PropertyDef prop) { 39 return this.propertyDefs.remove(prop); 40 } 41 42 43 public String toString() { 44 return name+","+key; 45 } 46 47 public List getPropertyDefs() { 48 return propertyDefs; 49 } 50 51 public void setPropertyDefs(List propertyDefs) { 52 this.propertyDefs = propertyDefs; 53 } 54 55 public String getName() { 56 return name; 57 } 58 59 public void setName(String name) { 60 this.name = name; 61 } 62 63 public String getKey() { 64 return key; 65 } 66 67 public void setKey(String key) { 68 this.key = key; 69 } 70 71 72 } 73 | Popular Tags |