📄 table.html
字号:
<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>static boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/lowagie/text/Table.html#isTag(java.lang.String)">isTag</A></B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> tag)</CODE>
<BR>
Checks if a given tag corresponds with this object.</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">Cell</A> aCell, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/awt/Point.html">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.3/docs/api/java/util/Iterator.html">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> float</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/lowagie/text/Table.html#left()">left</A></B>()</CODE>
<BR>
This method throws an <CODE>UnsupportedOperationException</CODE>.</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#left(int)">left</A></B>(int margin)</CODE>
<BR>
This method throws an <CODE>UnsupportedOperationException</CODE>.</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.3/docs/api/java/util/ArrayList.html">ArrayList</A> someRows, <A HREF="../../../com/lowagie/text/Cell.html">Cell</A> aCell, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/awt/Point.html">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">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> float</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/lowagie/text/Table.html#right()">right</A></B>()</CODE>
<BR>
This method throws an <CODE>UnsupportedOperationException</CODE>.</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#right(int)">right</A></B>(int margin)</CODE>
<BR>
This method throws an <CODE>UnsupportedOperationException</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#setAbsWidth(java.lang.String)">setAbsWidth</A></B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> width)</CODE>
<BR>
Sets the width of this table (in percentage of the available space).</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.3/docs/api/java/lang/String.html">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#setAlternatingRowAttribute(java.lang.String, java.lang.String, java.lang.String)">setAlternatingRowAttribute</A></B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> name, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> value0, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> value1)</CODE>
<BR>
Allows clients to set up alternating attributes for each Row in the 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#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#setBottom(int)">setBottom</A></B>(int value)</CODE>
<BR>
This method throws an <CODE>UnsupportedOperationException</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#setCellpadding(float)">setCellpadding</A></B>(float value)</CODE>
<BR>
<B>Deprecated.</B> <I>use setSpacing instead</I></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#setCellspacing(float)">setCellspacing</A></B>(float value)</CODE>
<BR>
<B>Deprecated.</B> <I>use setPadding instead</I></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.3/docs/api/java/awt/Point.html">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#setDebug(boolean)">setDebug</A></B>(boolean aDebug)</CODE>
<BR>
Performs extra checks when executing table code (currently only when cells are added).</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#setDefaultCellBackgroundColor(java.awt.Color)">setDefaultCellBackgroundColor</A></B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/awt/Color.html">Color</A> color)</CODE>
<BR>
Changes the backgroundcolor in the default layout of the <CODE>Cell</CODE>s added with method <CODE>addCell(String content)</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#setDefaultCellBorder(int)">setDefaultCellBorder</A></B>(int value)</CODE>
<BR>
Changes the border in the default layout of the <CODE>Cell</CODE>s added with method <CODE>addCell(String content)</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#setDefaultCellBorderColor(java.awt.Color)">setDefaultCellBorderColor</A></B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/awt/Color.html">Color</A> color)</CODE>
<BR>
Changes the bordercolor in the default layout of the <CODE>Cell</CODE>s added with method <CODE>addCell(String content)</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#setDefaultCellBorderWidth(float)">setDefaultCellBorderWidth</A></B>(float value)</CODE>
<BR>
Changes the width of the borders in the default layout of the <CODE>Cell</CODE>s added with method <CODE>addCell(String content)</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#setDefaultCellGrayFill(float)">setDefaultCellGrayFill</A></B>(float value)</CODE>
<BR>
Changes the grayfill in the default layout of the <CODE>Cell</CODE>s added with method <CODE>addCell(String content)</CODE>.</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 + -