|
Elexis: Das führende OpenSource-Arztpraxisprogamm im deutschsprachigen Raum Java doc for Elexis version 2.1.7.dev vom 17.03.2013 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectag.ion.bion.officelayer.text.AbstractTextComponent
ag.ion.bion.officelayer.internal.text.TextTable
public class TextTable
Table of an OpenOffice.org text document.
| Field Summary |
|---|
| Fields inherited from class ag.ion.bion.officelayer.text.AbstractTextComponent |
|---|
textDocument |
| Fields inherited from interface ag.ion.bion.officelayer.text.ITextTable |
|---|
MAX_CELLS_IN_TABLE, MAX_COLUMNS_IN_TABLE |
| Constructor Summary | |
|---|---|
TextTable(ITextDocument textDocument,
com.sun.star.text.XTextTable xTextTable)
Constructs new TextTable. |
|
| Method Summary | |
|---|---|
void |
addCellData(java.lang.String cellName,
java.lang.String content)
Adds submitted content to the cell with the submitted name. |
void |
addCellData(java.lang.String cellName,
com.sun.star.text.XTextContent xTextContent)
Adds submitted text content to the cell with the submitted name. |
void |
addColumn(int count)
Adds column(s) to the table. |
void |
addColumn(int index,
int count)
Adds column(s) at submitted index the table. |
void |
addColumn(int index,
int count,
boolean after)
Adds column(s) at submitted index the table. |
void |
addRow(int count)
Adds row(s) to the table. |
void |
addRow(int index,
int count)
Adds row(s) at submitted index to the table. |
ITextTableCell |
getCell(int columnIndex,
int rowIndex)
Returns cell with the submitted column and row index. |
ITextTableCell |
getCell(java.lang.String name)
Returns cell with the submitted name. |
ITextTableCellRange |
getCellRange(int firstColumnIndex,
int firstRowIndex,
int lastColumnIndex,
int lastRowIndex)
Returns cell range on the basis submitted index informations. |
ITextTableCellRange |
getCellRange(java.lang.String cellRangeName)
Returns cell range on the basis of the submitted cell range name. |
ITextTableCell[] |
getCellsWithFormula()
Returns all cells with formulas. |
ICloneService |
getCloneService()
Gets the clone service of the element. |
ITextTableColumn |
getColumn(int index)
Returns a column at submitted index the table. |
int |
getColumnCount()
Returns number of available columns. |
ITextTableColumn[] |
getColumns()
Returns all columns of a table. |
java.lang.String |
getName()
Returns name of the table. |
ITextTableProperties |
getProperties()
Returns properties of the text table. |
ITextTablePropertyStore |
getPropertyStore()
Returns the property store of the table. |
ITextTableRow |
getRow(int index)
Returns text table row. |
int |
getRowCount()
Returns number of available rows. |
ITextTableRow[] |
getRows()
Returns text table row. |
short |
getTableEndPageNumber()
Returns the page number where the table ends, returns -1 if page number could not be determined. |
short |
getTableStartPageNumber()
Returns the page number where the table starts, returns -1 if page number could not be determined. |
ITextRange |
getTextRange()
Returns text range of the text table. |
com.sun.star.text.XTextContent |
getXTextContent()
Returns OpenOffice.org XTextContent interface. |
com.sun.star.text.XTextTable |
getXTextTable()
Returns OpenOffice.org XTextTable interface. |
void |
markTable()
Marks the table. |
void |
remove()
Removes the table. |
void |
removeRow(int index)
Removes a specified row. |
void |
removeRows(int index,
int count)
Removes rows. |
void |
setCellData(java.lang.String cellName,
double content)
Sets data of the cell with the submitted name. |
void |
setCellData(java.lang.String cellName,
java.lang.String content)
Sets data of the cell with the submitted name. |
void |
setCellData(java.lang.String cellName,
com.sun.star.text.XTextContent xTextContent)
Sets data of cell with the submitted name. |
void |
setCellFormula(java.lang.String cellName,
java.lang.String formula)
Sets formula into the cell with the submitted name. |
void |
setHeaderRows(int headerRows)
Sets the number of header rows to apply header style for. |
void |
spreadColumnsEvenly()
Spread all columns evenly. |
void |
spreadColumnsEvenly(int startIndex,
int endIndex)
Spread columns in range evenly. |
| Methods inherited from class ag.ion.bion.officelayer.text.AbstractTextComponent |
|---|
getTextDocument |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface ag.ion.bion.officelayer.text.ITextComponent |
|---|
getTextDocument |
| Constructor Detail |
|---|
public TextTable(ITextDocument textDocument,
com.sun.star.text.XTextTable xTextTable)
throws com.sun.star.lang.IllegalArgumentException
textDocument - text document to be usedxTextTable - OpenOffice.org XTextTable interface
com.sun.star.lang.IllegalArgumentException - if the submitted text document or OpenOffice.org XTextTable interface
is not valid| Method Detail |
|---|
public com.sun.star.text.XTextContent getXTextContent()
getXTextContent in interface ITextContentgetXTextContent in interface ITextTablepublic com.sun.star.text.XTextTable getXTextTable()
getXTextTable in interface ITextTable
public ITextRange getTextRange()
throws java.lang.Exception
getTextRange in interface ITextTablejava.lang.Exceptionpublic ITextTableProperties getProperties()
getProperties in interface ITextTablepublic java.lang.String getName()
getName in interface ITextTable
public void setCellData(java.lang.String cellName,
com.sun.star.text.XTextContent xTextContent)
throws java.lang.Exception
cellName - name of the cellxTextContent - content to be inserted
java.lang.Exception - if any error occurs
public void addCellData(java.lang.String cellName,
com.sun.star.text.XTextContent xTextContent)
throws java.lang.Exception
cellName - name of the cellxTextContent - text content to be added
java.lang.Exception - if any error occurs
public void setCellData(java.lang.String cellName,
java.lang.String content)
throws java.lang.Exception
cellName - name of the cellcontent - content to be inserted
java.lang.Exception - if any error occurs
public void addCellData(java.lang.String cellName,
java.lang.String content)
throws java.lang.Exception
cellName - name of the cellcontent - content to be added
java.lang.Exception - if any error occurs
public void setCellData(java.lang.String cellName,
double content)
throws java.lang.Exception
cellName - name of the cellcontent - content to be inserted
java.lang.Exception - if any error occurs
public void setCellFormula(java.lang.String cellName,
java.lang.String formula)
throws java.lang.Exception
cellName - name of the cellformula - formula to be inserted
java.lang.Exception - if any error occurs
public void addRow(int count)
throws TextException
addRow in interface ITextTablecount - number of rows to be added
TextException - if the row(s) can not be added
public void addRow(int index,
int count)
throws TextException
addRow in interface ITextTableindex - index to be usedcount - number of rows to be added
TextException - if the row(s) can not be addedpublic int getRowCount()
getRowCount in interface ITextTable
public void addColumn(int count)
throws TextException
addColumn in interface ITextTablecount - number of columns to be added
TextException - if the column(s) can not be added
public void addColumn(int index,
int count)
throws TextException
addColumn in interface ITextTableindex - index to be usedcount - number of columns to be added
TextException - if the column(s) can not be added
public void addColumn(int index,
int count,
boolean after)
throws TextException
addColumn in interface ITextTableindex - index to be usedcount - number of columns to be addedafter - true, if the rows shoud be addes after submitted index
TextException - if the column(s) can not be added
public ITextTableColumn getColumn(int index)
throws TextException
getColumn in interface ITextTableindex - index to be used
TextException - if any error occurs
public ITextTableColumn[] getColumns()
throws TextException
getColumns in interface ITextTableTextException - if any error occurspublic int getColumnCount()
getColumnCount in interface ITextTable
public void spreadColumnsEvenly()
throws TextException
spreadColumnsEvenly in interface ITextTableTextException - if necessary properties are not available
public void spreadColumnsEvenly(int startIndex,
int endIndex)
throws TextException
spreadColumnsEvenly in interface ITextTablestartIndex - index of the first column in rangeendIndex - index of the last column in range
TextException - if necessary properties are not available
public ITextTableCell getCell(java.lang.String name)
throws TextException
getCell in interface ITextTablename - name of the cell
TextException - if the cell is not availablepublic ITextTableCell[] getCellsWithFormula()
getCellsWithFormula in interface ITextTable
public ITextTableCell getCell(int columnIndex,
int rowIndex)
throws TextException
getCell in interface ITextTablecolumnIndex - column index of the cellrowIndex - row index of the cell
TextException - if the cell is not available
public ITextTableCellRange getCellRange(int firstColumnIndex,
int firstRowIndex,
int lastColumnIndex,
int lastRowIndex)
throws TextException
getCellRange in interface ITextTablefirstColumnIndex - index of first column inside the rangefirstRowIndex - index of first row inside the rangelastColumnIndex - index of last column inside the rangelastRowIndex - index of last row inside the range
TextException - if the cell range is not available
public ITextTableCellRange getCellRange(java.lang.String cellRangeName)
throws TextException
getCellRange in interface ITextTablecellRangeName - name of the cell range
TextException - if the cell range is not availablepublic ITextTableRow[] getRows()
getRows in interface ITextTable
public ICloneService getCloneService()
throws CloneException
getCloneService in interface ICloneServiceProviderCloneException - if the clone service could not be returnedpublic ITextTableRow getRow(int index)
getRow in interface ITextTableindex - index to be used
public ITextTablePropertyStore getPropertyStore()
throws TextException
getPropertyStore in interface ITextTableTextException - if the property store is not available
public void removeRow(int index)
throws TextException
removeRow in interface ITextTableindex - index of the row
TextException - if the row could not removed
public void removeRows(int index,
int count)
throws TextException
removeRows in interface ITextTableindex - index of the first rowcount - number of rows to remove
TextException - if the rows could not removed
public void remove()
throws TextException
remove in interface ITextTableTextException - if the table can not be removedpublic short getTableStartPageNumber()
getTableStartPageNumber in interface ITextTable
public void setHeaderRows(int headerRows)
throws TextException
setHeaderRows in interface ITextTableheaderRows - number of header rows
TextException - if the header rows could not be setpublic short getTableEndPageNumber()
getTableEndPageNumber in interface ITextTablepublic void markTable()
markTable in interface ITextTable
|
Elexis: Das führende OpenSource-Arztpraxisprogamm im deutschsprachigen Raum Java doc for Elexis version 2.1.7.dev vom 17.03.2013 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||