/** * Sets the HTML entity translator for all cells in the table. * It will also remove any other translator set. * Nothing will happen if the argument is null. * @param htmlElementTranslator translator * @return this to allow chaining */ public AsciiTable setHtmlElementTranslator(HtmlElementTranslator htmlElementTranslator) { for(AT_Row row : this.rows){ if(row.getType()==TableRowType.CONTENT){ row.setHtmlElementTranslator(htmlElementTranslator); } } return this; }
/** * Sets the HTML entity translator for all cells in the table. * It will also remove any other translator set. * Nothing will happen if the argument is null. * @param htmlElementTranslator translator * @return this to allow chaining */ public AsciiTable setHtmlElementTranslator(HtmlElementTranslator htmlElementTranslator) { for(AT_Row row : this.rows){ if(row.getType()==TableRowType.CONTENT){ row.setHtmlElementTranslator(htmlElementTranslator); } } return this; }