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
Class TextTableCellReferencesService

java.lang.Object
  extended by ag.ion.bion.officelayer.internal.text.table.TextTableCellReferencesService
All Implemented Interfaces:
ITextTableCellReferencesService
Direct Known Subclasses:
ETextTableCellReferencesService

public class TextTableCellReferencesService
extends java.lang.Object
implements ITextTableCellReferencesService

Text table cell references service implementation.


Field Summary
protected  TextTableFormulaExpression textTableFormulaExpression
           
protected  TextTableFormulaModel textTableFormulaModel
           
 
Constructor Summary
TextTableCellReferencesService(TextTableFormulaExpression textTableFormulaExpression)
          Constructs new TextTableCellReferencesService.
 
Method Summary
 void applyModifications()
          Applies cell reference modifications to the text table cell formula.
 void extendColumnAndRowReferences(java.lang.String cellName, int columnCount, int rowCount)
          Extends column and row references which have a reference to the submitted name of a text table cell.
 void extendColumnReferences(int columnIndex, int columnCount)
          Extends column references which have a reference to the submitted column index of a text table cell.
 void extendColumnReferences(int columnIndex, int columnCount, int[] exceptRows)
          Extends column references which have a reference to the submitted column index of a text table cell except references with the given row indices.
 void extendColumnReferences(java.lang.String cellName, int columnCount)
          Extends column references which have a reference to the column index of the submitted name of a text table cell.
 void extendRowReferences(int rowIndex, int rowCount)
          Extends row references which have a reference to the submitted row index of a text table cell.
 void extendRowReferences(int rowIndex, int[] rowIndicesTo)
          Extends row references which have a reference to the submitted row index of a text table cell.
 void extendRowReferences(int rowIndex, int rowCount, int[] exceptCols)
          Extends row references which have a reference to the submitted row index of a text table cell except references with the given column indices.
 void extendRowReferences(java.lang.String cellName, int rowCount)
          Extends row references which have a reference to the row index of the submitted name of a text table cell.
 void extendRowReferencesTo(int rowIndex, int rowIndexTo)
          Extends row references which have a reference to the submitted row index of a text table cell.
 boolean hasCellReferenceTo(java.lang.String cellName)
          Returns informations whether this formula has a reference to a text table cell with the submitted name.
 boolean hasColumnReferenceAfter(int columnIndex)
          Returns information whether this formula has a reference to a column after the submitted column index.
 boolean hasColumnReferenceTo(int columnIndex)
          Returns information whether this formula has a reference to a column with the submitted index.
 boolean hasRowReferenceAfter(int rowIndex)
          Returns information whether this formula has a reference to a row after the submitted row index.
 boolean hasRowReferenceTo(int rowIndex)
          Returns information whether this formula has a reference to the submitted row index.
 void modifyCellReferences(int newColumnsStartIndex, int newColumnsCount, int newRowsStartIndex, int newRowsCount)
          Modifies all cell references on the basis of the submitted table expansion informations.
 void moveColumnReferences(int columnCount)
          Moves column references.
 void moveColumnReferences(int columnIndex, int columnCount)
          Moves column references which have a reference to the column with the submitted index.
 void moveColumnReferences(int columnIndex, int columnCount, int[] exceptRows)
          Moves column references which have a reference to the column with the submitted index except references with the given row indices.
 void moveColumnReferences(java.lang.String cellName, int columnCount)
          Moves column references which have a reference to the column of the submitted name of a text table cell.
 void moveColumnReferencesAfter(int columnIndex, int columnCount)
          Moves column references which have a reference to a column after the submitted index.
 void moveRowReferences(int rowCount)
          Moves row references.
 void moveRowReferences(int rowIndex, int rowCount)
          Moves row references which have a reference to the submitted row index.
 void moveRowReferences(int rowIndex, int rowCount, int[] exceptCols)
          Moves row references which have a reference to the submitted row index except references with the given column indices.
 void moveRowReferences(java.lang.String cellName, int rowCount)
          Moves row references which have a reference to the row index of the submitted name of a text table cell.
 void moveRowReferencesAfter(int rowIndex, int rowCount)
          Moves row references which have a reference to a row after the submitted index.
 void revertModelToOriginal()
          Reverts the model to the state before replacing cell references with method extendRowReferences().
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

textTableFormulaExpression

protected TextTableFormulaExpression textTableFormulaExpression

textTableFormulaModel

protected TextTableFormulaModel textTableFormulaModel
Constructor Detail

TextTableCellReferencesService

public TextTableCellReferencesService(TextTableFormulaExpression textTableFormulaExpression)
                               throws java.lang.IllegalArgumentException
Constructs new TextTableCellReferencesService.

Parameters:
textTableFormulaExpression - text table formua expression to be used
Throws:
java.lang.IllegalArgumentException - if the submitted text table formula expression is not valid
Method Detail

hasCellReferenceTo

public boolean hasCellReferenceTo(java.lang.String cellName)
Returns informations whether this formula has a reference to a text table cell with the submitted name.

Specified by:
hasCellReferenceTo in interface ITextTableCellReferencesService
Parameters:
cellName - name of a text table cell
Returns:
informations whether this formula has a reference to a text table cell with the submitted name

hasColumnReferenceTo

public boolean hasColumnReferenceTo(int columnIndex)
Returns information whether this formula has a reference to a column with the submitted index.

Specified by:
hasColumnReferenceTo in interface ITextTableCellReferencesService
Parameters:
columnIndex - index of a column
Returns:
information whether this formula has a reference to a column with the submitted index

hasColumnReferenceAfter

public boolean hasColumnReferenceAfter(int columnIndex)
Returns information whether this formula has a reference to a column after the submitted column index.

Specified by:
hasColumnReferenceAfter in interface ITextTableCellReferencesService
Parameters:
columnIndex - column index to be used
Returns:
information whether this formula has a reference to a column after the submitted column index

hasRowReferenceTo

public boolean hasRowReferenceTo(int rowIndex)
Returns information whether this formula has a reference to the submitted row index.

Specified by:
hasRowReferenceTo in interface ITextTableCellReferencesService
Parameters:
rowIndex - index of row
Returns:
information whether this formula has a reference to the submitted row index

hasRowReferenceAfter

public boolean hasRowReferenceAfter(int rowIndex)
Returns information whether this formula has a reference to a row after the submitted row index.

Specified by:
hasRowReferenceAfter in interface ITextTableCellReferencesService
Parameters:
rowIndex - row index to be used
Returns:
information whether this formula has a reference to a row after the submitted row index

moveColumnReferences

public void moveColumnReferences(int columnCount)
                          throws TextException
Moves column references. Use positive values in order to move the column references forward and negative values to move them backward.

Specified by:
moveColumnReferences in interface ITextTableCellReferencesService
Parameters:
columnCount - column index difference to be moved
Throws:
TextException - if the text table cell references can not be moved

moveColumnReferences

public void moveColumnReferences(java.lang.String cellName,
                                 int columnCount)
                          throws TextException
Moves column references which have a reference to the column of the submitted name of a text table cell. Use positive values in order to move the column references forward and negative values to move them backward.

Specified by:
moveColumnReferences in interface ITextTableCellReferencesService
Parameters:
cellName - name of a text table cell
columnCount - column index difference to be moved
Throws:
TextException - if the text table cell references can not be moved

moveColumnReferences

public void moveColumnReferences(int columnIndex,
                                 int columnCount)
                          throws TextException
Moves column references which have a reference to the column with the submitted index. Use positive values in order to move the column references forward and negative values to move them backward.

Specified by:
moveColumnReferences in interface ITextTableCellReferencesService
Parameters:
columnIndex - index of a column
columnCount - column index difference to be moved
Throws:
TextException - if the text table cell references can not be moved

moveColumnReferences

public void moveColumnReferences(int columnIndex,
                                 int columnCount,
                                 int[] exceptRows)
                          throws TextException
Moves column references which have a reference to the column with the submitted index except references with the given row indices. Use positive values in order to move the column references forward and negative values to move them backward.

Specified by:
moveColumnReferences in interface ITextTableCellReferencesService
Parameters:
columnIndex - index of a column
columnCount - column index difference to be moved
exceptRows - references to rows that are ignored
Throws:
TextException - if the text table cell references can not be moved

moveRowReferences

public void moveRowReferences(int rowCount)
                       throws TextException
Moves row references. Use positive values in order to move the row references forward and negative values to move them backward.

Specified by:
moveRowReferences in interface ITextTableCellReferencesService
Parameters:
rowCount - row index difference to be moved
Throws:
TextException - if the text table cell references can not be moved

moveRowReferences

public void moveRowReferences(java.lang.String cellName,
                              int rowCount)
                       throws TextException
Moves row references which have a reference to the row index of the submitted name of a text table cell. Use positive values in order to move the row references forward and negative values to move them backward.

Specified by:
moveRowReferences in interface ITextTableCellReferencesService
Parameters:
cellName - name of a text table cell
rowCount - row index difference to be moved
Throws:
TextException - if the text table cell references can not be moved

moveRowReferences

public void moveRowReferences(int rowIndex,
                              int rowCount)
                       throws TextException
Moves row references which have a reference to the submitted row index. Use positive values in order to move the row references forward and negative values to move them backward.

Specified by:
moveRowReferences in interface ITextTableCellReferencesService
Parameters:
rowIndex - row index to be used
rowCount - row index difference to be moved
Throws:
TextException - if the text table cell references can not be moved

moveRowReferences

public void moveRowReferences(int rowIndex,
                              int rowCount,
                              int[] exceptCols)
                       throws TextException
Moves row references which have a reference to the submitted row index except references with the given column indices. Use positive values in order to move the row references forward and negative values to move them backward.

Specified by:
moveRowReferences in interface ITextTableCellReferencesService
Parameters:
rowIndex - row index to be used
rowCount - row index difference to be moved
exceptCols - references to columns that are ignored
Throws:
TextException - if the text table cell references can not be moved

moveColumnReferencesAfter

public void moveColumnReferencesAfter(int columnIndex,
                                      int columnCount)
                               throws TextException
Moves column references which have a reference to a column after the submitted index. Use positive values in order to move the column references forward and negative values to move them backward.

Specified by:
moveColumnReferencesAfter in interface ITextTableCellReferencesService
Parameters:
columnIndex - column index to be used
columnCount - column index difference to be moved
Throws:
TextException - if the text table cell references can not be moved

moveRowReferencesAfter

public void moveRowReferencesAfter(int rowIndex,
                                   int rowCount)
                            throws TextException
Moves row references which have a reference to a row after the submitted index. Use positive values in order to move the row references forward and negative values to move them backward.

Specified by:
moveRowReferencesAfter in interface ITextTableCellReferencesService
Parameters:
rowIndex - row index to be used
rowCount - row index difference to be moved
Throws:
TextException - if the text table cell references can not be moved

extendColumnReferences

public void extendColumnReferences(java.lang.String cellName,
                                   int columnCount)
                            throws TextException
Extends column references which have a reference to the column index of the submitted name of a text table cell.

Specified by:
extendColumnReferences in interface ITextTableCellReferencesService
Parameters:
cellName - name of a text table cell
columnCount - column index difference to be used
Throws:
TextException - if the text table cell references can not be extended

extendColumnReferences

public void extendColumnReferences(int columnIndex,
                                   int columnCount)
                            throws TextException
Extends column references which have a reference to the submitted column index of a text table cell.

Specified by:
extendColumnReferences in interface ITextTableCellReferencesService
Parameters:
columnIndex - column index of a text table cell
columnCount - column index difference to be used
Throws:
TextException - if the text table cell references can not be extended

extendColumnReferences

public void extendColumnReferences(int columnIndex,
                                   int columnCount,
                                   int[] exceptRows)
                            throws TextException
Extends column references which have a reference to the submitted column index of a text table cell except references with the given row indices.

Specified by:
extendColumnReferences in interface ITextTableCellReferencesService
Parameters:
columnIndex - column index of a text table cell
columnCount - column index difference to be used
exceptRows - references to rows that are ignored
Throws:
TextException - if the text table cell references can not be extended

extendRowReferences

public void extendRowReferences(java.lang.String cellName,
                                int rowCount)
                         throws TextException
Extends row references which have a reference to the row index of the submitted name of a text table cell.

Specified by:
extendRowReferences in interface ITextTableCellReferencesService
Parameters:
cellName - name of a text table cell
rowCount - row index difference to be used
Throws:
TextException - if the text table cell references can not be extended

extendRowReferences

public void extendRowReferences(int rowIndex,
                                int rowCount)
                         throws TextException
Extends row references which have a reference to the submitted row index of a text table cell.

Specified by:
extendRowReferences in interface ITextTableCellReferencesService
Parameters:
rowIndex - row index of a text table cell
rowCount - row index difference to be used
Throws:
TextException - if the text table cell references can not be extended

extendRowReferences

public void extendRowReferences(int rowIndex,
                                int rowCount,
                                int[] exceptCols)
                         throws TextException
Extends row references which have a reference to the submitted row index of a text table cell except references with the given column indices.

Specified by:
extendRowReferences in interface ITextTableCellReferencesService
Parameters:
rowIndex - row index of a text table cell
rowCount - row index difference to be used
exceptCols - references to columns that are ignored
Throws:
TextException - if the text table cell references can not be extended

extendRowReferencesTo

public void extendRowReferencesTo(int rowIndex,
                                  int rowIndexTo)
                           throws TextException
Extends row references which have a reference to the submitted row index of a text table cell.

Specified by:
extendRowReferencesTo in interface ITextTableCellReferencesService
Parameters:
rowIndex - row index of a text table cell
rowIndexTo - the index of the row where the extension has to end
Throws:
TextException - if the text table cell references can not be extended

extendRowReferences

public void extendRowReferences(int rowIndex,
                                int[] rowIndicesTo)
                         throws TextException
Extends row references which have a reference to the submitted row index of a text table cell.

Specified by:
extendRowReferences in interface ITextTableCellReferencesService
Parameters:
rowIndex - row index of a text table cell
rowIndicesTo - the indices of the rows that the extension has to contain
Throws:
TextException - if the text table cell references can not be extended

revertModelToOriginal

public void revertModelToOriginal()
Reverts the model to the state before replacing cell references with method extendRowReferences().

Specified by:
revertModelToOriginal in interface ITextTableCellReferencesService

extendColumnAndRowReferences

public void extendColumnAndRowReferences(java.lang.String cellName,
                                         int columnCount,
                                         int rowCount)
                                  throws TextException
Extends column and row references which have a reference to the submitted name of a text table cell.

Specified by:
extendColumnAndRowReferences in interface ITextTableCellReferencesService
Parameters:
cellName - name of a text table cell
columnCount - column index difference to be used
rowCount - row index difference to be used
Throws:
TextException - if the text table cell references can not be extended

modifyCellReferences

public void modifyCellReferences(int newColumnsStartIndex,
                                 int newColumnsCount,
                                 int newRowsStartIndex,
                                 int newRowsCount)
                          throws TextException
Modifies all cell references on the basis of the submitted table expansion informations.

Specified by:
modifyCellReferences in interface ITextTableCellReferencesService
Parameters:
newColumnsStartIndex - start index of the new columns
newColumnsCount - number of new columns
newRowsStartIndex - start index of the new rows
newRowsCount - number of new rows
Throws:
TextException - if the text table cell references can not be modified

applyModifications

public void applyModifications()
                        throws TextException
Applies cell reference modifications to the text table cell formula.

Specified by:
applyModifications in interface ITextTableCellReferencesService
Throws:
TextException - if any error occurs.

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