1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.extremecomponents.table.bean;
17
18 import org.apache.commons.lang.StringUtils;
19 import org.extremecomponents.table.ExportAttributes;
20 import org.extremecomponents.table.model.TableModel;
21
22
23
24 /***
25 * @author jeff johnston
26 */
27 public class Export implements ExportAttributes
28 {
29 private TableModel model;
30 private String image;
31 private String name;
32 private String view;
33 private String title;
34 private String description;
35 private String headerColor;
36 private String headerBackgroundColor;
37
38 public Export(TableModel model)
39 {
40 this.model = model;
41 }
42
43 public String getImage()
44 {
45 if (StringUtils.isNotBlank(model.getTable().getImagePath()))
46 {
47 image = model.getTable().getImage(view);
48 }
49
50 return image;
51 }
52
53 public String getName()
54 {
55 return name;
56 }
57
58 public void setName(String name)
59 {
60 this.name = name;
61 }
62
63 public String getDescription()
64 {
65 return description;
66 }
67
68 public void setDescription(String description)
69 {
70 this.description = description;
71 }
72
73 public String getTitle()
74 {
75 return title;
76 }
77
78 public void setTitle(String title)
79 {
80 this.title = title;
81 }
82
83 public String getView()
84 {
85 return view;
86 }
87
88 public void setView(String view)
89 {
90 this.view = view;
91 }
92
93 public String getHeaderColor()
94 {
95 return headerColor;
96 }
97
98 public void setHeaderColor(String headerColor)
99 {
100 this.headerColor = headerColor;
101 }
102
103 public String getHeaderBackgroundColor()
104 {
105 return headerBackgroundColor;
106 }
107
108 public void setHeaderBackgroundColor(String headerBackgroundColor)
109 {
110 this.headerBackgroundColor = headerBackgroundColor;
111 }
112 }