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