/** * Calculates the heights of the table. */ public void calculateHeightsFast() { calculateHeights(false); }
/** * Calculates the heights of the table. */ public void calculateHeightsFast() { calculateHeights(false); }
public Element getElement() { // force calculate height because it may be zero // and nothing will be flushed layoutTable.calculateHeights( true ); return layoutTable; }
/** * Calculates the heights of the table. */ public void calculateHeightsFast() { calculateHeights(false); }
public Element getElement() { // force calculate height because it may be zero // and nothing will be flushed layoutTable.calculateHeights( true ); return layoutTable; }
public Element getElement() { // force calculate height because it may be zero // and nothing will be flushed layoutTable.calculateHeights( true ); return layoutTable; }
public Element getElement() { // force calculate height because it may be zero // and nothing will be flushed layoutTable.calculateHeights( true ); return layoutTable; }
/** * Sets the full width of the table. * * @param totalWidth the full width of the table. */ public void setTotalWidth(float totalWidth) { if (this.totalWidth == totalWidth) return; this.totalWidth = totalWidth; totalHeight = 0; calculateWidths(); calculateHeights(true); }
/** * Sets the full width of the table. * * @param totalWidth the full width of the table. */ public void setTotalWidth(float totalWidth) { if (this.totalWidth == totalWidth) return; this.totalWidth = totalWidth; totalHeight = 0; calculateWidths(); calculateHeights(true); }
/** * Sets the full width of the table. * * @param totalWidth the full width of the table. */ public void setTotalWidth(float totalWidth) { if (this.totalWidth == totalWidth) return; this.totalWidth = totalWidth; totalHeight = 0; calculateWidths(); calculateHeights(true); }
private void flushTable() { if ( layoutTable != null ) { // force calculate height because it may be zero // and nothing will be flushed layoutTable.calculateHeights( true ); try { super.add( layoutTable ); } catch ( DocumentException e ) { throw new XWPFConverterException( e ); } } }
private void flushTable() { if ( layoutTable != null ) { // force calculate height because it may be zero // and nothing will be flushed layoutTable.calculateHeights( true ); try { super.add( layoutTable ); } catch ( DocumentException e ) { throw new ODFConverterException( e ); } } } }
private void flushTable() { if ( layoutTable != null ) { // force calculate height because it may be zero // and nothing will be flushed layoutTable.calculateHeights( true ); try { super.add( layoutTable ); } catch ( DocumentException e ) { throw new ODFConverterException( e ); } } } }
private void flushTable() { if ( layoutTable != null ) { // force calculate height because it may be zero // and nothing will be flushed layoutTable.calculateHeights( true ); try { super.add( layoutTable ); } catch ( DocumentException e ) { throw new XWPFConverterException( e ); } } }
/** * 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(float relativeWidths[]) throws DocumentException { if (relativeWidths.length != getNumberOfColumns()) throw new DocumentException("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(true); }
/** * 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(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(true); }
/** * 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(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(true); }
if ( maxHeight < 0.0f ) maxHeight = layoutTable.calculateHeights( true );
if ( maxHeight < 0.0f ) maxHeight = layoutTable.calculateHeights( true );
if ( maxHeight < 0.0f ) maxHeight = layoutTable.calculateHeights( true );