blob: 199cda0c9d64c108274a0398c1bf5be928b8257d [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_45) on Tue Mar 28 22:15:31 CEST 2017 -->
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<TITLE>
Table (Simple ODF v0.8.2-incubating - http://odftoolkit)
</TITLE>
<META NAME="date" CONTENT="2017-03-28">
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">
<SCRIPT type="text/javascript">
function windowTitle()
{
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="Table (Simple ODF v0.8.2-incubating - http://odftoolkit)";
}
}
</SCRIPT>
<NOSCRIPT>
</NOSCRIPT>
</HEAD>
<BODY BGCOLOR="white" onload="windowTitle();">
<HR>
<!-- ========= START OF TOP NAVBAR ======= -->
<A NAME="navbar_top"><!-- --></A>
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/Table.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../../org/odftoolkit/simple/table/Row.html" title="class in org.odftoolkit.simple.table"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../../org/odftoolkit/simple/table/Table.TableBuilder.html" title="class in org.odftoolkit.simple.table"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../index.html?org/odftoolkit/simple/table/Table.html" target="_top"><B>FRAMES</B></A> &nbsp;
&nbsp;<A HREF="Table.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
&nbsp;<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY:&nbsp;<A HREF="#nested_class_summary">NESTED</A>&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_top"></A>
<!-- ========= END OF TOP NAVBAR ========= -->
<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
org.odftoolkit.simple.table</FONT>
<BR>
Class Table</H2>
<PRE>
<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</A>
<IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../org/odftoolkit/simple/Component.html" title="class in org.odftoolkit.simple">org.odftoolkit.simple.Component</A>
<IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>org.odftoolkit.simple.table.Table</B>
</PRE>
<HR>
<DL>
<DT><PRE>public class <B>Table</B><DT>extends <A HREF="../../../../org/odftoolkit/simple/Component.html" title="class in org.odftoolkit.simple">Component</A></DL>
</PRE>
<P>
Table represents the table feature in ODF spreadsheet and text documents.
<p>
Table provides methods to get/add/delete/modify table column/row/cell.
<P>
<P>
<HR>
<P>
<!-- ======== NESTED CLASS SUMMARY ======== -->
<A NAME="nested_class_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Nested Class Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;class</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/odftoolkit/simple/table/Table.TableBuilder.html" title="class in org.odftoolkit.simple.table">Table.TableBuilder</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This is a tool class which supplies all of the table creation detail.</TD>
</TR>
</TABLE>
&nbsp;<!-- =========== FIELD SUMMARY =========== -->
<A NAME="field_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Field Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;<A HREF="../../../../org/odftoolkit/simple/Document.html" title="class in org.odftoolkit.simple">Document</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/odftoolkit/simple/table/Table.html#mDocument">mDocument</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/odftoolkit/simple/table/Table.html#mIsCellStyleInheritance">mIsCellStyleInheritance</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/odftoolkit/simple/table/Table.html#mIsDescribedBySingleElement">mIsDescribedBySingleElement</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/odftoolkit/simple/table/Table.html#mIsSpreadsheet">mIsSpreadsheet</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
</TABLE>
&nbsp;
<!-- ========== METHOD SUMMARY =========== -->
<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Method Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../org/odftoolkit/simple/table/Column.html" title="class in org.odftoolkit.simple.table">Column</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/odftoolkit/simple/table/Table.html#appendColumn()">appendColumn</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Append a column at the end of the table.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="http://download.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A>&lt;<A HREF="../../../../org/odftoolkit/simple/table/Column.html" title="class in org.odftoolkit.simple.table">Column</A>&gt;</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/odftoolkit/simple/table/Table.html#appendColumns(int)">appendColumns</A></B>(int&nbsp;columnCount)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Append a specific number of columns to the right of the table.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../org/odftoolkit/simple/table/Row.html" title="class in org.odftoolkit.simple.table">Row</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/odftoolkit/simple/table/Table.html#appendRow()">appendRow</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Append a row to the end of the table.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="http://download.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A>&lt;<A HREF="../../../../org/odftoolkit/simple/table/Row.html" title="class in org.odftoolkit.simple.table">Row</A>&gt;</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/odftoolkit/simple/table/Table.html#appendRows(int)">appendRows</A></B>(int&nbsp;rowCount)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Append a specific number of rows to the end of the table.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/odftoolkit/simple/table/Table.html#applyStyle(org.odftoolkit.simple.table.TableTemplate)">applyStyle</A></B>(<A HREF="../../../../org/odftoolkit/simple/table/TableTemplate.html" title="class in org.odftoolkit.simple.table">TableTemplate</A>&nbsp;template)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Apply the formatting specified in the template to corresponding table
cells.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../org/odftoolkit/simple/table/Cell.html" title="class in org.odftoolkit.simple.table">Cell</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/odftoolkit/simple/table/Table.html#getCellByPosition(int, int)">getCellByPosition</A></B>(int&nbsp;colIndex,
int&nbsp;rowIndex)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return a single cell that is positioned at the specified column and row.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../org/odftoolkit/simple/table/Cell.html" title="class in org.odftoolkit.simple.table">Cell</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/odftoolkit/simple/table/Table.html#getCellByPosition(java.lang.String)">getCellByPosition</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;address)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return a single cell that is positioned at the specified cell address.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../org/odftoolkit/simple/table/CellRange.html" title="class in org.odftoolkit.simple.table">CellRange</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/odftoolkit/simple/table/Table.html#getCellRangeByName(java.lang.String)">getCellRangeByName</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;name)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return a range of cells by a specified name.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../org/odftoolkit/simple/table/CellRange.html" title="class in org.odftoolkit.simple.table">CellRange</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/odftoolkit/simple/table/Table.html#getCellRangeByPosition(int, int, int, int)">getCellRangeByPosition</A></B>(int&nbsp;startCol,
int&nbsp;startRow,
int&nbsp;endCol,
int&nbsp;endRow)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return a range of cells within the specified range.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../org/odftoolkit/simple/table/CellRange.html" title="class in org.odftoolkit.simple.table">CellRange</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/odftoolkit/simple/table/Table.html#getCellRangeByPosition(java.lang.String, java.lang.String)">getCellRangeByPosition</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;startAddress,
<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;endAddress)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return a range of cells within the specified range.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../org/odftoolkit/simple/table/Column.html" title="class in org.odftoolkit.simple.table">Column</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/odftoolkit/simple/table/Table.html#getColumnByIndex(int)">getColumnByIndex</A></B>(int&nbsp;index)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the column at the specified index.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/odftoolkit/simple/table/Table.html#getColumnCount()">getColumnCount</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the column count of this table.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Iterator.html?is-external=true" title="class or interface in java.util">Iterator</A>&lt;<A HREF="../../../../org/odftoolkit/simple/table/Column.html" title="class in org.odftoolkit.simple.table">Column</A>&gt;</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/odftoolkit/simple/table/Table.html#getColumnIterator()">getColumnIterator</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return an Iterator of the column in this table.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="http://download.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A>&lt;<A HREF="../../../../org/odftoolkit/simple/table/Column.html" title="class in org.odftoolkit.simple.table">Column</A>&gt;</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/odftoolkit/simple/table/Table.html#getColumnList()">getColumnList</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return a list of columns in the current table.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/odftoolkit/simple/table/Table.html#getHeaderColumnCount()">getHeaderColumnCount</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the number of header columns in the table.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/odftoolkit/simple/table/Table.html#getHeaderRowCount()">getHeaderRowCount</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the number of header rows in this table.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../../org/odftoolkit/simple/table/Table.html" title="class in org.odftoolkit.simple.table">Table</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/odftoolkit/simple/table/Table.html#getInstance(org.odftoolkit.odfdom.dom.element.table.TableTableElement)">getInstance</A></B>(<A HREF="http://incubator.apache.org/odftoolkit/odfdom/index.html/apidocs/org/odftoolkit/odfdom/dom/element/table/TableTableElement.html?is-external=true" title="class or interface in org.odftoolkit.odfdom.dom.element.table">TableTableElement</A>&nbsp;element)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get a table feature instance by an instance of
<code>TableTableElement</code>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="http://incubator.apache.org/odftoolkit/odfdom/index.html/apidocs/org/odftoolkit/odfdom/dom/element/table/TableTableElement.html?is-external=true" title="class or interface in org.odftoolkit.odfdom.dom.element.table">TableTableElement</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/odftoolkit/simple/table/Table.html#getOdfElement()">getOdfElement</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return an instance of <code>TableTableElement</code> which represents
this feature.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../org/odftoolkit/simple/table/Row.html" title="class in org.odftoolkit.simple.table">Row</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/odftoolkit/simple/table/Table.html#getRowByIndex(int)">getRowByIndex</A></B>(int&nbsp;index)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the row at the specified index.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/odftoolkit/simple/table/Table.html#getRowCount()">getRowCount</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the row count of this table.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Iterator.html?is-external=true" title="class or interface in java.util">Iterator</A>&lt;<A HREF="../../../../org/odftoolkit/simple/table/Row.html" title="class in org.odftoolkit.simple.table">Row</A>&gt;</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/odftoolkit/simple/table/Table.html#getRowIterator()">getRowIterator</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return an Iterator of the row in this table.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="http://download.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A>&lt;<A HREF="../../../../org/odftoolkit/simple/table/Row.html" title="class in org.odftoolkit.simple.table">Row</A>&gt;</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/odftoolkit/simple/table/Table.html#getRowList()">getRowList</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return a list of table rows in the current table.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../org/odftoolkit/simple/style/DefaultStyleHandler.html" title="class in org.odftoolkit.simple.style">DefaultStyleHandler</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/odftoolkit/simple/table/Table.html#getStyleHandler()">getStyleHandler</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/odftoolkit/simple/table/Table.html#getTableName()">getTableName</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the table name.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;double</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/odftoolkit/simple/table/Table.html#getWidth()">getWidth</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the width of the table (in Millimeter).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="http://download.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A>&lt;<A HREF="../../../../org/odftoolkit/simple/table/Column.html" title="class in org.odftoolkit.simple.table">Column</A>&gt;</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/odftoolkit/simple/table/Table.html#insertColumnsBefore(int, int)">insertColumnsBefore</A></B>(int&nbsp;index,
int&nbsp;columnCount)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Insert a specific number of columns before the column whose index is
<code>index</code>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="http://download.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A>&lt;<A HREF="../../../../org/odftoolkit/simple/table/Row.html" title="class in org.odftoolkit.simple.table">Row</A>&gt;</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/odftoolkit/simple/table/Table.html#insertRowsBefore(int, int)">insertRowsBefore</A></B>(int&nbsp;index,
int&nbsp;rowCount)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Insert a specific number of rows before the row at <code>index</code>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/odftoolkit/simple/table/Table.html#isCellStyleInheritance()">isCellStyleInheritance</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return true if cell style is inherited when a new cell is added to the
table.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/odftoolkit/simple/table/Table.html#isProtected()">isProtected</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return true if the table is protected.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/odftoolkit/simple/table/Table.html#isUseRepeat()">isUseRepeat</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return true if the new created multiple columns/rows/cells are described
by a single element when it's possible.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../../org/odftoolkit/simple/table/Table.html" title="class in org.odftoolkit.simple.table">Table</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/odftoolkit/simple/table/Table.html#newTable(org.odftoolkit.simple.table.TableContainer)">newTable</A></B>(<A HREF="../../../../org/odftoolkit/simple/table/TableContainer.html" title="interface in org.odftoolkit.simple.table">TableContainer</A>&nbsp;tableContainer)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Construct the <code>Table</code> feature.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../../org/odftoolkit/simple/table/Table.html" title="class in org.odftoolkit.simple.table">Table</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/odftoolkit/simple/table/Table.html#newTable(org.odftoolkit.simple.table.TableContainer, int, int)">newTable</A></B>(<A HREF="../../../../org/odftoolkit/simple/table/TableContainer.html" title="interface in org.odftoolkit.simple.table">TableContainer</A>&nbsp;tableContainer,
int&nbsp;numRows,
int&nbsp;numCols)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Construct the <code>Table</code> feature with a specified row number and
column number.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../../org/odftoolkit/simple/table/Table.html" title="class in org.odftoolkit.simple.table">Table</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/odftoolkit/simple/table/Table.html#newTable(org.odftoolkit.simple.table.TableContainer, int, int, double, double)">newTable</A></B>(<A HREF="../../../../org/odftoolkit/simple/table/TableContainer.html" title="interface in org.odftoolkit.simple.table">TableContainer</A>&nbsp;tableContainer,
int&nbsp;numRows,
int&nbsp;numCols,
double&nbsp;marginLeft,
double&nbsp;marginRight)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Construct the <code>Table</code> feature with a specified row number and
column number.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../../org/odftoolkit/simple/table/Table.html" title="class in org.odftoolkit.simple.table">Table</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/odftoolkit/simple/table/Table.html#newTable(org.odftoolkit.simple.table.TableContainer, int, int, int, int)">newTable</A></B>(<A HREF="../../../../org/odftoolkit/simple/table/TableContainer.html" title="interface in org.odftoolkit.simple.table">TableContainer</A>&nbsp;tableContainer,
int&nbsp;numRows,
int&nbsp;numCols,
int&nbsp;headerRowNumber,
int&nbsp;headerColumnNumber)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Construct the <code>Table</code> feature with a specified row number,
column number, header row number, header column number.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../../org/odftoolkit/simple/table/Table.html" title="class in org.odftoolkit.simple.table">Table</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/odftoolkit/simple/table/Table.html#newTable(org.odftoolkit.simple.table.TableContainer, java.lang.String[], java.lang.String[], double[][])">newTable</A></B>(<A HREF="../../../../org/odftoolkit/simple/table/TableContainer.html" title="interface in org.odftoolkit.simple.table">TableContainer</A>&nbsp;tableContainer,
<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>[]&nbsp;rowLabel,
<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>[]&nbsp;columnLabel,
double[][]&nbsp;data)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Construct the Table feature with a specified 2 dimension array as the
data of this table.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../../org/odftoolkit/simple/table/Table.html" title="class in org.odftoolkit.simple.table">Table</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/odftoolkit/simple/table/Table.html#newTable(org.odftoolkit.simple.table.TableContainer, java.lang.String[], java.lang.String[], java.lang.String[][])">newTable</A></B>(<A HREF="../../../../org/odftoolkit/simple/table/TableContainer.html" title="interface in org.odftoolkit.simple.table">TableContainer</A>&nbsp;tableContainer,
<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>[]&nbsp;rowLabel,
<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>[]&nbsp;columnLabel,
<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>[][]&nbsp;data)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Construct the Table feature with a specified 2 dimension array as the
data of this table.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/odftoolkit/simple/table/Table.html#remove()">remove</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Remove this table from the document</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/odftoolkit/simple/table/Table.html#removeColumnsByIndex(int, int)">removeColumnsByIndex</A></B>(int&nbsp;startIndex,
int&nbsp;deleteColCount)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Remove a specific number of columns, starting from the column at
<code>index</code>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/odftoolkit/simple/table/Table.html#removeRowsByIndex(int, int)">removeRowsByIndex</A></B>(int&nbsp;startIndex,
int&nbsp;deleteRowCount)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Remove the specific number of rows, starting from the row at
<code>index</code>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/odftoolkit/simple/table/Table.html#setCellStyleInheritance(boolean)">setCellStyleInheritance</A></B>(boolean&nbsp;isEnabled)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method allows users to set whether cell style is inherited or not
when a new cell is added to the table.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/odftoolkit/simple/table/Table.html#setProtected(boolean)">setProtected</A></B>(boolean&nbsp;isProtected)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set if the table is protected.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/odftoolkit/simple/table/Table.html#setTableName(java.lang.String)">setTableName</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;tableName)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the table name.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/odftoolkit/simple/table/Table.html#setUseRepeat(boolean)">setUseRepeat</A></B>(boolean&nbsp;isSingle)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;When two or more columns/rows/cells are added to a table, if they are
adjoining, and have the same content and style, and do not contain
horizontally/vertically merged cells, they may be described by a single
element.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/odftoolkit/simple/table/Table.html#setVerticalMargin(double, double)">setVerticalMargin</A></B>(double&nbsp;spaceTop,
double&nbsp;spaceBottom)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Modifies the margin above and below the table.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/odftoolkit/simple/table/Table.html#setWidth(double)">setWidth</A></B>(double&nbsp;width)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the width of the table (in Millimeter).</TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_org.odftoolkit.simple.Component"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class org.odftoolkit.simple.<A HREF="../../../../org/odftoolkit/simple/Component.html" title="class in org.odftoolkit.simple">Component</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../../org/odftoolkit/simple/Component.html#getComponentByElement(org.odftoolkit.odfdom.pkg.OdfElement)">getComponentByElement</A>, <A HREF="../../../../org/odftoolkit/simple/Component.html#getOwnerDocument()">getOwnerDocument</A>, <A HREF="../../../../org/odftoolkit/simple/Component.html#registerComponent(org.odftoolkit.simple.Component, org.odftoolkit.odfdom.pkg.OdfElement)">registerComponent</A>, <A HREF="../../../../org/odftoolkit/simple/Component.html#unregisterComponent(org.odftoolkit.odfdom.pkg.OdfElement)">unregisterComponent</A></CODE></TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD>
</TR>
</TABLE>
&nbsp;
<P>
<!-- ============ FIELD DETAIL =========== -->
<A NAME="field_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>Field Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="mDocument"><!-- --></A><H3>
mDocument</H3>
<PRE>
protected <A HREF="../../../../org/odftoolkit/simple/Document.html" title="class in org.odftoolkit.simple">Document</A> <B>mDocument</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="mIsSpreadsheet"><!-- --></A><H3>
mIsSpreadsheet</H3>
<PRE>
protected boolean <B>mIsSpreadsheet</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="mIsCellStyleInheritance"><!-- --></A><H3>
mIsCellStyleInheritance</H3>
<PRE>
protected boolean <B>mIsCellStyleInheritance</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="mIsDescribedBySingleElement"><!-- --></A><H3>
mIsDescribedBySingleElement</H3>
<PRE>
protected boolean <B>mIsDescribedBySingleElement</B></PRE>
<DL>
<DL>
</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="getInstance(org.odftoolkit.odfdom.dom.element.table.TableTableElement)"><!-- --></A><H3>
getInstance</H3>
<PRE>
public static <A HREF="../../../../org/odftoolkit/simple/table/Table.html" title="class in org.odftoolkit.simple.table">Table</A> <B>getInstance</B>(<A HREF="http://incubator.apache.org/odftoolkit/odfdom/index.html/apidocs/org/odftoolkit/odfdom/dom/element/table/TableTableElement.html?is-external=true" title="class or interface in org.odftoolkit.odfdom.dom.element.table">TableTableElement</A>&nbsp;element)</PRE>
<DL>
<DD>Get a table feature instance by an instance of
<code>TableTableElement</code>.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>element</CODE> - an instance of <code>TableTableElement</code>
<DT><B>Returns:</B><DD>an instance of <code>Table</code> that can represent
<code>element</code></DL>
</DD>
</DL>
<HR>
<A NAME="newTable(org.odftoolkit.simple.table.TableContainer)"><!-- --></A><H3>
newTable</H3>
<PRE>
public static <A HREF="../../../../org/odftoolkit/simple/table/Table.html" title="class in org.odftoolkit.simple.table">Table</A> <B>newTable</B>(<A HREF="../../../../org/odftoolkit/simple/table/TableContainer.html" title="interface in org.odftoolkit.simple.table">TableContainer</A>&nbsp;tableContainer)</PRE>
<DL>
<DD>Construct the <code>Table</code> feature. The default column count is 5.
The default row count is 2.
<p>
The table will be inserted at the end of the container. An unique table
name will be given, you may set a custom table name using the
<code>setTableName</code> method.
<p>
If the <code>tableContainer</code> is a text document, cell borders will
be created by default.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>tableContainer</CODE> - the table container that contains this table
<DT><B>Returns:</B><DD>the created <code>Table</code> feature instance</DL>
</DD>
</DL>
<HR>
<A NAME="newTable(org.odftoolkit.simple.table.TableContainer, int, int)"><!-- --></A><H3>
newTable</H3>
<PRE>
public static <A HREF="../../../../org/odftoolkit/simple/table/Table.html" title="class in org.odftoolkit.simple.table">Table</A> <B>newTable</B>(<A HREF="../../../../org/odftoolkit/simple/table/TableContainer.html" title="interface in org.odftoolkit.simple.table">TableContainer</A>&nbsp;tableContainer,
int&nbsp;numRows,
int&nbsp;numCols)</PRE>
<DL>
<DD>Construct the <code>Table</code> feature with a specified row number and
column number.
<p>
The table will be inserted at the end of the tableContainer. An unique
table name will be given, you may set a custom table name using the
<code>setTableName</code> method.
<p>
If the <code>tableContainer</code> is a text document, cell borders will
be created by default.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>tableContainer</CODE> - the table container that contains this table<DD><CODE>numRows</CODE> - the row number<DD><CODE>numCols</CODE> - the column number
<DT><B>Returns:</B><DD>a new instance of <code>Table</code></DL>
</DD>
</DL>
<HR>
<A NAME="newTable(org.odftoolkit.simple.table.TableContainer, int, int, double, double)"><!-- --></A><H3>
newTable</H3>
<PRE>
public static <A HREF="../../../../org/odftoolkit/simple/table/Table.html" title="class in org.odftoolkit.simple.table">Table</A> <B>newTable</B>(<A HREF="../../../../org/odftoolkit/simple/table/TableContainer.html" title="interface in org.odftoolkit.simple.table">TableContainer</A>&nbsp;tableContainer,
int&nbsp;numRows,
int&nbsp;numCols,
double&nbsp;marginLeft,
double&nbsp;marginRight)</PRE>
<DL>
<DD>Construct the <code>Table</code> feature with a specified row number and
column number.
<p>
The table will be inserted at the end of the tableContainer. An unique
table name will be given, you may set a custom table name using the
<code>setTableName</code> method.
<p>
If the <code>tableContainer</code> is a text document, cell borders will
be created by default.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>tableContainer</CODE> - the table container that contains this table<DD><CODE>numRows</CODE> - the row number<DD><CODE>numCols</CODE> - the column number<DD><CODE>marginLeft</CODE> - double
<I>the left table margin in cm (between the left margin of document and the table)</I><DD><CODE>marginRight</CODE> - double
<I>the right table margin in cm (between the right margin of document and the table)</I>
<DT><B>Returns:</B><DD>a new instance of <code>Table</code></DL>
</DD>
</DL>
<HR>
<A NAME="newTable(org.odftoolkit.simple.table.TableContainer, int, int, int, int)"><!-- --></A><H3>
newTable</H3>
<PRE>
public static <A HREF="../../../../org/odftoolkit/simple/table/Table.html" title="class in org.odftoolkit.simple.table">Table</A> <B>newTable</B>(<A HREF="../../../../org/odftoolkit/simple/table/TableContainer.html" title="interface in org.odftoolkit.simple.table">TableContainer</A>&nbsp;tableContainer,
int&nbsp;numRows,
int&nbsp;numCols,
int&nbsp;headerRowNumber,
int&nbsp;headerColumnNumber)</PRE>
<DL>
<DD>Construct the <code>Table</code> feature with a specified row number,
column number, header row number, header column number.
<p>
The table will be inserted at the end of the tableContainer. An unique
table name will be given, you may set a custom table name using the
<code>setTableName</code> method.
<p>
If the <code>tableContainer</code> is a text document, cell borders will
be created by default.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>tableContainer</CODE> - the ODF document that contains this feature<DD><CODE>numRows</CODE> - the row number<DD><CODE>numCols</CODE> - the column number<DD><CODE>headerRowNumber</CODE> - the header row number<DD><CODE>headerColumnNumber</CODE> - the header column number
<DT><B>Returns:</B><DD>a new instance of <code>Table</code></DL>
</DD>
</DL>
<HR>
<A NAME="newTable(org.odftoolkit.simple.table.TableContainer, java.lang.String[], java.lang.String[], double[][])"><!-- --></A><H3>
newTable</H3>
<PRE>
public static <A HREF="../../../../org/odftoolkit/simple/table/Table.html" title="class in org.odftoolkit.simple.table">Table</A> <B>newTable</B>(<A HREF="../../../../org/odftoolkit/simple/table/TableContainer.html" title="interface in org.odftoolkit.simple.table">TableContainer</A>&nbsp;tableContainer,
<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>[]&nbsp;rowLabel,
<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>[]&nbsp;columnLabel,
double[][]&nbsp;data)</PRE>
<DL>
<DD>Construct the Table feature with a specified 2 dimension array as the
data of this table. The value type of each cell is float.
<p>
The table will be inserted at the end of the tableContainer. An unique
table name will be given, you may set a custom table name using the
<code>setTableName</code> method.
<p>
If the <code>tableContainer</code> is a text document, cell borders will
be created by default.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>tableContainer</CODE> - the table container that contains this table<DD><CODE>rowLabel</CODE> - set as the header row, it can be null if no header row needed<DD><CODE>columnLabel</CODE> - set as the header column, it can be null if no header column
needed<DD><CODE>data</CODE> - the two dimension array of double as the data of this table
<DT><B>Returns:</B><DD>a new instance of <code>Table</code></DL>
</DD>
</DL>
<HR>
<A NAME="newTable(org.odftoolkit.simple.table.TableContainer, java.lang.String[], java.lang.String[], java.lang.String[][])"><!-- --></A><H3>
newTable</H3>
<PRE>
public static <A HREF="../../../../org/odftoolkit/simple/table/Table.html" title="class in org.odftoolkit.simple.table">Table</A> <B>newTable</B>(<A HREF="../../../../org/odftoolkit/simple/table/TableContainer.html" title="interface in org.odftoolkit.simple.table">TableContainer</A>&nbsp;tableContainer,
<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>[]&nbsp;rowLabel,
<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>[]&nbsp;columnLabel,
<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>[][]&nbsp;data)</PRE>
<DL>
<DD>Construct the Table feature with a specified 2 dimension array as the
data of this table. The value type of each cell is string.
<p>
The table will be inserted at the end of the tableContainer. An unique
table name will be given, you may set a custom table name using the
<code>setTableName</code> method.
<p>
If the <code>tableContainer</code> is a text document, cell borders will
be created by default.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>tableContainer</CODE> - the table container that contains this table<DD><CODE>rowLabel</CODE> - set as the header row, it can be null if no header row needed<DD><CODE>columnLabel</CODE> - set as the header column, it can be null if no header column
needed<DD><CODE>data</CODE> - the two dimension array of string as the data of this table
<DT><B>Returns:</B><DD>a new instance of <code>Table</code></DL>
</DD>
</DL>
<HR>
<A NAME="getWidth()"><!-- --></A><H3>
getWidth</H3>
<PRE>
public double <B>getWidth</B>()</PRE>
<DL>
<DD>Get the width of the table (in Millimeter).
<p>
Throw an UnsupportedOperationException if the table is one sheet of a
spreadsheet document. because the sheet doesn't have an attribute of
table width.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the width of the current table (in Millimeter).
<p>
An UnsupportedOperationException will be thrown if the table is
in the spreadsheet document.</DL>
</DD>
</DL>
<HR>
<A NAME="setWidth(double)"><!-- --></A><H3>
setWidth</H3>
<PRE>
public void <B>setWidth</B>(double&nbsp;width)</PRE>
<DL>
<DD>Set the width of the table (in Millimeter).
<p>
Throw an UnsupportedOperationException if the table is part of a
spreadsheet document that does not allow to change the table size,
because spreadsheet is not allow user to set the table size.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>width</CODE> - the width that need to set (in Millimeter).
<p>
An UnsupportedOperationException will be thrown if the table
is in the spreadsheet document.</DL>
</DD>
</DL>
<HR>
<A NAME="applyStyle(org.odftoolkit.simple.table.TableTemplate)"><!-- --></A><H3>
applyStyle</H3>
<PRE>
public void <B>applyStyle</B>(<A HREF="../../../../org/odftoolkit/simple/table/TableTemplate.html" title="class in org.odftoolkit.simple.table">TableTemplate</A>&nbsp;template)
throws <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</A></PRE>
<DL>
<DD>Apply the formatting specified in the template to corresponding table
cells.
<p>
A table can only be formatted as one type of styles: even-odd-rows or
even-odd-columns. The rule is to check the style of odd rows and even
rows in the template, only if they have one different properties, table:
style-name or table:paragraph-style-name, the table template will be
treated as a even-odd-columns styled table.
<p>
If one style in the template is null, the style of corresponding cells
will be removed. An empty template can be used to remove all the styles
in a table.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>template</CODE> -
<DT><B>Throws:</B>
<DD><CODE><A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - if the given template is null
<DD><CODE><A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</A></CODE> - if content DOM could not be initialized</DL>
</DD>
</DL>
<HR>
<A NAME="getRowCount()"><!-- --></A><H3>
getRowCount</H3>
<PRE>
public int <B>getRowCount</B>()</PRE>
<DL>
<DD>Get the row count of this table.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>total count of rows</DL>
</DD>
</DL>
<HR>
<A NAME="getColumnCount()"><!-- --></A><H3>
getColumnCount</H3>
<PRE>
public int <B>getColumnCount</B>()</PRE>
<DL>
<DD>Get the column count of this table.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>total count of columns</DL>
</DD>
</DL>
<HR>
<A NAME="appendRow()"><!-- --></A><H3>
appendRow</H3>
<PRE>
public <A HREF="../../../../org/odftoolkit/simple/table/Row.html" title="class in org.odftoolkit.simple.table">Row</A> <B>appendRow</B>()</PRE>
<DL>
<DD>Append a row to the end of the table. The style of new row is same with
the last row in the table.
<p>
Since SIMPLE supports automatic table expansion. Whenever a cell outside
the current table is addressed the table is instantly expanded. Method
<code>getCellByPosition</code> can randomly access any cell, no matter it
in or out of the table original range.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>a new appended row<DT><B>See Also:</B><DD><A HREF="../../../../org/odftoolkit/simple/table/Table.html#appendRows(int)"><CODE>appendRows(int)</CODE></A>,
<A HREF="../../../../org/odftoolkit/simple/table/Table.html#getRowByIndex(int)"><CODE>getRowByIndex(int)</CODE></A>,
<A HREF="../../../../org/odftoolkit/simple/table/Table.html#getCellByPosition(int, int)"><CODE>getCellByPosition(int, int)</CODE></A>,
<A HREF="../../../../org/odftoolkit/simple/table/Table.html#getCellByPosition(java.lang.String)"><CODE>getCellByPosition(String)</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="appendRows(int)"><!-- --></A><H3>
appendRows</H3>
<PRE>
public <A HREF="http://download.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A>&lt;<A HREF="../../../../org/odftoolkit/simple/table/Row.html" title="class in org.odftoolkit.simple.table">Row</A>&gt; <B>appendRows</B>(int&nbsp;rowCount)</PRE>
<DL>
<DD>Append a specific number of rows to the end of the table. The style of
new rows are same with the last row in the table.
<p>
Since SIMPLE supports automatic table expansion. Whenever a cell outside
the current table is addressed the table is instantly expanded. Method
<code>getCellByPosition</code> can randomly access any cell, no matter it
in or out of the table original range.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>rowCount</CODE> - is the number of rows to be appended.
<DT><B>Returns:</B><DD>a list of new appended rows<DT><B>See Also:</B><DD><A HREF="../../../../org/odftoolkit/simple/table/Table.html#appendRow()"><CODE>appendRow()</CODE></A>,
<A HREF="../../../../org/odftoolkit/simple/table/Table.html#getRowByIndex(int)"><CODE>getRowByIndex(int)</CODE></A>,
<A HREF="../../../../org/odftoolkit/simple/table/Table.html#getCellByPosition(int, int)"><CODE>getCellByPosition(int, int)</CODE></A>,
<A HREF="../../../../org/odftoolkit/simple/table/Table.html#getCellByPosition(java.lang.String)"><CODE>getCellByPosition(String)</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="appendColumn()"><!-- --></A><H3>
appendColumn</H3>
<PRE>
public <A HREF="../../../../org/odftoolkit/simple/table/Column.html" title="class in org.odftoolkit.simple.table">Column</A> <B>appendColumn</B>()</PRE>
<DL>
<DD>Append a column at the end of the table. The style of new column is same
with the last column in the table.
<p>
Since SIMPLE supports automatic table expansion. Whenever a cell outside
the current table is addressed the table is instantly expanded. Method
<code>getCellByPosition</code> can randomly access any cell, no matter it
in or out of the table original range.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>a new appended column<DT><B>See Also:</B><DD><A HREF="../../../../org/odftoolkit/simple/table/Table.html#appendColumns(int)"><CODE>appendColumns(int)</CODE></A>,
<A HREF="../../../../org/odftoolkit/simple/table/Table.html#getColumnByIndex(int)"><CODE>getColumnByIndex(int)</CODE></A>,
<A HREF="../../../../org/odftoolkit/simple/table/Table.html#getCellByPosition(int, int)"><CODE>getCellByPosition(int, int)</CODE></A>,
<A HREF="../../../../org/odftoolkit/simple/table/Table.html#getCellByPosition(java.lang.String)"><CODE>getCellByPosition(String)</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="appendColumns(int)"><!-- --></A><H3>
appendColumns</H3>
<PRE>
public <A HREF="http://download.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A>&lt;<A HREF="../../../../org/odftoolkit/simple/table/Column.html" title="class in org.odftoolkit.simple.table">Column</A>&gt; <B>appendColumns</B>(int&nbsp;columnCount)</PRE>
<DL>
<DD>Append a specific number of columns to the right of the table. The style
of new columns are same with the rightmost column in the table.
<p>
Since SIMPLE supports automatic table expansion. Whenever a cell outside
the current table is addressed the table is instantly expanded. Method
<code>getCellByPosition</code> can randomly access any cell, no matter it
in or out of the table original range.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>columnCount</CODE> - is the number of columns to be appended.
<DT><B>Returns:</B><DD>a list of new appended columns<DT><B>See Also:</B><DD><A HREF="../../../../org/odftoolkit/simple/table/Table.html#appendColumn()"><CODE>appendColumn()</CODE></A>,
<A HREF="../../../../org/odftoolkit/simple/table/Table.html#getColumnByIndex(int)"><CODE>getColumnByIndex(int)</CODE></A>,
<A HREF="../../../../org/odftoolkit/simple/table/Table.html#getCellByPosition(int, int)"><CODE>getCellByPosition(int, int)</CODE></A>,
<A HREF="../../../../org/odftoolkit/simple/table/Table.html#getCellByPosition(java.lang.String)"><CODE>getCellByPosition(String)</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="getOdfElement()"><!-- --></A><H3>
getOdfElement</H3>
<PRE>
public <A HREF="http://incubator.apache.org/odftoolkit/odfdom/index.html/apidocs/org/odftoolkit/odfdom/dom/element/table/TableTableElement.html?is-external=true" title="class or interface in org.odftoolkit.odfdom.dom.element.table">TableTableElement</A> <B>getOdfElement</B>()</PRE>
<DL>
<DD>Return an instance of <code>TableTableElement</code> which represents
this feature.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/odftoolkit/simple/Component.html#getOdfElement()">getOdfElement</A></CODE> in class <CODE><A HREF="../../../../org/odftoolkit/simple/Component.html" title="class in org.odftoolkit.simple">Component</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>an instance of <code>TableTableElement</code></DL>
</DD>
</DL>
<HR>
<A NAME="insertColumnsBefore(int, int)"><!-- --></A><H3>
insertColumnsBefore</H3>
<PRE>
public <A HREF="http://download.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A>&lt;<A HREF="../../../../org/odftoolkit/simple/table/Column.html" title="class in org.odftoolkit.simple.table">Column</A>&gt; <B>insertColumnsBefore</B>(int&nbsp;index,
int&nbsp;columnCount)</PRE>
<DL>
<DD>Insert a specific number of columns before the column whose index is
<code>index</code>.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>index</CODE> - is the index of the column to insert before.<DD><CODE>columnCount</CODE> - is the number of columns to insert.
<DT><B>Returns:</B><DD>a list of new inserted columns</DL>
</DD>
</DL>
<HR>
<A NAME="removeColumnsByIndex(int, int)"><!-- --></A><H3>
removeColumnsByIndex</H3>
<PRE>
public void <B>removeColumnsByIndex</B>(int&nbsp;startIndex,
int&nbsp;deleteColCount)</PRE>
<DL>
<DD>Remove a specific number of columns, starting from the column at
<code>index</code>.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>startIndex</CODE> - is the index of the first column to delete.<DD><CODE>deleteColCount</CODE> - is the number of columns to delete.</DL>
</DD>
</DL>
<HR>
<A NAME="insertRowsBefore(int, int)"><!-- --></A><H3>
insertRowsBefore</H3>
<PRE>
public <A HREF="http://download.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A>&lt;<A HREF="../../../../org/odftoolkit/simple/table/Row.html" title="class in org.odftoolkit.simple.table">Row</A>&gt; <B>insertRowsBefore</B>(int&nbsp;index,
int&nbsp;rowCount)</PRE>
<DL>
<DD>Insert a specific number of rows before the row at <code>index</code>.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>index</CODE> - is the index of the row to insert before.<DD><CODE>rowCount</CODE> - is the number of rows to insert.
<DT><B>Returns:</B><DD>a list of new inserted rows</DL>
</DD>
</DL>
<HR>
<A NAME="getColumnList()"><!-- --></A><H3>
getColumnList</H3>
<PRE>
public <A HREF="http://download.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A>&lt;<A HREF="../../../../org/odftoolkit/simple/table/Column.html" title="class in org.odftoolkit.simple.table">Column</A>&gt; <B>getColumnList</B>()</PRE>
<DL>
<DD>Return a list of columns in the current table.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>a list of table columns</DL>
</DD>
</DL>
<HR>
<A NAME="getColumnIterator()"><!-- --></A><H3>
getColumnIterator</H3>
<PRE>
public <A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Iterator.html?is-external=true" title="class or interface in java.util">Iterator</A>&lt;<A HREF="../../../../org/odftoolkit/simple/table/Column.html" title="class in org.odftoolkit.simple.table">Column</A>&gt; <B>getColumnIterator</B>()</PRE>
<DL>
<DD>Return an Iterator of the column in this table.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>an Iterator of the column in this table.<DT><B>Since:</B></DT>
<DD>0.5.5</DD>
<DT><B>See Also:</B><DD><A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Iterator.html?is-external=true" title="class or interface in java.util"><CODE>Iterator</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="getRowList()"><!-- --></A><H3>
getRowList</H3>
<PRE>
public <A HREF="http://download.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A>&lt;<A HREF="../../../../org/odftoolkit/simple/table/Row.html" title="class in org.odftoolkit.simple.table">Row</A>&gt; <B>getRowList</B>()</PRE>
<DL>
<DD>Return a list of table rows in the current table.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>a list of table rows</DL>
</DD>
</DL>
<HR>
<A NAME="getRowIterator()"><!-- --></A><H3>
getRowIterator</H3>
<PRE>
public <A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Iterator.html?is-external=true" title="class or interface in java.util">Iterator</A>&lt;<A HREF="../../../../org/odftoolkit/simple/table/Row.html" title="class in org.odftoolkit.simple.table">Row</A>&gt; <B>getRowIterator</B>()</PRE>
<DL>
<DD>Return an Iterator of the row in this table.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>an Iterator of the row in this table.<DT><B>Since:</B></DT>
<DD>0.5.5</DD>
<DT><B>See Also:</B><DD><A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Iterator.html?is-external=true" title="class or interface in java.util"><CODE>Iterator</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="getColumnByIndex(int)"><!-- --></A><H3>
getColumnByIndex</H3>
<PRE>
public <A HREF="../../../../org/odftoolkit/simple/table/Column.html" title="class in org.odftoolkit.simple.table">Column</A> <B>getColumnByIndex</B>(int&nbsp;index)</PRE>
<DL>
<DD>Get the column at the specified index. The table will be automatically
expanded, when the given index is outside of the original table.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>index</CODE> - the zero-based index of the column.
<DT><B>Returns:</B><DD>the column at the specified index</DL>
</DD>
</DL>
<HR>
<A NAME="getRowByIndex(int)"><!-- --></A><H3>
getRowByIndex</H3>
<PRE>
public <A HREF="../../../../org/odftoolkit/simple/table/Row.html" title="class in org.odftoolkit.simple.table">Row</A> <B>getRowByIndex</B>(int&nbsp;index)</PRE>
<DL>
<DD>Get the row at the specified index. The table will be automatically
expanded, when the given index is outside of the original table.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>index</CODE> - the zero-based index of the row.
<DT><B>Returns:</B><DD>the row at the specified index</DL>
</DD>
</DL>
<HR>
<A NAME="removeRowsByIndex(int, int)"><!-- --></A><H3>
removeRowsByIndex</H3>
<PRE>
public void <B>removeRowsByIndex</B>(int&nbsp;startIndex,
int&nbsp;deleteRowCount)</PRE>
<DL>
<DD>Remove the specific number of rows, starting from the row at
<code>index</code>.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>startIndex</CODE> - is the zero-based index of the first row to delete.<DD><CODE>deleteRowCount</CODE> - is the number of rows to delete.</DL>
</DD>
</DL>
<HR>
<A NAME="remove()"><!-- --></A><H3>
remove</H3>
<PRE>
public void <B>remove</B>()</PRE>
<DL>
<DD>Remove this table from the document
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getHeaderRowCount()"><!-- --></A><H3>
getHeaderRowCount</H3>
<PRE>
public int <B>getHeaderRowCount</B>()</PRE>
<DL>
<DD>Return the number of header rows in this table.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the number of header rows.</DL>
</DD>
</DL>
<HR>
<A NAME="getHeaderColumnCount()"><!-- --></A><H3>
getHeaderColumnCount</H3>
<PRE>
public int <B>getHeaderColumnCount</B>()</PRE>
<DL>
<DD>Return the number of header columns in the table.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the number of header columns.</DL>
</DD>
</DL>
<HR>
<A NAME="getTableName()"><!-- --></A><H3>
getTableName</H3>
<PRE>
public <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>getTableName</B>()</PRE>
<DL>
<DD>Return the table name.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the table name</DL>
</DD>
</DL>
<HR>
<A NAME="setTableName(java.lang.String)"><!-- --></A><H3>
setTableName</H3>
<PRE>
public void <B>setTableName</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;tableName)</PRE>
<DL>
<DD>Set the table name.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>tableName</CODE> - the table name
<DT><B>Throws:</B>
<DD><CODE><A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - if the tableName is duplicate with one of tables in the
current document</DL>
</DD>
</DL>
<HR>
<A NAME="isProtected()"><!-- --></A><H3>
isProtected</H3>
<PRE>
public boolean <B>isProtected</B>()</PRE>
<DL>
<DD>Return true if the table is protected.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>true if the table is protected</DL>
</DD>
</DL>
<HR>
<A NAME="setProtected(boolean)"><!-- --></A><H3>
setProtected</H3>
<PRE>
public void <B>setProtected</B>(boolean&nbsp;isProtected)</PRE>
<DL>
<DD>Set if the table is protected.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>isProtected</CODE> - the protected attribute of the table to be set</DL>
</DD>
</DL>
<HR>
<A NAME="isCellStyleInheritance()"><!-- --></A><H3>
isCellStyleInheritance</H3>
<PRE>
public boolean <B>isCellStyleInheritance</B>()</PRE>
<DL>
<DD>Return true if cell style is inherited when a new cell is added to the
table.
<p>
The default setting is inherited. In this condition, the style of new
column is same with the previous column before the inserted position,
while the style of new row is same with the last row before the inserted
position.
<p>
This feature setting will influence <code>appendRow()</code>,
<code>appendColumn()</code>, <code>appendRows()</code>,
<code>appendColumns()</code>, <code>insertRowsBefore()</code> and
<code>insertColumnsBefore()</code>.
<p>
For <code>getCellByPosition()</code>,
<code>getCellRangeByPosition()</code>, <code>getCellRangeByName()</code>,
<code>getRowByIndex()</code> and <code>getColumnByIndex()</code>, if need
automatically expand cells, it will return empty cell(s) without any
style settings. So inheritance setting have no effect on them.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>true if cell style is inherited when a new cell is added to the
table.<DT><B>Since:</B></DT>
<DD>0.4.5</DD>
<DT><B>See Also:</B><DD><A HREF="../../../../org/odftoolkit/simple/table/Table.html#setCellStyleInheritance(boolean)"><CODE>setCellStyleInheritance(boolean)</CODE></A>,
<A HREF="../../../../org/odftoolkit/simple/table/Table.html#appendColumn()"><CODE>appendColumn()</CODE></A>,
<A HREF="../../../../org/odftoolkit/simple/table/Table.html#appendColumns(int)"><CODE>appendColumns(int)</CODE></A>,
<A HREF="../../../../org/odftoolkit/simple/table/Table.html#appendRow()"><CODE>appendRow()</CODE></A>,
<A HREF="../../../../org/odftoolkit/simple/table/Table.html#appendRows(int)"><CODE>appendRows(int)</CODE></A>,
<A HREF="../../../../org/odftoolkit/simple/table/Table.html#insertColumnsBefore(int, int)"><CODE>insertColumnsBefore(int, int)</CODE></A>,
<A HREF="../../../../org/odftoolkit/simple/table/Table.html#insertRowsBefore(int, int)"><CODE>insertRowsBefore(int, int)</CODE></A>,
<A HREF="../../../../org/odftoolkit/simple/table/Table.html#getCellByPosition(int, int)"><CODE>getCellByPosition(int, int)</CODE></A>,
<A HREF="../../../../org/odftoolkit/simple/table/Table.html#getCellByPosition(java.lang.String)"><CODE>getCellByPosition(String)</CODE></A>,
<A HREF="../../../../org/odftoolkit/simple/table/Table.html#getCellRangeByPosition(int, int, int, int)"><CODE>getCellRangeByPosition(int, int, int, int)</CODE></A>,
<A HREF="../../../../org/odftoolkit/simple/table/Table.html#getCellRangeByPosition(java.lang.String, java.lang.String)"><CODE>getCellRangeByPosition(String, String)</CODE></A>,
<A HREF="../../../../org/odftoolkit/simple/table/Table.html#getCellRangeByName(java.lang.String)"><CODE>getCellRangeByName(String)</CODE></A>,
<A HREF="../../../../org/odftoolkit/simple/table/Table.html#getColumnByIndex(int)"><CODE>getColumnByIndex(int)</CODE></A>,
<A HREF="../../../../org/odftoolkit/simple/table/Table.html#getRowByIndex(int)"><CODE>getRowByIndex(int)</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="setCellStyleInheritance(boolean)"><!-- --></A><H3>
setCellStyleInheritance</H3>
<PRE>
public void <B>setCellStyleInheritance</B>(boolean&nbsp;isEnabled)</PRE>
<DL>
<DD>This method allows users to set whether cell style is inherited or not
when a new cell is added to the table. Of course, the default setting is
inherited. In this condition, the style of new column is same with the
previous column before the inserted position, while the style of new row
is same with the last row before the inserted position.
<p>
This feature setting will influence <code>appendRow()</code>,
<code>appendColumn()</code>, <code>appendRows()</code>,
<code>appendColumns()</code>, <code>insertRowsBefore()</code> and
<code>insertColumnsBefore()</code>.
<p>
For <code>getCellByPosition()</code>,
<code>getCellRangeByPosition()</code>, <code>getCellRangeByName()</code>,
<code>getRowByIndex()</code> and <code>getColumnByIndex()</code>, if need
automatically expand cells, it will return empty cell(s) without any
style settings. So inheritance setting have no effect on them.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>isEnabled</CODE> - if<code>isEnabled</code> is true, cell style will be inherited
by new cell.<DT><B>Since:</B></DT>
<DD>0.4.5</DD>
<DT><B>See Also:</B><DD><A HREF="../../../../org/odftoolkit/simple/table/Table.html#isCellStyleInheritance()"><CODE>isCellStyleInheritance()</CODE></A>,
<A HREF="../../../../org/odftoolkit/simple/table/Table.html#appendColumn()"><CODE>appendColumn()</CODE></A>,
<A HREF="../../../../org/odftoolkit/simple/table/Table.html#appendColumns(int)"><CODE>appendColumns(int)</CODE></A>,
<A HREF="../../../../org/odftoolkit/simple/table/Table.html#appendRow()"><CODE>appendRow()</CODE></A>,
<A HREF="../../../../org/odftoolkit/simple/table/Table.html#appendRows(int)"><CODE>appendRows(int)</CODE></A>,
<A HREF="../../../../org/odftoolkit/simple/table/Table.html#insertColumnsBefore(int, int)"><CODE>insertColumnsBefore(int, int)</CODE></A>,
<A HREF="../../../../org/odftoolkit/simple/table/Table.html#insertRowsBefore(int, int)"><CODE>insertRowsBefore(int, int)</CODE></A>,
<A HREF="../../../../org/odftoolkit/simple/table/Table.html#getCellByPosition(int, int)"><CODE>getCellByPosition(int, int)</CODE></A>,
<A HREF="../../../../org/odftoolkit/simple/table/Table.html#getCellByPosition(java.lang.String)"><CODE>getCellByPosition(String)</CODE></A>,
<A HREF="../../../../org/odftoolkit/simple/table/Table.html#getCellRangeByPosition(int, int, int, int)"><CODE>getCellRangeByPosition(int, int, int, int)</CODE></A>,
<A HREF="../../../../org/odftoolkit/simple/table/Table.html#getCellRangeByPosition(java.lang.String, java.lang.String)"><CODE>getCellRangeByPosition(String, String)</CODE></A>,
<A HREF="../../../../org/odftoolkit/simple/table/Table.html#getCellRangeByName(java.lang.String)"><CODE>getCellRangeByName(String)</CODE></A>,
<A HREF="../../../../org/odftoolkit/simple/table/Table.html#getColumnByIndex(int)"><CODE>getColumnByIndex(int)</CODE></A>,
<A HREF="../../../../org/odftoolkit/simple/table/Table.html#getRowByIndex(int)"><CODE>getRowByIndex(int)</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="isUseRepeat()"><!-- --></A><H3>
isUseRepeat</H3>
<PRE>
public boolean <B>isUseRepeat</B>()</PRE>
<DL>
<DD>Return true if the new created multiple columns/rows/cells are described
by a single element when it's possible.
<p>
The default setting is <code>true</code>, which helps to decrease the
document size. If setting is <code>false</code>, each column/row/cell
will be described by its owned single element.
<p>
This feature setting will influence <code>appendRows()</code>,
<code>appendColumns()</code>, <code>insertRowsBefore()</code>,
<code>insertColumnsBefore()</code>, <code>getCellByPosition()</code>,
<code>getCellRangeByPosition()</code>, <code>getCellRangeByName()</code>,
<code>getRowByIndex()</code> and <code>getColumnByIndex()</code>.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>true if the new created columns/rows/cells are described by a
single element when it's possible.<DT><B>Since:</B></DT>
<DD>0.4.5</DD>
<DT><B>See Also:</B><DD><A HREF="../../../../org/odftoolkit/simple/table/Table.html#setUseRepeat(boolean)"><CODE>setUseRepeat(boolean)</CODE></A>,
<A HREF="../../../../org/odftoolkit/simple/table/Table.html#appendColumns(int)"><CODE>appendColumns(int)</CODE></A>,
<A HREF="../../../../org/odftoolkit/simple/table/Table.html#appendRows(int)"><CODE>appendRows(int)</CODE></A>,
<A HREF="../../../../org/odftoolkit/simple/table/Table.html#insertColumnsBefore(int, int)"><CODE>insertColumnsBefore(int, int)</CODE></A>,
<A HREF="../../../../org/odftoolkit/simple/table/Table.html#insertRowsBefore(int, int)"><CODE>insertRowsBefore(int, int)</CODE></A>,
<A HREF="../../../../org/odftoolkit/simple/table/Table.html#getCellByPosition(int, int)"><CODE>getCellByPosition(int, int)</CODE></A>,
<A HREF="../../../../org/odftoolkit/simple/table/Table.html#getCellByPosition(java.lang.String)"><CODE>getCellByPosition(String)</CODE></A>,
<A HREF="../../../../org/odftoolkit/simple/table/Table.html#getCellRangeByPosition(int, int, int, int)"><CODE>getCellRangeByPosition(int, int, int, int)</CODE></A>,
<A HREF="../../../../org/odftoolkit/simple/table/Table.html#getCellRangeByPosition(java.lang.String, java.lang.String)"><CODE>getCellRangeByPosition(String, String)</CODE></A>,
<A HREF="../../../../org/odftoolkit/simple/table/Table.html#getCellRangeByName(java.lang.String)"><CODE>getCellRangeByName(String)</CODE></A>,
<A HREF="../../../../org/odftoolkit/simple/table/Table.html#getColumnByIndex(int)"><CODE>getColumnByIndex(int)</CODE></A>,
<A HREF="../../../../org/odftoolkit/simple/table/Table.html#getRowByIndex(int)"><CODE>getRowByIndex(int)</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="setUseRepeat(boolean)"><!-- --></A><H3>
setUseRepeat</H3>
<PRE>
public void <B>setUseRepeat</B>(boolean&nbsp;isSingle)</PRE>
<DL>
<DD>When two or more columns/rows/cells are added to a table, if they are
adjoining, and have the same content and style, and do not contain
horizontally/vertically merged cells, they may be described by a single
element. The repeated number attribute, for row is
table:number-rows-repeated, while for column and cell are
table:number-columns-repeated, specifies the number of columns/rows/cells
to which a column/row/cell element applies.
<p>
This method allows users to set whether the new created
columns/rows/cells are described by a single element. Of course, the
default setting is <code>true</code>, which helps to decrease the
document size. If setting is <code>false</code>, each column/row/cell
will be described by its owned single element.
<p>
This feature setting will influence <code>appendRows()</code>,
<code>appendColumns()</code>, <code>insertRowsBefore()</code>,
<code>insertColumnsBefore()</code>, <code>getCellByPosition()</code>,
<code>getCellRangeByPosition()</code>, <code>getCellRangeByName()</code>,
<code>getRowByIndex()</code> and <code>getColumnByIndex()</code>.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>isSingle</CODE> - if<code>isSingle</code> is true, the new created
columns/rows/cells are described by a single element, if
possible.<DT><B>Since:</B></DT>
<DD>0.4.5</DD>
<DT><B>See Also:</B><DD><A HREF="../../../../org/odftoolkit/simple/table/Table.html#isUseRepeat()"><CODE>isUseRepeat()</CODE></A>,
<A HREF="../../../../org/odftoolkit/simple/table/Table.html#appendColumns(int)"><CODE>appendColumns(int)</CODE></A>,
<A HREF="../../../../org/odftoolkit/simple/table/Table.html#appendRows(int)"><CODE>appendRows(int)</CODE></A>,
<A HREF="../../../../org/odftoolkit/simple/table/Table.html#insertColumnsBefore(int, int)"><CODE>insertColumnsBefore(int, int)</CODE></A>,
<A HREF="../../../../org/odftoolkit/simple/table/Table.html#insertRowsBefore(int, int)"><CODE>insertRowsBefore(int, int)</CODE></A>,
<A HREF="../../../../org/odftoolkit/simple/table/Table.html#getCellByPosition(int, int)"><CODE>getCellByPosition(int, int)</CODE></A>,
<A HREF="../../../../org/odftoolkit/simple/table/Table.html#getCellByPosition(java.lang.String)"><CODE>getCellByPosition(String)</CODE></A>,
<A HREF="../../../../org/odftoolkit/simple/table/Table.html#getCellRangeByPosition(int, int, int, int)"><CODE>getCellRangeByPosition(int, int, int, int)</CODE></A>,
<A HREF="../../../../org/odftoolkit/simple/table/Table.html#getCellRangeByPosition(java.lang.String, java.lang.String)"><CODE>getCellRangeByPosition(String, String)</CODE></A>,
<A HREF="../../../../org/odftoolkit/simple/table/Table.html#getCellRangeByName(java.lang.String)"><CODE>getCellRangeByName(String)</CODE></A>,
<A HREF="../../../../org/odftoolkit/simple/table/Table.html#getColumnByIndex(int)"><CODE>getColumnByIndex(int)</CODE></A>,
<A HREF="../../../../org/odftoolkit/simple/table/Table.html#getRowByIndex(int)"><CODE>getRowByIndex(int)</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="getCellRangeByPosition(int, int, int, int)"><!-- --></A><H3>
getCellRangeByPosition</H3>
<PRE>
public <A HREF="../../../../org/odftoolkit/simple/table/CellRange.html" title="class in org.odftoolkit.simple.table">CellRange</A> <B>getCellRangeByPosition</B>(int&nbsp;startCol,
int&nbsp;startRow,
int&nbsp;endCol,
int&nbsp;endRow)</PRE>
<DL>
<DD>Return a range of cells within the specified range. The table will be
automatically expanded as need.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>startCol</CODE> - the column index of the first cell inside the range.<DD><CODE>startRow</CODE> - the row index of the first cell inside the range.<DD><CODE>endCol</CODE> - the column index of the last cell inside the range.<DD><CODE>endRow</CODE> - the row index of the last cell inside the range.
<DT><B>Returns:</B><DD>the specified cell range.</DL>
</DD>
</DL>
<HR>
<A NAME="getCellRangeByPosition(java.lang.String, java.lang.String)"><!-- --></A><H3>
getCellRangeByPosition</H3>
<PRE>
public <A HREF="../../../../org/odftoolkit/simple/table/CellRange.html" title="class in org.odftoolkit.simple.table">CellRange</A> <B>getCellRangeByPosition</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;startAddress,
<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;endAddress)</PRE>
<DL>
<DD>Return a range of cells within the specified range. The range is
specified by the cell address of the first cell and the cell address of
the last cell. The table will be automatically expanded as need.
<p>
The cell address is constructed with a table name, a dot (.), an
alphabetic value representing the column, and a numeric value
representing the row. The table name can be omitted. For example:
"$Sheet1.A1", "Sheet1.A1" and "A1" are all valid cell address.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>startAddress</CODE> - the cell address of the first cell inside the range.<DD><CODE>endAddress</CODE> - the cell address of the last cell inside the range.
<DT><B>Returns:</B><DD>the specified cell range.</DL>
</DD>
</DL>
<HR>
<A NAME="getCellRangeByName(java.lang.String)"><!-- --></A><H3>
getCellRangeByName</H3>
<PRE>
public <A HREF="../../../../org/odftoolkit/simple/table/CellRange.html" title="class in org.odftoolkit.simple.table">CellRange</A> <B>getCellRangeByName</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;name)</PRE>
<DL>
<DD>Return a range of cells by a specified name.
<p>
After you get a cell range with <code>getCellRangeByPosition</code>, you
can assign a name to this cell range with the method
<code>setCellRangeName<code> in class <code>CellRange</code>. Then you
will get a <b>named range</b> which can be represented by name. This
method can be used to get a named range.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>name</CODE> - the name of the specified named range
<DT><B>Returns:</B><DD>the specified cell range.</DL>
</DD>
</DL>
<HR>
<A NAME="getCellByPosition(int, int)"><!-- --></A><H3>
getCellByPosition</H3>
<PRE>
public <A HREF="../../../../org/odftoolkit/simple/table/Cell.html" title="class in org.odftoolkit.simple.table">Cell</A> <B>getCellByPosition</B>(int&nbsp;colIndex,
int&nbsp;rowIndex)</PRE>
<DL>
<DD>Return a single cell that is positioned at the specified column and row.
The table will be automatically expanded as need.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>colIndex</CODE> - the column index of the cell.<DD><CODE>rowIndex</CODE> - the row index of the cell.
<DT><B>Returns:</B><DD>the cell at the specified position</DL>
</DD>
</DL>
<HR>
<A NAME="getCellByPosition(java.lang.String)"><!-- --></A><H3>
getCellByPosition</H3>
<PRE>
public <A HREF="../../../../org/odftoolkit/simple/table/Cell.html" title="class in org.odftoolkit.simple.table">Cell</A> <B>getCellByPosition</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;address)</PRE>
<DL>
<DD>Return a single cell that is positioned at the specified cell address.
The table can be automatically expanded as need.
<p>
The cell address is constructed with a table name, a dot (.), an
alphabetic value representing the column, and a numeric value
representing the row. The table name can be omitted. For example:
"$Sheet1.A1", "Sheet1.A1" and "A1" are all valid cell address.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>address</CODE> - the cell address of the cell.
<DT><B>Returns:</B><DD>the cell at the specified position.</DL>
</DD>
</DL>
<HR>
<A NAME="setVerticalMargin(double, double)"><!-- --></A><H3>
setVerticalMargin</H3>
<PRE>
public void <B>setVerticalMargin</B>(double&nbsp;spaceTop,
double&nbsp;spaceBottom)</PRE>
<DL>
<DD>Modifies the margin above and below the table.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>spaceTop</CODE> - space above the table in centimeter(cm), ex. 1.25 cm<DD><CODE>spaceBottom</CODE> - spacing below the table in centimeter(cm), ex. 0.7 cm<DT><B>Since:</B></DT>
<DD>0.5.5</DD>
</DL>
</DD>
</DL>
<HR>
<A NAME="getStyleHandler()"><!-- --></A><H3>
getStyleHandler</H3>
<PRE>
public <A HREF="../../../../org/odftoolkit/simple/style/DefaultStyleHandler.html" title="class in org.odftoolkit.simple.style">DefaultStyleHandler</A> <B>getStyleHandler</B>()</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A>
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/Table.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../../org/odftoolkit/simple/table/Row.html" title="class in org.odftoolkit.simple.table"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../../org/odftoolkit/simple/table/Table.TableBuilder.html" title="class in org.odftoolkit.simple.table"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../index.html?org/odftoolkit/simple/table/Table.html" target="_top"><B>FRAMES</B></A> &nbsp;
&nbsp;<A HREF="Table.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
&nbsp;<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY:&nbsp;<A HREF="#nested_class_summary">NESTED</A>&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<HR>
Copyright &#169; 2010-2017 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All Rights Reserved.
</BODY>
</HTML>