📄 table.html
字号:
<TD><CODE><B><A HREF="../../../com/lowagie/text/Table.html#getWidth()">getWidth</A></B>()</CODE><BR> Gets the table width (a percentage).</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> float[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/lowagie/text/Table.html#getWidths(float, float)">getWidths</A></B>(float left, float totalWidth)</CODE><BR> Gets an array with the positions of the borders between every column.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/lowagie/text/Table.html#insertTable(com.lowagie.text.Table)">insertTable</A></B>(<A HREF="../../../com/lowagie/text/Table.html" title="class in com.lowagie.text">Table</A> aTable)</CODE><BR> To put a table within the existing table at the current position generateTable will of course re-arrange the widths of the columns.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/lowagie/text/Table.html#insertTable(com.lowagie.text.Table, int, int)">insertTable</A></B>(<A HREF="../../../com/lowagie/text/Table.html" title="class in com.lowagie.text">Table</A> aTable, int row, int column)</CODE><BR> To put a table within the existing table at the given position generateTable will of course re-arrange the widths of the columns.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/lowagie/text/Table.html#insertTable(com.lowagie.text.Table, java.awt.Point)">insertTable</A></B>(<A HREF="../../../com/lowagie/text/Table.html" title="class in com.lowagie.text">Table</A> aTable, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/Point.html?is-external=true" title="class or interface in java.awt">Point</A> aLocation)</CODE><BR> To put a table within the existing table at the given position generateTable will of course re-arrange the widths of the columns.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/lowagie/text/Table.html#isCellsFitPage()">isCellsFitPage</A></B>()</CODE><BR> Checks if the cells of this <CODE>Table</CODE> have to fit a page.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/lowagie/text/Table.html#isComplete()">isComplete</A></B>()</CODE><BR> Indicates if the element is complete or not.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/lowagie/text/Table.html#isConvert2pdfptable()">isConvert2pdfptable</A></B>()</CODE><BR> Method to check if the Table should be converted to a PdfPTable or not.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/lowagie/text/Table.html#isLocked()">isLocked</A></B>()</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/lowagie/text/Table.html#isNestable()">isNestable</A></B>()</CODE><BR> Checks if this element is nestable.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/lowagie/text/Table.html#isNotAddedYet()">isNotAddedYet</A></B>()</CODE><BR> Indicates if this is the first time the section is added.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/lowagie/text/Table.html#isTableFitsPage()">isTableFitsPage</A></B>()</CODE><BR> Checks if this <CODE>Table</CODE> has to fit a page.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>private boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/lowagie/text/Table.html#isValidLocation(com.lowagie.text.Cell, java.awt.Point)">isValidLocation</A></B>(<A HREF="../../../com/lowagie/text/Cell.html" title="class in com.lowagie.text">Cell</A> aCell, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/Point.html?is-external=true" title="class or interface in java.awt">Point</A> aLocation)</CODE><BR> check if <CODE>Cell</CODE> 'fits' the table.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Iterator.html?is-external=true" title="class or interface in java.util">Iterator</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/lowagie/text/Table.html#iterator()">iterator</A></B>()</CODE><BR> Gets an <CODE>Iterator</CODE> of all the <CODE>Row</CODE>s.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>private void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/lowagie/text/Table.html#mergeInsertedTables()">mergeInsertedTables</A></B>()</CODE><BR> Integrates all added tables and recalculates column widths.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>private void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/lowagie/text/Table.html#placeCell(java.util.ArrayList, com.lowagie.text.Cell, java.awt.Point)">placeCell</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/ArrayList.html?is-external=true" title="class or interface in java.util">ArrayList</A> someRows, <A HREF="../../../com/lowagie/text/Cell.html" title="class in com.lowagie.text">Cell</A> aCell, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/Point.html?is-external=true" title="class or interface in java.awt">Point</A> aPosition)</CODE><BR> Inserts a Cell in a cell-array and reserves cells defined by row-/colspan.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/lowagie/text/Table.html#process(com.lowagie.text.ElementListener)">process</A></B>(<A HREF="../../../com/lowagie/text/ElementListener.html" title="interface in com.lowagie.text">ElementListener</A> listener)</CODE><BR> Processes the element by adding it (or the different parts) to an <CODE>ElementListener</CODE>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/lowagie/text/Table.html#setAlignment(int)">setAlignment</A></B>(int value)</CODE><BR> Sets the horizontal alignment.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/lowagie/text/Table.html#setAlignment(java.lang.String)">setAlignment</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> alignment)</CODE><BR> Sets the alignment of this paragraph.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/lowagie/text/Table.html#setAutoFillEmptyCells(boolean)">setAutoFillEmptyCells</A></B>(boolean aDoAutoFill)</CODE><BR> Enables/disables automatic insertion of empty cells before table is rendered.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/lowagie/text/Table.html#setCellsFitPage(boolean)">setCellsFitPage</A></B>(boolean fitPage)</CODE><BR> Allows you to control when a page break occurs.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/lowagie/text/Table.html#setComplete(boolean)">setComplete</A></B>(boolean complete)</CODE><BR> If you invoke setComplete(false), you indicate that the content of the object isn't complete yet; it can be added to the document partially, but more will follow.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/lowagie/text/Table.html#setConvert2pdfptable(boolean)">setConvert2pdfptable</A></B>(boolean convert2pdfptable)</CODE><BR> If set to true, iText will try to convert the Table to a PdfPTable.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>private void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/lowagie/text/Table.html#setCurrentLocationToNextValidPosition(java.awt.Point)">setCurrentLocationToNextValidPosition</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/Point.html?is-external=true" title="class or interface in java.awt">Point</A> aLocation)</CODE><BR> Sets current col/row to valid(empty) pos after addCell/Table</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/lowagie/text/Table.html#setDefaultCell(com.lowagie.text.Cell)">setDefaultCell</A></B>(<A HREF="../../../com/lowagie/text/Cell.html" title="class in com.lowagie.text">Cell</A> value)</CODE><BR> Sets the default layout of the Table to the provided Cell</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/lowagie/text/Table.html#setDefaultLayout(com.lowagie.text.Cell)">setDefaultLayout</A></B>(<A HREF="../../../com/lowagie/text/Cell.html" title="class in com.lowagie.text">Cell</A> value)</CODE><BR> <B>Deprecated.</B> <I>As of iText 2.0.7, replaced by <A HREF="../../../com/lowagie/text/Table.html#setDefaultCell(com.lowagie.text.Cell)"><CODE>setDefaultCell(Cell)</CODE></A>, scheduled for removal at 2.2.0</I></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -