5 private JComponent component;
9 private GridBagConstraints c;
11 public Cell(JComponent btn, GridBagConstraints c) {
13 colspan = c.gridwidth;
14 rowspan = c.gridheight; // ignoring for now
18 public String toHTML(String id) {
19 String style = c.getStyle(false);
20 return "<td id='" + id +"' " + (colspan < 2 ? "" : "colspan='" + colspan + "' ")
21 + style + "><span " + c.getStyle(true) + ">" + component.toHTML() + "</span></td>";