01: package org.netbeans.modules.reportgenerator.api.impl;
02:
03: import java.awt.Image;
04: import java.util.ArrayList;
05: import java.util.List;
06:
07: import org.netbeans.modules.reportgenerator.api.ReportAttribute;
08: import org.netbeans.modules.reportgenerator.api.ReportElement;
09:
10: public class ReportElementImpl extends ReportNodeImpl implements
11: ReportElement {
12:
13: private List<ReportAttribute> mAttributes = new ArrayList<ReportAttribute>();
14:
15: private String mName;
16:
17: private String mDescription;
18:
19: private Image mImage;
20:
21: public void addAttribute(ReportAttribute attr) {
22: this .mAttributes.add(attr);
23: }
24:
25: public List<ReportAttribute> getAttributes() {
26: return this .mAttributes;
27: }
28:
29: public void removeAttribute(ReportAttribute attr) {
30: this .mAttributes.remove(attr);
31: }
32:
33: public String getName() {
34: return this .mName;
35: }
36:
37: public void setName(String name) {
38: this .mName = name;
39: }
40:
41: public Image getImage() {
42: return this .mImage;
43: }
44:
45: public void setImage(Image image) {
46: this .mImage = image;
47: }
48:
49: public String getDescription() {
50: return this .mDescription;
51: }
52:
53: public void setDescription(String description) {
54: this.mDescription = description;
55: }
56:
57: }
|