📄 row.html
字号:
<PRE>
protected int <B>horizontalAlignment</B></PRE>
<DL>
<DD>This is the vertical alignment.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="verticalAlignment"><!-- --></A><H3>
verticalAlignment</H3>
<PRE>
protected int <B>verticalAlignment</B></PRE>
<DL>
<DD>This is the vertical alignment.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="markupAttributes"><!-- --></A><H3>
markupAttributes</H3>
<PRE>
protected <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/util/Properties.html">Properties</A> <B>markupAttributes</B></PRE>
<DL>
<DD>Contains extra markupAttributes
<P>
<DL>
</DL>
</DL>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TD>
</TR>
</TABLE>
<A NAME="Row(int)"><!-- --></A><H3>
Row</H3>
<PRE>
protected <B>Row</B>(int columns)</PRE>
<DL>
<DD>Constructs a <CODE>Row</CODE> with a certain number of <VAR>columns</VAR>.
<P>
<DT><B>Parameters:</B><DD><CODE>columns</CODE> - a number of columns</DL>
<!-- ============ METHOD DETAIL ========== -->
<A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Method Detail</B></FONT></TD>
</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">ElementListener</A> listener)</PRE>
<DL>
<DD>Processes the element by adding it (or the different parts) to a <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">Element</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">Element</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.3/docs/api/java/util/ArrayList.html">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">Element</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>an <CODE>ArrayList</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="deleteColumn(int)"><!-- --></A><H3>
deleteColumn</H3>
<PRE>
void <B>deleteColumn</B>(int column)</PRE>
<DL>
<DD>Returns a <CODE>Row</CODE> that is a copy of this <CODE>Row</CODE> in which a certain column has been deleted.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>column</CODE> - the number of the column to delete</DL>
</DD>
</DL>
<HR>
<A NAME="addElement(java.lang.Object)"><!-- --></A><H3>
addElement</H3>
<PRE>
int <B>addElement</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html">Object</A> element)</PRE>
<DL>
<DD>Adds a <CODE>Cell</CODE> to the <CODE>Row</CODE>.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>element</CODE> - the element to add (currently only Cells and Tables supported)<DT><B>Returns:</B><DD>the column position the <CODE>Cell</CODE> was added, or <CODE>-1</CODE> if the <CODE>element</CODE> couldn't be added.</DL>
</DD>
</DL>
<HR>
<A NAME="addElement(java.lang.Object, int)"><!-- --></A><H3>
addElement</H3>
<PRE>
int <B>addElement</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html">Object</A> element, int column)</PRE>
<DL>
<DD>Adds an element to the <CODE>Row</CODE> at the position given.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>element</CODE> - the element to add. (currently only Cells and Tables supported<DD><CODE>column</CODE> - the position where to add the cell.<DT><B>Returns:</B><DD>the column position the <CODE>Cell</CODE> was added, or <CODE>-1</CODE> if the <CODE>Cell</CODE> couldn't be added.</DL>
</DD>
</DL>
<HR>
<A NAME="setElement(java.lang.Object, int)"><!-- --></A><H3>
setElement</H3>
<PRE>
void <B>setElement</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html">Object</A> aElement, int column)</PRE>
<DL>
<DD>Puts <CODE>Cell</CODE> to the <CODE>Row</CODE> at the position given, doesn't reserve colspan.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>aElement</CODE> - the cell to add.<DD><CODE>column</CODE> - the position where to add the cell.</DL>
</DD>
</DL>
<HR>
<A NAME="reserve(int)"><!-- --></A><H3>
reserve</H3>
<PRE>
boolean <B>reserve</B>(int column)</PRE>
<DL>
<DD>Reserves a <CODE>Cell</CODE> in the <CODE>Row</CODE>.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>column</CODE> - the column that has to be reserved.<DT><B>Returns:</B><DD><CODE>true</CODE> if the column was reserved, <CODE>false</CODE> if not.</DL>
</DD>
</DL>
<HR>
<A NAME="reserve(int, int)"><!-- --></A><H3>
reserve</H3>
<PRE>
boolean <B>reserve</B>(int column, int size)</PRE>
<DL>
<DD>Reserves a <CODE>Cell</CODE> in the <CODE>Row</CODE>.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>column</CODE> - the column that has to be reserved.<DD><CODE>size</CODE> - the number of columns<DT><B>Returns:</B><DD><CODE>true</CODE> if the column was reserved, <CODE>false</CODE> if not.</DL>
</DD>
</DL>
<HR>
<A NAME="setHorizontalAlignment(int)"><!-- --></A><H3>
setHorizontalAlignment</H3>
<PRE>
public void <B>setHorizontalAlignment</B>(int value)</PRE>
<DL>
<DD>Sets the horizontal alignment.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>value</CODE> - the new value</DL>
</DD>
</DL>
<HR>
<A NAME="setVerticalAlignment(int)"><!-- --></A><H3>
setVerticalAlignment</H3>
<PRE>
public void <B>setVerticalAlignment</B>(int value)</PRE>
<DL>
<DD>Sets the vertical alignment.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>value</CODE> - the new value</DL>
</DD>
</DL>
<HR>
<A NAME="isReserved(int)"><!-- --></A><H3>
isReserved</H3>
<PRE>
boolean <B>isReserved</B>(int column)</PRE>
<DL>
<DD>Returns true/false when this position in the <CODE>Row</CODE> has been reserved, either filled or through a colspan of an Element.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>column</CODE> - the column.<DT><B>Returns:</B><DD><CODE>true</CODE> if the column was reserved, <CODE>false</CODE> if not.</DL>
</DD>
</DL>
<HR>
<A NAME="getElementID(int)"><!-- --></A><H3>
getElementID</H3>
<PRE>
int <B>getElementID</B>(int column)</PRE>
<DL>
<DD>Returns the type-id of the element in a Row.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>column</CODE> - the column of which you'd like to know the type</DL>
</DD>
</DL>
<HR>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -