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