Package com.independentsoft.office.odf
Class Table
java.lang.Object
com.independentsoft.office.odf.Table
- All Implemented Interfaces:
ICellContent,IContentElement,IIndexContent,ITextContent,IHeaderFooterContent
Represents the root element for the table.
-
Constructor Summary
ConstructorsConstructorDescriptionTable()Initializes a new instance of the Table class.Table(InternalXMLStreamReader reader)Instantiates a new table.Initializes a new instance of the Table class. -
Method Summary
Modifier and TypeMethodDescriptionclone()Creates a new object that is a deep copy of the current instance.get(int column, int row)Gets the.get(CellPosition position)Gets the.Gets the.Gets the.Contains collection of columns in the table.Returns all content elements.getForms()Gets the container for form elements.Contains collection of header columns in the table.Contains collection of header rows in the table.getName()Gets the name of the table.Returns the parent content element.Gets the print ranges of the table.getRows()Contains collection of rows in the table.Gets the scenario for display on the table.Contains all the elements that represent graphic shapes that are anchored on the table where this element occurs.getStyle()Gets the style.Contains collection of table columns in the table.Contains collection of table rows in the table.booleanSpecifies if the table will be printed.booleanSpecifies whether the table is protected from editing.booleanSpecifies if a nested table is a subtable.voidSets the.voidset(CellPosition position, Cell cell)Sets the.voidSets the.voidSets the.voidsetForms(OfficeForms forms)Sets the container for form elements.voidSets the name of the table.voidsetParent(IContentElement parent)Sets the parent content element.voidsetPrintable(boolean isPrintable)Specifies if the table will be printed.voidsetPrintRanges(String printRanges)Sets the print ranges of the table.voidsetProtected(boolean isProtected)Specifies whether the table is protected from editing.voidsetScenario(Scenario scenario)Sets the scenario for display on the table.voidSets the style.voidsetSubtable(boolean isSubtable)Specifies if a nested table is a subtable.toString()Converts the value of the current Table object to its equivalent string representation.
-
Constructor Details
-
Table
public Table()Initializes a new instance of the Table class. -
Table
Initializes a new instance of the Table class.- Parameters:
name- the name
-
Table
Instantiates a new table.- Parameters:
reader- the reader- Throws:
XMLStreamException- the xML stream exception
-
-
Method Details
-
getContentElements
Returns all content elements.- Specified by:
getContentElementsin interfaceIContentElement- Returns:
- A collection of content elements.
-
getParent
Returns the parent content element.- Specified by:
getParentin interfaceIContentElement- Returns:
- the parent
-
setParent
Sets the parent content element.- Specified by:
setParentin interfaceIContentElement- Parameters:
parent- the new parent
-
clone
Creates a new object that is a deep copy of the current instance.- Specified by:
clonein interfaceICellContent- Specified by:
clonein interfaceIContentElement- Specified by:
clonein interfaceIHeaderFooterContent- Specified by:
clonein interfaceIIndexContent- Specified by:
clonein interfaceITextContent- Overrides:
clonein classObject- Returns:
- A new object that is a copy of this instance.
-
toString
Converts the value of the current Table object to its equivalent string representation. -
getHeaderRows
Contains collection of header rows in the table.- Returns:
- the header rows
-
getTableRows
Contains collection of table rows in the table.- Returns:
- the table rows
-
getRows
Contains collection of rows in the table.- Returns:
- the rows
-
getHeaderColumns
Contains collection of header columns in the table.- Returns:
- the header columns
-
getTableColumns
Contains collection of table columns in the table.- Returns:
- the table columns
-
getColumns
Contains collection of columns in the table.- Returns:
- the columns
-
getForms
Gets the container for form elements.- Returns:
- the forms
-
setForms
Sets the container for form elements.- Parameters:
forms- the new forms
-
getScenario
Gets the scenario for display on the table.- Returns:
- the scenario
-
setScenario
Sets the scenario for display on the table.- Parameters:
scenario- the new scenario
-
getName
Gets the name of the table.- Returns:
- the name
-
setName
Sets the name of the table.- Parameters:
name- the new name
-
getStyle
Gets the style.- Returns:
- the style
-
setStyle
Sets the style.- Parameters:
style- the new style
-
getPrintRanges
Gets the print ranges of the table.- Returns:
- the prints the ranges
-
setPrintRanges
Sets the print ranges of the table.- Parameters:
printRanges- the new prints the ranges
-
isProtected
public boolean isProtected()Specifies whether the table is protected from editing.- Returns:
- true, if is protected
-
setProtected
public void setProtected(boolean isProtected)Specifies whether the table is protected from editing.- Parameters:
isProtected- the new protected
-
isPrintable
public boolean isPrintable()Specifies if the table will be printed.- Returns:
- true, if is printable
-
setPrintable
public void setPrintable(boolean isPrintable)Specifies if the table will be printed.- Parameters:
isPrintable- the new printable
-
isSubtable
public boolean isSubtable()Specifies if a nested table is a subtable.- Returns:
- true, if is subtable
-
setSubtable
public void setSubtable(boolean isSubtable)Specifies if a nested table is a subtable.- Parameters:
isSubtable- the new subtable
-
get
Gets the.- Parameters:
column- the columnrow- the row- Returns:
- the cell
-
set
Sets the.- Parameters:
column- the columnrow- the rowcell- the cell
-
get
Gets the.- Parameters:
column- the columnrow- the row- Returns:
- the cell
-
set
Sets the.- Parameters:
column- the columnrow- the rowcell- the cell
-
get
Gets the.- Parameters:
position- the position- Returns:
- the cell
-
set
Sets the.- Parameters:
position- the positioncell- the cell
-
get
Gets the.- Parameters:
position- the position- Returns:
- the cell
-
set
Sets the.- Parameters:
position- the positioncell- the cell
-
getShapes
Contains all the elements that represent graphic shapes that are anchored on the table where this element occurs.- Returns:
- the shapes
-