📄 jco.table.html
字号:
</DL>
<HR>
<A NAME="nextRow()"><!-- --></A><H3>
nextRow</H3>
<PRE>
public final boolean <B>nextRow</B>()</PRE>
<DL>
<DD>Moves the row pointer to the next row. Used to loop through table rows, e.g.<BR> <pre><tt> if (table.getNumRows() > 0) { table.firstRow(); do { ... while(table.nextRow()); } </tt></pre><DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD><tt>false</tt> if at the end of record, <tt>true</tt> otherwise</DL>
</DD>
</DL>
<HR>
<A NAME="previousRow()"><!-- --></A><H3>
previousRow</H3>
<PRE>
public final boolean <B>previousRow</B>()</PRE>
<DL>
<DD>Moves the row pointer to the previous row. Used to loop through table rows, e.g.<BR> <pre><tt> if (table.getNumRows() > 0) { table.lastRow() do { ... while(table.previousRow()); } </tt></pre><DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD><tt>false</tt> if at the beginning of record, <tt>true</tt> otherwise</DL>
</DD>
</DL>
<HR>
<A NAME="getRow()"><!-- --></A><H3>
getRow</H3>
<PRE>
public final int <B>getRow</B>()</PRE>
<DL>
<DD>Returns the current row number. The first row number is 0, the second is 1, and so on.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the current row number</DL>
</DD>
</DL>
<HR>
<A NAME="setRow(int)"><!-- --></A><H3>
setRow</H3>
<PRE>
public void <B>setRow</B>(int pos)</PRE>
<DL>
<DD>Sets the row pointer to the specified position. The first row is 0, the second 0, and so on. Most likely to be used to loop through table rows, e.g.<BR> <pre><tt> int num_rows = table.getNumRows(); for (int irow = 0; i < num_rows; irow++) { table.setRow(irow); .... } </tt></pre><DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>pos</CODE> - the position to set the row pointer to</DL>
</DD>
</DL>
<HR>
<A NAME="appendRow()"><!-- --></A><H3>
appendRow</H3>
<PRE>
public void <B>appendRow</B>()</PRE>
<DL>
<DD>Appends a new row at the end of the table and moves the row pointer such that it points to the newly appended row.<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="appendRows(int)"><!-- --></A><H3>
appendRows</H3>
<PRE>
public void <B>appendRows</B>(int num_rows)</PRE>
<DL>
<DD>Appends the specified number of empty rows at the end of the table. The row pointer will be positioned at the first newly added row.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>num_rows</CODE> - the number of empty rows to append</DL>
</DD>
</DL>
<HR>
<A NAME="insertRow(int)"><!-- --></A><H3>
insertRow</H3>
<PRE>
public void <B>insertRow</B>(int pos)</PRE>
<DL>
<DD>Inserts a new empty row before the specified position<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>pos</CODE> - the index of the row <em>before</em> to insert the new row</DL>
</DD>
</DL>
<HR>
<A NAME="deleteRow()"><!-- --></A><H3>
deleteRow</H3>
<PRE>
public void <B>deleteRow</B>()</PRE>
<DL>
<DD>Deletes the current row<br> <em>Note:</em>The row pointer will be left untouched unless it would point to a row that would have become invalid due to the deletion operation. In this case the row pointer will be repositioned to the row at <tt>(getNumRows() - 1)</tt>.<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="deleteRow(int)"><!-- --></A><H3>
deleteRow</H3>
<PRE>
public void <B>deleteRow</B>(int pos)</PRE>
<DL>
<DD>Deletes the row at the specified position.<br> <em>Note:</em>The row pointer will be left untouched unless it would point to a row that would have become invalid due to deletion. In this case the row pointer will be repositioned to the row at <tt>(getNumRows() - 1)</tt>.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>pos</CODE> - the index of the row to delete</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>
<!-- ========== START OF NAVBAR ========== -->
<A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/JCO.Table.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../com/sap/mw/jco/JCO.Structure.html"><B>PREV CLASS</B></A>
<A HREF="../../../../com/sap/mw/jco/JCO.Throughput.html"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../index.html" TARGET="_top"><B>FRAMES</B></A>
<A HREF="JCO.Table.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY: INNER | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<!-- =========== END OF NAVBAR =========== -->
<HR>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -