⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cell.html

📁 IText PDF开发工具说明文档,使用很方便。
💻 HTML
📖 第 1 页 / 共 5 页
字号:
<DL><DD>The width of the cell as a String. It can be an absolute value "100" or a percentage "20%".<P><DL></DL></DL><HR><A NAME="percentage"><!-- --></A><H3>percentage</H3><PRE>protected boolean <B>percentage</B></PRE><DL><DL></DL></DL><HR><A NAME="colspan"><!-- --></A><H3>colspan</H3><PRE>protected int <B>colspan</B></PRE><DL><DD>The colspan of the cell.<P><DL></DL></DL><HR><A NAME="rowspan"><!-- --></A><H3>rowspan</H3><PRE>protected int <B>rowspan</B></PRE><DL><DD>The rowspan of the cell.<P><DL></DL></DL><HR><A NAME="leading"><!-- --></A><H3>leading</H3><PRE>float <B>leading</B></PRE><DL><DD>The leading of the content inside the cell.<P><DL></DL></DL><HR><A NAME="header"><!-- --></A><H3>header</H3><PRE>protected boolean <B>header</B></PRE><DL><DD>Is this <CODE>Cell</CODE> a header?<P><DL></DL></DL><HR><A NAME="maxLines"><!-- --></A><H3>maxLines</H3><PRE>protected int <B>maxLines</B></PRE><DL><DD>Maximum number of lines allowed in the cell.   The default value of this property is not to limit the maximum number of lines (contributed by dperezcar@fcc.es)<P><DL></DL></DL><HR><A NAME="showTruncation"><!-- --></A><H3>showTruncation</H3><PRE><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> <B>showTruncation</B></PRE><DL><DD>If a truncation happens due to the maxLines property, then this text will  be added to indicate a truncation has happened. Default value is null, and means avoiding marking the truncation.   A useful value of this property could be e.g. "..." (contributed by dperezcar@fcc.es)<P><DL></DL></DL><HR><A NAME="useAscender"><!-- --></A><H3>useAscender</H3><PRE>protected boolean <B>useAscender</B></PRE><DL><DD>Indicates that the largest ascender height should be used to determine the height of the first line.  Note that this only has an effect when rendered to PDF.  Setting this to true can help with vertical alignment problems.<P><DL></DL></DL><HR><A NAME="useDescender"><!-- --></A><H3>useDescender</H3><PRE>protected boolean <B>useDescender</B></PRE><DL><DD>Indicates that the largest descender height should be added to the height of the last line (so characters like y don't dip into the border).   Note that this only has an effect when rendered to PDF.<P><DL></DL></DL><HR><A NAME="useBorderPadding"><!-- --></A><H3>useBorderPadding</H3><PRE>protected boolean <B>useBorderPadding</B></PRE><DL><DD>Adjusts the cell contents to compensate for border widths.  Note that this only has an effect when rendered to PDF.<P><DL></DL></DL><HR><A NAME="groupChange"><!-- --></A><H3>groupChange</H3><PRE>protected boolean <B>groupChange</B></PRE><DL><DD>Does this <CODE>Cell</CODE> force a group change?<P><DL></DL></DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TH></TR></TABLE><A NAME="Cell()"><!-- --></A><H3>Cell</H3><PRE>public <B>Cell</B>()</PRE><DL><DD>Constructs an empty <CODE>Cell</CODE>.<P></DL><HR><A NAME="Cell(boolean)"><!-- --></A><H3>Cell</H3><PRE>public <B>Cell</B>(boolean&nbsp;dummy)</PRE><DL><DD>Constructs an empty <CODE>Cell</CODE> (for internal use only).<P><DL><DT><B>Parameters:</B><DD><CODE>dummy</CODE> - a dummy value</DL></DL><HR><A NAME="Cell(java.lang.String)"><!-- --></A><H3>Cell</H3><PRE>public <B>Cell</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>&nbsp;content)</PRE><DL><DD>Constructs a <CODE>Cell</CODE> with a certain content.<p> The <CODE>String</CODE> will be converted into a <CODE>Paragraph</CODE>.<P><DL><DT><B>Parameters:</B><DD><CODE>content</CODE> - a <CODE>String</CODE></DL></DL><HR><A NAME="Cell(com.lowagie.text.Element)"><!-- --></A><H3>Cell</H3><PRE>public <B>Cell</B>(<A HREF="../../../com/lowagie/text/Element.html" title="interface in com.lowagie.text">Element</A>&nbsp;element)     throws <A HREF="../../../com/lowagie/text/BadElementException.html" title="class in com.lowagie.text">BadElementException</A></PRE><DL><DD>Constructs a <CODE>Cell</CODE> with a certain <CODE>Element</CODE>.<p> if the element is a <CODE>ListItem</CODE>, <CODE>Row</CODE> or <CODE>Cell</CODE>, an exception will be thrown.<P><DL><DT><B>Parameters:</B><DD><CODE>element</CODE> - the element<DT><B>Throws:</B><DD><CODE><A HREF="../../../com/lowagie/text/BadElementException.html" title="class in com.lowagie.text">BadElementException</A></CODE> - when the creator was called with a <CODE>ListItem</CODE>, <CODE>Row</CODE> or <CODE>Cell</CODE></DL></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Method Detail</B></FONT></TH></TR></TABLE><A NAME="process(com.lowagie.text.ElementListener)"><!-- --></A><H3>process</H3><PRE>public boolean <B>process</B>(<A HREF="../../../com/lowagie/text/ElementListener.html" title="interface in com.lowagie.text">ElementListener</A>&nbsp;listener)</PRE><DL><DD>Processes the element by adding it (or the different parts) to an <CODE>ElementListener</CODE>.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../com/lowagie/text/Element.html#process(com.lowagie.text.ElementListener)">process</A></CODE> in interface <CODE><A HREF="../../../com/lowagie/text/Element.html" title="interface in com.lowagie.text">Element</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../com/lowagie/text/Rectangle.html#process(com.lowagie.text.ElementListener)">process</A></CODE> in class <CODE><A HREF="../../../com/lowagie/text/Rectangle.html" title="class in com.lowagie.text">Rectangle</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>listener</CODE> - an <CODE>ElementListener</CODE><DT><B>Returns:</B><DD><CODE>true</CODE> if the element was processed successfully</DL></DD></DL><HR><A NAME="type()"><!-- --></A><H3>type</H3><PRE>public int <B>type</B>()</PRE><DL><DD>Gets the type of the text element.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../com/lowagie/text/Element.html#type()">type</A></CODE> in interface <CODE><A HREF="../../../com/lowagie/text/Element.html" title="interface in com.lowagie.text">Element</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../com/lowagie/text/Rectangle.html#type()">type</A></CODE> in class <CODE><A HREF="../../../com/lowagie/text/Rectangle.html" title="class in com.lowagie.text">Rectangle</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>a type</DL></DD></DL><HR><A NAME="getChunks()"><!-- --></A><H3>getChunks</H3><PRE>public <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> <B>getChunks</B>()</PRE><DL><DD>Gets all the chunks in this element.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../com/lowagie/text/Element.html#getChunks()">getChunks</A></CODE> in interface <CODE><A HREF="../../../com/lowagie/text/Element.html" title="interface in com.lowagie.text">Element</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../com/lowagie/text/Rectangle.html#getChunks()">getChunks</A></CODE> in class <CODE><A HREF="../../../com/lowagie/text/Rectangle.html" title="class in com.lowagie.text">Rectangle</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>an <CODE>ArrayList</CODE></DL></DD></DL><HR><A NAME="getHorizontalAlignment()"><!-- --></A><H3>getHorizontalAlignment</H3><PRE>public int <B>getHorizontalAlignment</B>()</PRE><DL><DD>Gets the horizontal alignment.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>a value</DL></DD></DL><HR>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -