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 TextTableFormulaModel

java.lang.Object
  extended by ag.ion.bion.officelayer.internal.text.table.TextTableFormulaModel

public class TextTableFormulaModel
extends java.lang.Object

A (really) simple model of a formula which was placed into a text table.


Constructor Summary
TextTableFormulaModel(TextTableFormulaExpression textTableFormulaExpression)
          Constructs new TextTableFormulaModel.
 
Method Summary
 TextTableCellReference[] getCellReferences()
          Returns text table cell references.
 java.lang.String getExpression()
          Returns formula expression.
 void replaceCellReference(TextTableCellReference textTableCellReference, TextTableCellReference[] textTableCellReferences)
          Replaces a cell reference.
 void revertToOriginal()
          Reverts the model to the state before replacing cell references.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextTableFormulaModel

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

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

getCellReferences

public TextTableCellReference[] getCellReferences()
Returns text table cell references.

Returns:
text table cell references

getExpression

public java.lang.String getExpression()
Returns formula expression. All modifications will be applied with this method call.

Returns:
formula expression

replaceCellReference

public void replaceCellReference(TextTableCellReference textTableCellReference,
                                 TextTableCellReference[] textTableCellReferences)
Replaces a cell reference.

Parameters:
textTableCellReference - the old cell refernce
textTableCellReferences - the new cell references

revertToOriginal

public void revertToOriginal()
Reverts the model to the state before replacing cell references.


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