/** * Sets left and right padding for all cells in the table. * @param padding new padding for left and right, ignored if smaller than 0 * @return this to allow chaining */ public AsciiTable setPaddingLeftRight(int padding){ for(AT_Row row : this.rows){ if(row.getType()==TableRowType.CONTENT){ row.setPaddingLeftRight(padding); } } return this; }
/** * Sets left and right padding for all cells in the table. * @param padding new padding for left and right, ignored if smaller than 0 * @return this to allow chaining */ public AsciiTable setPaddingLeftRight(int padding){ for(AT_Row row : this.rows){ if(row.getType()==TableRowType.CONTENT){ row.setPaddingLeftRight(padding); } } return this; }
/** * Sets left and right padding for all cells in the table (only if both values are not smaller than 0). * @param paddingLeft new left padding, ignored if smaller than 0 * @param paddingRight new right padding, ignored if smaller than 0 * @return this to allow chaining */ public AsciiTable setPaddingLeftRight(int paddingLeft, int paddingRight){ for(AT_Row row : this.rows){ if(row.getType()==TableRowType.CONTENT){ row.setPaddingLeftRight(paddingLeft, paddingRight); } } return this; }
/** * Sets left and right padding for all cells in the table (only if both values are not smaller than 0). * @param paddingLeft new left padding, ignored if smaller than 0 * @param paddingRight new right padding, ignored if smaller than 0 * @return this to allow chaining */ public AsciiTable setPaddingLeftRight(int paddingLeft, int paddingRight){ for(AT_Row row : this.rows){ if(row.getType()==TableRowType.CONTENT){ row.setPaddingLeftRight(paddingLeft, paddingRight); } } return this; }