@Test public void should_generate_cell_tag_with_one_style() { createHtmlCellTag(); column.addCssCellStyle("border:1px"); assertThat(column.toHtml().toString()).isEqualTo("<" + column.getTag() + " style=\"border:1px\"></" + column.getTag() + ">"); }
public void addCssCellStyle(String cssCellStyle) { if (this.cssCellStyle == null) { this.cssCellStyle = new StringBuilder(); } else { this.cssCellStyle.append(STYLE_SEPARATOR); } this.cssCellStyle.append(cssCellStyle); }
HtmlColumn extends HtmlTagWithContent { public void addCssCellStyle(String cssCellStyle) { if (this.cssCellStyle == null) { this.cssCellStyle = new StringBuilder(); } else { this.cssCellStyle.append(STYLE_SEPARATOR); } this.cssCellStyle.append(cssCellStyle); } }
HtmlColumn extends HtmlTagWithContent { public void addCssCellStyle(String cssCellStyle) { if (this.cssCellStyle == null) { this.cssCellStyle = new StringBuilder(); } else { this.cssCellStyle.append(STYLE_SEPARATOR); } this.cssCellStyle.append(cssCellStyle); } HtmlColumn();  HtmlColumn(String displayFormat);  HtmlColumn(Boolean isHeader);  HtmlColumn(Boolean isHeader, String content);  HtmlColumn(Boolean isHeader, String content, Map<String, String> dynamicAttributes);  HtmlColumn(Boolean isHeader, String content, Map<String, String> dynamicAttributes, String displayTypes); }
HtmlColumn extends HtmlTagWithContent { public void addCssCellStyle(String cssCellStyle) { if (this.cssCellStyle == null) { this.cssCellStyle = new StringBuilder(); } else { this.cssCellStyle.append(STYLE_SEPARATOR); } this.cssCellStyle.append(cssCellStyle); } HtmlColumn();  HtmlColumn(String displayFormat);  HtmlColumn(Boolean isHeader);  HtmlColumn(Boolean isHeader, String content);  HtmlColumn(Boolean isHeader, String content, Map<String, String> dynamicAttributes);  HtmlColumn(Boolean isHeader, String content, Map<String, String> dynamicAttributes, String displayTypes); Boolean isHeaderColumn(); ColumnConfiguration getColumnConfiguration(); void setColumnConfiguration(ColumnConfiguration columnConfiguration); void addCssClass(String cssClass); void addCssCellClass(String cssCellClass); void addCssCellStyle(String cssCellStyle); Set<String> getEnabledDisplayTypes(); void setEnabledDisplayTypes(Set<String> enabledDisplayTypes); StringBuilder getCssCellStyle(); StringBuilder getCssCellClass(); }
HtmlColumn extends HtmlTagWithContent { public void addCssCellStyle(String cssCellStyle) { if (this.cssCellStyle == null) { this.cssCellStyle = new StringBuilder(); } else { this.cssCellStyle.append(STYLE_SEPARATOR); } this.cssCellStyle.append(cssCellStyle); } HtmlColumn();  HtmlColumn(String displayFormat);  HtmlColumn(Boolean isHeader);  HtmlColumn(Boolean isHeader, String content);  HtmlColumn(Boolean isHeader, String content, Map<String, String> dynamicAttributes);  HtmlColumn(Boolean isHeader, String content, Map<String, String> dynamicAttributes, String displayTypes); Boolean isHeaderColumn(); ColumnConfiguration getColumnConfiguration(); void setColumnConfiguration(ColumnConfiguration columnConfiguration); void addCssClass(String cssClass); void addCssCellClass(String cssCellClass); void addCssCellStyle(String cssCellStyle); Set<String> getEnabledDisplayTypes(); void setEnabledDisplayTypes(Set<String> enabledDisplayTypes); StringBuilder getCssCellStyle(); StringBuilder getCssCellClass();  }