Elexis: Das führende OpenSource-Arztpraxisprogamm
im deutschsprachigen Raum
Java doc for Elexis version 2.1.7.dev vom 17.03.2013

ag.ion.bion.officelayer.internal.text
Class TextTableCellRange

java.lang.Object
  extended by ag.ion.bion.officelayer.internal.text.TextTableCellRange
All Implemented Interfaces:
ICloneServiceProvider, ITextTableCellRange

public class TextTableCellRange
extends java.lang.Object
implements ITextTableCellRange

Cell range of a text table.


Constructor Summary
TextTableCellRange(ITextDocument textDocument, com.sun.star.table.XCellRange xCellRange, ITextTableCellRangeName textTableCellRangeName)
          Constructs new TextTableCellRange.
 
Method Summary
 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.
 ITextTableCellProperties getCellProperties()
          Returns text table cell properties.
 ITextTableCell[][] getCells()
          Returns all cells.
 ICloneService getCloneService()
          Gets the clone service of the element.
 int getColumnCount()
          Returns the number of columns in the range.
 java.lang.Object[][] getData()
          Returns data of the cell range.
 ITextTableCellRangeName getRangeName()
          Returns the name of the range.
 int getRowCount()
          Returns the number of rows in the range.
 ITextDocument getTextDocument()
          Returns text document.
 com.sun.star.table.XCellRange getXCellRange()
          Returns the OpenOffice.org XCellRange interface.
 void setData(java.lang.Object[][] values)
          Sets data to the cell range.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextTableCellRange

public TextTableCellRange(ITextDocument textDocument,
                          com.sun.star.table.XCellRange xCellRange,
                          ITextTableCellRangeName textTableCellRangeName)
                   throws java.lang.IllegalArgumentException
Constructs new TextTableCellRange.

Parameters:
textDocument - text document to be used
xCellRange - OpenOffice.org XCellRange interface
textTableCellRangeName - the test table cell range name
Throws:
java.lang.IllegalArgumentException - if the submitted text document, OpenOffice.org XCellRange interface or text table range name is not valid
Method Detail

getXCellRange

public com.sun.star.table.XCellRange getXCellRange()
Returns the OpenOffice.org XCellRange interface.

Specified by:
getXCellRange in interface ITextTableCellRange
Returns:
the OpenOffice.org XCellRange interface

getTextDocument

public ITextDocument getTextDocument()
Returns text document.

Specified by:
getTextDocument in interface ITextTableCellRange
Returns:
text document

setData

public void setData(java.lang.Object[][] values)
             throws TextException
Sets data to the cell range.

Specified by:
setData in interface ITextTableCellRange
Parameters:
values - values to be used
Throws:
TextException - if the submitted array is not suitably

getData

public java.lang.Object[][] getData()
Returns data of the cell range.

Specified by:
getData in interface ITextTableCellRange
Returns:
data of the cell range

getCellProperties

public ITextTableCellProperties getCellProperties()
Returns text table cell properties.

Specified by:
getCellProperties in interface ITextTableCellRange
Returns:
text table cell properties

getRowCount

public int getRowCount()
Returns the number of rows in the range.

Specified by:
getRowCount in interface ITextTableCellRange
Returns:
number of rows in the range

getColumnCount

public int getColumnCount()
Returns the number of columns in the range.

Specified by:
getColumnCount in interface ITextTableCellRange
Returns:
number of rows in the range

getCell

public ITextTableCell getCell(java.lang.String name)
                       throws TextException
Returns cell with the submitted name.

Specified by:
getCell in interface ITextTableCellRange
Parameters:
name - name of the cell
Returns:
cell with the submitted name
Throws:
TextException - if the cell is not available

getCell

public ITextTableCell getCell(int columnIndex,
                              int rowIndex)
                       throws TextException
Returns cell with the submitted column and row index.

Specified by:
getCell in interface ITextTableCellRange
Parameters:
columnIndex - column index of the cell
rowIndex - row index of the cell
Returns:
cell with the submitted column and row index
Throws:
TextException - if the cell is not available

getRangeName

public ITextTableCellRangeName getRangeName()
Returns the name of the range.

Specified by:
getRangeName in interface ITextTableCellRange
Returns:
name of the range

getCells

public ITextTableCell[][] getCells()
Returns all cells.

Specified by:
getCells in interface ITextTableCellRange
Returns:
all cells

getCloneService

public ICloneService getCloneService()
                              throws CloneException
Gets the clone service of the element.

Specified by:
getCloneService in interface ICloneServiceProvider
Returns:
the clone service
Throws:
CloneException - if the clone service could not be returned

Elexis: Das führende OpenSource-Arztpraxisprogamm
im deutschsprachigen Raum
Java doc for Elexis version 2.1.7.dev vom 17.03.2013