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