|
Holger's Java API |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.antelmann.ooffice.TextTableFrame
public class TextTableFrame
provides easy to use table-related functionality for TextFrames This class implements ThirdParty for its use of OpenOffice libraries; see www.openoffice.org
| Constructor Summary | |
|---|---|
TextTableFrame(TextFrame doc)
|
|
| Method Summary | |
|---|---|
int |
appendRows(String tableName,
int count)
returns the number of rows in the given table including the appended rows |
void |
copyCellText(String originTableName,
int originRow,
int originColumn,
String targetTableName,
int targetRow,
int targetColumn)
|
void |
copyCellText(String originTableName,
String originCellName,
String targetTableName,
String targetCellName)
|
int |
deleteRows(String tableName,
int atRow,
int count)
returns the number of rows in the given table including the inserted rows |
com.sun.star.table.XCell |
getCell(String tableName,
int row,
int column)
|
com.sun.star.table.XCell |
getCellForBookmark(String bookmark)
|
com.sun.star.table.XCell |
getCellForCursor(com.sun.star.text.XTextCursor cursor)
|
String |
getCellNameFor(String bookmark)
|
String |
getCellNameFor(com.sun.star.table.XCell cell)
|
String[] |
getCellNamesFor(String tableName)
|
static int |
getRowForCellName(String cell)
only works properly for simple cell names (without merged/splitted cells) |
String |
getTableNameFor(String bookmark)
|
String |
getTableNameFor(com.sun.star.table.XCell cell)
|
String[] |
getTableNames()
|
TextFrame |
getTextFrame()
|
com.sun.star.text.XText |
insertIntoCell(String tableName,
int row,
int column,
String text)
returns the text component of the target cell for further handling |
com.sun.star.text.XText |
insertIntoCell(String tableName,
String cellName,
String text)
returns the text component of the target cell for further handling |
int |
insertRows(String tableName,
int atRow,
int count)
returns the number of rows in the given table including the inserted rows |
int |
insertRowsAtBookmark(String bookmark,
int count)
|
void |
setCellBackground(com.sun.star.table.XCell cell,
String imageURL)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TextTableFrame(TextFrame doc)
| Method Detail |
|---|
public TextFrame getTextFrame()
public int deleteRows(String tableName,
int atRow,
int count)
throws OfficeException
OfficeException
public int insertRows(String tableName,
int atRow,
int count)
throws OfficeException
OfficeException
public int appendRows(String tableName,
int count)
throws OfficeException
OfficeException
public String[] getCellNamesFor(String tableName)
throws OfficeException,
IllegalArgumentException
OfficeException
IllegalArgumentException
public String getCellNameFor(com.sun.star.table.XCell cell)
throws OfficeException
OfficeException
public String getTableNameFor(com.sun.star.table.XCell cell)
throws OfficeException
OfficeExceptionpublic String[] getTableNames()
public static int getRowForCellName(String cell)
public int insertRowsAtBookmark(String bookmark,
int count)
throws OfficeException
OfficeException
public String getTableNameFor(String bookmark)
throws OfficeException,
IllegalArgumentException
OfficeException
IllegalArgumentException
public String getCellNameFor(String bookmark)
throws OfficeException,
IllegalArgumentException
OfficeException
IllegalArgumentException
public com.sun.star.table.XCell getCellForBookmark(String bookmark)
throws OfficeException,
IllegalArgumentException
OfficeException
IllegalArgumentException
public com.sun.star.table.XCell getCellForCursor(com.sun.star.text.XTextCursor cursor)
throws OfficeException
OfficeException
public com.sun.star.text.XText insertIntoCell(String tableName,
String cellName,
String text)
throws OfficeException,
IllegalArgumentException
OfficeException
IllegalArgumentException
public com.sun.star.table.XCell getCell(String tableName,
int row,
int column)
throws OfficeException,
IllegalArgumentException
OfficeException
IllegalArgumentException
public com.sun.star.text.XText insertIntoCell(String tableName,
int row,
int column,
String text)
throws OfficeException,
IllegalArgumentException
OfficeException
IllegalArgumentException
public void copyCellText(String originTableName,
int originRow,
int originColumn,
String targetTableName,
int targetRow,
int targetColumn)
throws OfficeException,
IllegalArgumentException
OfficeException
IllegalArgumentException
public void copyCellText(String originTableName,
String originCellName,
String targetTableName,
String targetCellName)
throws OfficeException,
IllegalArgumentException
OfficeException
IllegalArgumentException
public void setCellBackground(com.sun.star.table.XCell cell,
String imageURL)
throws OfficeException
OfficeException
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||