/** * Sets top and bottom padding for all cells in the row. * @param padding new padding for top and bottom, ignored if smaller than 0 * @return this to allow chaining */ public AT_Row setPaddingTopBottom(int padding){ if(this.hasCells()){ for(AT_Cell cell : this.getCells()){ cell.getContext().setPaddingTopBottom(padding); } } return this; }
/** * Sets top and bottom padding for all cells in the row. * @param padding new padding for top and bottom, ignored if smaller than 0 * @return this to allow chaining */ public AT_Row setPaddingTopBottom(int padding){ if(this.hasCells()){ for(AT_Cell cell : this.getCells()){ cell.getContext().setPaddingTopBottom(padding); } } return this; }
/** * Sets top and bottom padding for all cells in the row (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 AT_Row setPaddingTopBottom(int paddingTop, int paddingBottom){ if(this.hasCells()){ for(AT_Cell cell : this.getCells()){ cell.getContext().setPaddingTopBottom(paddingTop, paddingBottom); } } return this; }
/** * Sets top and bottom padding for all cells in the row (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 AT_Row setPaddingTopBottom(int paddingTop, int paddingBottom){ if(this.hasCells()){ for(AT_Cell cell : this.getCells()){ cell.getContext().setPaddingTopBottom(paddingTop, paddingBottom); } } return this; }