/** * Sets the right padding for all cells in the table. * @param paddingRight new padding, ignored if smaller than 0 * @return this to allow chaining */ public AsciiTable setPaddingRight(int paddingRight) { for(AT_Row row : this.rows){ if(row.getType()==TableRowType.CONTENT){ row.setPaddingRight(paddingRight); } } return this; }
/** * Sets all padding for all cells in the table to the same value. * @param padding new padding for top, bottom, left, and right, ignored if smaller than 0 * @return this to allow chaining */ public AsciiTable setPadding(int padding){ for(AT_Row row : this.rows){ if(row.getType()==TableRowType.CONTENT){ row.setPadding(padding); } } return this; }
/** * Sets the left padding character for all cells in the table. * @param paddingLeftChar new padding character, ignored if null * @return this to allow chaining */ public AsciiTable setPaddingLeftChar(Character paddingLeftChar) { for(AT_Row row : this.rows){ if(row.getType()==TableRowType.CONTENT){ row.setPaddingLeftChar(paddingLeftChar); } } 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; }
/** * 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 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 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 the top padding character for all cells in the table. * @param paddingTopChar new padding character, ignored if null * @return this to allow chaining */ public AsciiTable setPaddingTopChar(Character paddingTopChar) { for(AT_Row row : this.rows){ if(row.getType()==TableRowType.CONTENT){ row.setPaddingTopChar(paddingTopChar); } } return this; }
/** * Sets the bottom padding for all cells in the table. * @param paddingBottom new padding, ignored if smaller than 0 * @return this to allow chaining */ public AsciiTable setPaddingBottom(int paddingBottom) { for(AT_Row row : this.rows){ if(row.getType()==TableRowType.CONTENT){ row.setPaddingBottom(paddingBottom); } } return this; }
/** * Sets the bottom padding character for all cells in the table. * @param paddingBottomChar new padding character, ignored if null * @return this to allow chaining */ public AsciiTable setPaddingBottomChar(Character paddingBottomChar) { for(AT_Row row : this.rows){ if(row.getType()==TableRowType.CONTENT){ row.setPaddingBottomChar(paddingBottomChar); } } return this; }
/** * Sets the left padding for all cells in the table. * @param paddingLeft new padding, ignored if smaller than 0 * @return this to allow chaining */ public AsciiTable setPaddingLeft(int paddingLeft) { for(AT_Row row : this.rows){ if(row.getType()==TableRowType.CONTENT){ row.setPaddingLeft(paddingLeft); } } return this; }
/** * Sets the left padding character for all cells in the table. * @param paddingLeftChar new padding character, ignored if null * @return this to allow chaining */ public AsciiTable setPaddingLeftChar(Character paddingLeftChar) { for(AT_Row row : this.rows){ if(row.getType()==TableRowType.CONTENT){ row.setPaddingLeftChar(paddingLeftChar); } } 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 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 all padding for all cells in the table to the same value. * @param padding new padding for top, bottom, left, and right, ignored if smaller than 0 * @return this to allow chaining */ public AsciiTable setPadding(int padding){ for(AT_Row row : this.rows){ if(row.getType()==TableRowType.CONTENT){ row.setPadding(padding); } } return this; }
/** * Sets the right padding character for all cells in the table. * @param paddingRightChar new padding character, ignored if null * @return this to allow chaining */ public AsciiTable setPaddingRightChar(Character paddingRightChar) { for(AT_Row row : this.rows){ if(row.getType()==TableRowType.CONTENT){ row.setPaddingRightChar(paddingRightChar); } } return this; }
/** * Sets the top padding for all cells in the table. * @param paddingTop new padding, ignored if smaller than 0 * @return this to allow chaining */ public AsciiTable setPaddingTop(int paddingTop) { for(AT_Row row : this.rows){ if(row.getType()==TableRowType.CONTENT){ row.setPaddingTop(paddingTop); } } return this; }
/** * Sets the top padding character for all cells in the table. * @param paddingTopChar new padding character, ignored if null * @return this to allow chaining */ public AsciiTable setPaddingTopChar(Character paddingTopChar) { for(AT_Row row : this.rows){ if(row.getType()==TableRowType.CONTENT){ row.setPaddingTopChar(paddingTopChar); } } return this; }
/** * Sets the top padding for all cells in the table. * @param paddingTop new padding, ignored if smaller than 0 * @return this to allow chaining */ public AsciiTable setPaddingTop(int paddingTop) { for(AT_Row row : this.rows){ if(row.getType()==TableRowType.CONTENT){ row.setPaddingTop(paddingTop); } } return this; }