1 6 7 package org.roller.config.runtime; 8 9 import java.util.ArrayList ; 10 import java.util.List ; 11 12 18 public class ConfigDef { 19 20 private List displayGroups = null; 21 private String name = null; 22 23 24 public ConfigDef() { 25 this.displayGroups = new ArrayList (); 26 } 27 28 public ConfigDef(List displaygroups) { 29 this.displayGroups = displaygroups; 30 } 31 32 33 public boolean addDisplayGroup(DisplayGroup group) { 34 return this.displayGroups.add(group); 35 } 36 37 public boolean removeDisplayGroup(DisplayGroup group) { 38 return this.displayGroups.remove(group); 39 } 40 41 42 public String toString() { 43 return name; 44 } 45 46 public List getDisplayGroups() { 47 return displayGroups; 48 } 49 50 public void setDisplayGroups(List displayGroups) { 51 this.displayGroups = displayGroups; 52 } 53 54 public String getName() { 55 return name; 56 } 57 58 public void setName(String name) { 59 this.name = name; 60 } 61 62 } 63 | Popular Tags |