KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > roller > config > runtime > DisplayGroup


1 /*
2  * DisplayGroup.java
3  *
4  * Created on June 4, 2005, 1:10 PM
5  */

6
7 package org.roller.config.runtime;
8
9 import java.util.ArrayList JavaDoc;
10 import java.util.List JavaDoc;
11
12 /**
13  * Represents a single DisplayGroup.
14  * Each DisplayGroup may contain 0 or more PropertyDefs.
15  *
16  * @author Allen Gilliland
17  */

18 public class DisplayGroup {
19     
20     private List JavaDoc propertyDefs = null;
21     private String JavaDoc name = null;
22     private String JavaDoc key = null;
23     
24     
25     public DisplayGroup() {
26         this.propertyDefs = new ArrayList JavaDoc();
27     }
28     
29     public DisplayGroup(List JavaDoc 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 JavaDoc toString() {
44         return name+","+key;
45     }
46     
47     public List JavaDoc getPropertyDefs() {
48         return propertyDefs;
49     }
50
51     public void setPropertyDefs(List JavaDoc propertyDefs) {
52         this.propertyDefs = propertyDefs;
53     }
54
55     public String JavaDoc getName() {
56         return name;
57     }
58
59     public void setName(String JavaDoc name) {
60         this.name = name;
61     }
62
63     public String JavaDoc getKey() {
64         return key;
65     }
66
67     public void setKey(String JavaDoc key) {
68         this.key = key;
69     }
70     
71     
72 }
73
Popular Tags