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.table.extended
Class ETextTableCellRange

java.lang.Object
  extended by ag.ion.bion.officelayer.internal.text.table.extended.ETextTableCellRange
All Implemented Interfaces:
ICloneServiceProvider, IETextTableCellRange

public class ETextTableCellRange
extends java.lang.Object
implements IETextTableCellRange

Implementation of ITextTableCellRange for extended tables.


Constructor Summary
ETextTableCellRange(ITextTableCellRange[] textTableCellRanges, ITextTableCellRangeName textTableCellRangeName, IETextTable textTable)
          Constructs a new ETextTableCellRange.
 
Method Summary
 IETextTableCell getCell(int columnIndex, int rowIndex, int columnCount)
          Returns cell with the submitted column and row index.
 IETextTableCell getCell(java.lang.String name, int columnCount)
          Returns cell with the submitted name.
 ITextTableCellProperties[] getCellProperties()
          Returns text table cell properties.
 IETextTableCell[] 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.
 ITextTableCellRange[] getRanges()
          Returns all text table cell ranges.
 int getRowCount()
          Returns the number of rows in the range.
 ITextDocument getTextDocument()
          Returns text document.
 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

ETextTableCellRange

public ETextTableCellRange(ITextTableCellRange[] textTableCellRanges,
                           ITextTableCellRangeName textTableCellRangeName,
                           IETextTable textTable)
                    throws java.lang.IllegalArgumentException,
                           TextException
Constructs a new ETextTableCellRange.

Parameters:
textTableCellRanges - the text table cell ranges
textTableCellRangeName - the test table cell range name
textTable - the text table
Throws:
TextException - if any error occurs
java.lang.IllegalArgumentException - if the submitted parameter are not valid
Method Detail

getTextDocument

public ITextDocument getTextDocument()
Returns text document.

Specified by:
getTextDocument in interface IETextTableCellRange
Returns:
text document

setData

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

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

getData

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

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

getCellProperties

public ITextTableCellProperties[] getCellProperties()
Returns text table cell properties.

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

getRowCount

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

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

getColumnCount

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

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

getCell

public IETextTableCell getCell(java.lang.String name,
                               int columnCount)
                        throws TextException
Returns cell with the submitted name.

Specified by:
getCell in interface IETextTableCellRange
Parameters:
name - name of the cell
columnCount - column count of the table
Returns:
cell with the submitted name
Throws:
TextException - if the cell is not available

getCell

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

Specified by:
getCell in interface IETextTableCellRange
Parameters:
columnIndex - column index of the cell
rowIndex - row index of the cell
columnCount - colum count of the table
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 IETextTableCellRange
Returns:
name of the range

getCells

public IETextTableCell[] getCells()
Returns all cells.

Specified by:
getCells in interface IETextTableCellRange
Returns:
all cells

getRanges

public ITextTableCellRange[] getRanges()
Returns all text table cell ranges.

Returns:
all text table cell ranges

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