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