1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.maven.plugins.graph.dot.html;
17
18 import java.util.Arrays;
19 import java.util.List;
20
21
22 public class Table implements HtmlTag {
23 HtmlUtils htmlUtils = new HtmlUtils();
24
25 public Table() {
26 super();
27 }
28
29 public Table(TableRow... rows) {
30 this(Arrays.asList(rows));
31 }
32
33 public Table(List<TableRow> rows) {
34 super();
35 this.rows = rows;
36 }
37
38 @Override
39 public String getName() {
40 return "table";
41 }
42
43 @Override
44 public String getContent() {
45 return htmlUtils.toHtml(rows);
46 }
47
48 Align align;
49 String bgcolor;
50 Integer border;
51 Integer cellborder;
52 Integer cellpadding;
53 Integer cellspacing;
54 String color;
55 Integer columns;
56 Boolean fixedsize;
57 String height;
58 String href;
59 String id;
60 String port;
61 Integer rowCount;
62 String style;
63 String target;
64 String title;
65 String tooltip;
66 VAlign valign;
67 String width;
68
69 List<TableRow> rows;
70
71 public Align getAlign() {
72 return align;
73 }
74
75 public void setAlign(Align align) {
76 this.align = align;
77 }
78
79 public String getBgcolor() {
80 return bgcolor;
81 }
82
83 public void setBgcolor(String bgcolor) {
84 this.bgcolor = bgcolor;
85 }
86
87 public Integer getBorder() {
88 return border;
89 }
90
91 public void setBorder(Integer border) {
92 this.border = border;
93 }
94
95 public Integer getCellborder() {
96 return cellborder;
97 }
98
99 public void setCellborder(Integer cellborder) {
100 this.cellborder = cellborder;
101 }
102
103 public Integer getCellpadding() {
104 return cellpadding;
105 }
106
107 public void setCellpadding(Integer cellpadding) {
108 this.cellpadding = cellpadding;
109 }
110
111 public Integer getCellspacing() {
112 return cellspacing;
113 }
114
115 public void setCellspacing(Integer cellspacing) {
116 this.cellspacing = cellspacing;
117 }
118
119 public String getColor() {
120 return color;
121 }
122
123 public void setColor(String color) {
124 this.color = color;
125 }
126
127 public Integer getColumns() {
128 return columns;
129 }
130
131 public void setColumns(Integer columns) {
132 this.columns = columns;
133 }
134
135 public Boolean getFixedsize() {
136 return fixedsize;
137 }
138
139 public void setFixedsize(Boolean fixedsize) {
140 this.fixedsize = fixedsize;
141 }
142
143 public String getHeight() {
144 return height;
145 }
146
147 public void setHeight(String height) {
148 this.height = height;
149 }
150
151 public String getHref() {
152 return href;
153 }
154
155 public void setHref(String href) {
156 this.href = href;
157 }
158
159 public String getId() {
160 return id;
161 }
162
163 public void setId(String id) {
164 this.id = id;
165 }
166
167 public String getPort() {
168 return port;
169 }
170
171 public void setPort(String port) {
172 this.port = port;
173 }
174
175 public Integer getRowCount() {
176 return rowCount;
177 }
178
179 public void setRowCount(Integer rows) {
180 this.rowCount = rows;
181 }
182
183 public String getStyle() {
184 return style;
185 }
186
187 public void setStyle(String style) {
188 this.style = style;
189 }
190
191 public String getTarget() {
192 return target;
193 }
194
195 public void setTarget(String target) {
196 this.target = target;
197 }
198
199 public String getTitle() {
200 return title;
201 }
202
203 public void setTitle(String title) {
204 this.title = title;
205 }
206
207 public String getTooltip() {
208 return tooltip;
209 }
210
211 public void setTooltip(String tooltip) {
212 this.tooltip = tooltip;
213 }
214
215 public VAlign getValign() {
216 return valign;
217 }
218
219 public void setValign(VAlign valign) {
220 this.valign = valign;
221 }
222
223 public String getWidth() {
224 return width;
225 }
226
227 public void setWidth(String width) {
228 this.width = width;
229 }
230
231 public List<TableRow> getRows() {
232 return rows;
233 }
234
235 public void setRows(List<TableRow> tableRows) {
236 this.rows = tableRows;
237 }
238
239 }