Package | Description |
---|---|
org.odftoolkit.simple |
Provide high level methods to frequently used ODF documents.
|
org.odftoolkit.simple.common.navigation |
Provide classes to operate the content and style of the selected text content.
|
org.odftoolkit.simple.presentation |
Provide high level methods to ODF presentation documents.
|
org.odftoolkit.simple.table |
Provide convenient methods to manipulate table in ODF text and spreadsheet document.
|
org.odftoolkit.simple.text |
Provide convenient methods to manipulate frequently used structures in ODF text document, such as list and section.
|
Modifier and Type | Method and Description |
---|---|
Table |
Document.addTable() |
Table |
Document.addTable(int numRows,
int numCols) |
Table |
TextDocument.addTable(int numRows,
int numCols,
int headerRowNumber,
int headerColumnNumber)
Add a new Table to this container with a specified row number and column number.
|
Table |
SpreadsheetDocument.appendSheet(String name)
Adds a new blank sheet with the specified
name to this document. |
Table |
SpreadsheetDocument.appendSheet(Table refTable,
String name)
Adds a new sheet with data from existing table.
|
Table |
SpreadsheetDocument.getActiveSheet()
Retrieves the active sheet of this document.
|
Table |
SpreadsheetDocument.getSheetByIndex(int index)
Retrieves sheet by index.
|
Table |
SpreadsheetDocument.getSheetByName(String name)
Retrieves sheet by name.
|
Table |
Document.getTableByName(String name) |
Table |
SpreadsheetDocument.insertSheet(int before)
Inserts a new blank sheet before the reference index.
|
Table |
SpreadsheetDocument.insertSheet(Table refTable,
int before)
Inserts a new sheet with data from existing table.
|
Table |
TextDocument.insertTable(Paragraph referenceParagraph,
Table sourceTable,
boolean before)
Copy a Table and insert it before or after the Reference Paragraph in the text document,
whether the Table is in this TextDocument or in a different Document.
|
Modifier and Type | Method and Description |
---|---|
List<Table> |
Document.getTableList() |
Modifier and Type | Method and Description |
---|---|
Table |
SpreadsheetDocument.appendSheet(Table refTable,
String name)
Adds a new sheet with data from existing table.
|
Table |
SpreadsheetDocument.insertSheet(Table refTable,
int before)
Inserts a new sheet with data from existing table.
|
Table |
TextDocument.insertTable(Paragraph referenceParagraph,
Table sourceTable,
boolean before)
Copy a Table and insert it before or after the Reference Paragraph in the text document,
whether the Table is in this TextDocument or in a different Document.
|
Modifier and Type | Method and Description |
---|---|
Table |
TextSelection.replaceWith(Table newTable)
Replace the text content of selection with a new Table.
|
Table |
TableSelection.replaceWithTable(Table table)
Replace the content with a Table , the table can be in the same TextDocument or in a different
Document.
|
Modifier and Type | Method and Description |
---|---|
Table |
TextSelection.replaceWith(Table newTable)
Replace the text content of selection with a new Table.
|
Table |
TableSelection.replaceWithTable(Table table)
Replace the content with a Table , the table can be in the same TextDocument or in a different
Document.
|
Modifier and Type | Method and Description |
---|---|
Table |
Slide.addTable() |
Table |
Slide.addTable(int numRows,
int numCols) |
Table |
Slide.getTableByName(String name) |
Modifier and Type | Method and Description |
---|---|
List<Table> |
Slide.getTableList() |
Modifier and Type | Method and Description |
---|---|
Table |
TableContainer.addTable()
Add a new Table to this container.
|
Table |
AbstractTableContainer.addTable()
Add a new Table to this container.
|
Table |
TableContainer.addTable(int numRows,
int numCols)
Add a new Table to this container with a specified row number and column number.
|
Table |
AbstractTableContainer.addTable(int numRows,
int numCols)
Add a new Table to this container with a specified row number and column number.
|
static Table |
Table.getInstance(TableTableElement element)
Get a table feature instance by an instance of
TableTableElement . |
Table |
Cell.getTable()
Get an instance of table feature which contains this cell.
|
Table |
Row.getTable()
Get owner table of the current row.
|
Table |
CellRange.getTable()
Get the
Table instance who contains this cell range. |
Table |
Column.getTable()
Get owner table of the current column.
|
Table |
TableContainer.getTableByName(String name)
Return an instance of table feature with the specific table name.
|
Table |
AbstractTableContainer.getTableByName(String name)
Return an instance of table feature with the specific table name.
|
Table |
Table.TableBuilder.getTableInstance(TableTableElement odfElement)
Get a table feature instance by an instance of
TableTableElement . |
Table |
Table.TableBuilder.newTable()
Construct the
Table feature. |
Table |
Table.TableBuilder.newTable(int numRows,
int numCols)
Construct the
Table feature with a specified row number and column number. |
Table |
Table.TableBuilder.newTable(int numRows,
int numCols,
int headerRowNumber,
int headerColumnNumber)
Construct the
Table feature with a specified row number, column number, header
row number, header column number. |
Table |
Table.TableBuilder.newTable(int numRows,
int numCols,
int headerRowNumber,
int headerColumnNumber,
double marginLeft,
double marginRight)
Construct the
Table feature with a specified row number, column number, header
row number, header column number, left margin space and right margin space. |
Table |
Table.TableBuilder.newTable(String[] rowLabel,
String[] columnLabel,
double[][] data)
Construct the Table feature with a specified 2 dimension array as the data of this table.
|
Table |
Table.TableBuilder.newTable(String[] rowLabel,
String[] columnLabel,
String[][] data)
Construct the Table feature with a specified 2 dimension array as the data of this table.
|
static Table |
Table.newTable(TableContainer tableContainer)
Construct the
Table feature. |
static Table |
Table.newTable(TableContainer tableContainer,
int numRows,
int numCols)
Construct the
Table feature with a specified row number and column number. |
static Table |
Table.newTable(TableContainer tableContainer,
int numRows,
int numCols,
double marginLeft,
double marginRight)
Construct the
Table feature with a specified row number and column number. |
static Table |
Table.newTable(TableContainer tableContainer,
int numRows,
int numCols,
int headerRowNumber,
int headerColumnNumber)
Construct the
Table feature with a specified row number, column number, header row
number, header column number. |
static Table |
Table.newTable(TableContainer tableContainer,
String[] rowLabel,
String[] columnLabel,
double[][] data)
Construct the Table feature with a specified 2 dimension array as the data of this table.
|
static Table |
Table.newTable(TableContainer tableContainer,
String[] rowLabel,
String[] columnLabel,
String[][] data)
Construct the Table feature with a specified 2 dimension array as the data of this table.
|
Modifier and Type | Method and Description |
---|---|
List<Table> |
TableContainer.getTableList()
Return a list of table features in this document.
|
List<Table> |
AbstractTableContainer.getTableList()
Return a list of table features in this container.
|
Modifier and Type | Method and Description |
---|---|
static void |
RepeatedNumberUtils.removeDummyCellsFromTable(Table table)
Remove unused columns and rows from the end of a table.
|
Modifier and Type | Method and Description |
---|---|
Table |
Header.addTable() |
Table |
Footer.addTable() |
Table |
Section.addTable() |
Table |
Header.addTable(int numRows,
int numCols) |
Table |
Footer.addTable(int numRows,
int numCols) |
Table |
Section.addTable(int numRows,
int numCols) |
Table |
Header.getTableByName(String name) |
Table |
Footer.getTableByName(String name) |
Table |
Section.getTableByName(String name) |
Modifier and Type | Method and Description |
---|---|
List<Table> |
Header.getTableList() |
List<Table> |
Footer.getTableList() |
List<Table> |
Section.getTableList() |
Copyright © 2010–2018 Apache Software Foundation; Copyright © 2018–2020 The Document Foundation. All rights reserved.