/** * Sets the full width of the table. * * @param totalWidth the full width of the table. */ public void setTotalWidth(final float totalWidth) { if (this.totalWidth == totalWidth) { return; } this.totalWidth = totalWidth; totalHeight = 0; calculateWidths(); calculateHeights(); }
/** * Sets the full width of the table. * * @param totalWidth the full width of the table. */ public void setTotalWidth(final float totalWidth) { if (this.totalWidth == totalWidth) { return; } this.totalWidth = totalWidth; totalHeight = 0; calculateWidths(); calculateHeights(); }
float childTableHeight=childTable.calculateHeights(); if(tableHeight>childTableHeight){ for(int j=0;j<columns.size();j++){
/** * Sets the relative widths of the table. * * @param relativeWidths the relative widths of the table. * @throws DocumentException if the number of widths is different than the * number of columns */ public void setWidths(final float relativeWidths[]) throws DocumentException { if (relativeWidths.length != getNumberOfColumns()) { throw new DocumentException(MessageLocalization.getComposedMessage("wrong.number.of.columns")); } this.relativeWidths = new float[relativeWidths.length]; System.arraycopy(relativeWidths, 0, this.relativeWidths, 0, relativeWidths.length); absoluteWidths = new float[relativeWidths.length]; totalHeight = 0; calculateWidths(); calculateHeights(); }
/** * Sets the relative widths of the table. * * @param relativeWidths the relative widths of the table. * @throws DocumentException if the number of widths is different than the * number of columns */ public void setWidths(final float relativeWidths[]) throws DocumentException { if (relativeWidths.length != getNumberOfColumns()) { throw new DocumentException(MessageLocalization.getComposedMessage("wrong.number.of.columns")); } this.relativeWidths = new float[relativeWidths.length]; System.arraycopy(relativeWidths, 0, this.relativeWidths, 0, relativeWidths.length); absoluteWidths = new float[relativeWidths.length]; totalHeight = 0; calculateWidths(); calculateHeights(); }
float childTableHeight=childTable.calculateHeights(); if(tableHeight>childTableHeight){ for(int j=0;j<columns.size();j++){