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 TextTableCellCloneService

java.lang.Object
  extended by ag.ion.bion.officelayer.internal.clone.AbstractCloneService
      extended by ag.ion.bion.officelayer.internal.text.table.TextTableCellCloneService
All Implemented Interfaces:
ICloneService

public class TextTableCellCloneService
extends AbstractCloneService

Clone service for table cells.


Constructor Summary
TextTableCellCloneService(ITextTableCell cell)
          Constructor of the TextTableCellCloneService this does nothing mmore tha
 
Method Summary
 IClonedObject cloneAfterThisPosition(IDestinationPosition position, boolean adoptContent, PropertyKeysContainer propertyKeysContainer)
          Clones the chosen object after the given position and then returns a reference.
 IClonedObject cloneAfterThisPosition(IDestinationPosition position, PropertyKeysContainer propertyKeysContainer)
          Clones the chosen object to the given position and then returns a reference Between the given position and the newly created object there will be a paragraph to add some space betwwen them.
 void cloneAfterThisPositionNoReturn(IDestinationPosition position, boolean adoptContent, PropertyKeysContainer propertyKeysContainer)
          Clones the chosen object after the given position.
 void cloneAfterThisPositionNoReturn(IDestinationPosition position, PropertyKeysContainer propertyKeysContainer)
          Clones the chosen object to the given position.
 IClonedObject cloneToPosition(IDestinationPosition position, boolean adoptContent, PropertyKeysContainer propertyKeysContainer)
          Clones the chosen cell to the given position and then returns a reference This method also enables to adopts the content of the cell (the default is to adopt, otherwise the paramter has to be set to false)
 IClonedObject cloneToPosition(IDestinationPosition position, PropertyKeysContainer propertyKeysContainer)
          Clones the cell to the specified position, the boolean value indicates if the value is set to true, the cell is appended to the specified position otherwise it is set before the position.
 void cloneToPositionNoReturn(IDestinationPosition position, boolean adoptContent, PropertyKeysContainer propertyKeysContainer)
          Clones the chosen object to the given position.
 void cloneToPositionNoReturn(IDestinationPosition position, PropertyKeysContainer propertyKeysContainer)
          Clones the chosen object to the given position.
 java.lang.String getCellFormula()
          Returns the formula placed in the store of this cell (if there is actually any).
 java.lang.String getCellValue()
          Returns the stored value of the cell.
 void setCellFormula(java.lang.String cellFormula)
          Sets a new formula for this cell in the store.
 void setCellValue(java.lang.String cellValue)
          Sets a new value for the cell in the store.
 
Methods inherited from class ag.ion.bion.officelayer.internal.clone.AbstractCloneService
cloneAfterThisPositions, cloneAfterThisPositions, cloneToPositions, cloneToPositions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextTableCellCloneService

public TextTableCellCloneService(ITextTableCell cell)
                          throws CloneException
Constructor of the TextTableCellCloneService this does nothing mmore tha

Parameters:
cell - the cell from which to build a clone service
Throws:
CloneException - if anything fails
Method Detail

cloneToPosition

public IClonedObject cloneToPosition(IDestinationPosition position,
                                     PropertyKeysContainer propertyKeysContainer)
                              throws CloneException
Clones the cell to the specified position, the boolean value indicates if the value is set to true, the cell is appended to the specified position otherwise it is set before the position.

Parameters:
propertyKeysContainer - container for property keys used for cloning style, my be null
position - the positions the object is to be cloned to
Returns:
a reference to the newly cloned element
Throws:
CloneException - if the object could not be cloned.

cloneToPositionNoReturn

public void cloneToPositionNoReturn(IDestinationPosition position,
                                    PropertyKeysContainer propertyKeysContainer)
                             throws CloneException
Clones the chosen object to the given position.

Parameters:
position - the positions the object is to be cloned to
propertyKeysContainer - container for property keys used for cloning style, my be null
Throws:
CloneException - if the object could not be cloned.

cloneToPosition

public IClonedObject cloneToPosition(IDestinationPosition position,
                                     boolean adoptContent,
                                     PropertyKeysContainer propertyKeysContainer)
                              throws CloneException
Clones the chosen cell to the given position and then returns a reference This method also enables to adopts the content of the cell (the default is to adopt, otherwise the paramter has to be set to false)

Parameters:
adoptContent - indicated if the content of the object should be adopted (this includes formulas)
propertyKeysContainer - container for property keys used for cloning style, my be null
position - the positions the object is to be cloned to
Returns:
a reference to the newly cloned element
Throws:
CloneException - if the object could not be cloned.

cloneToPositionNoReturn

public void cloneToPositionNoReturn(IDestinationPosition position,
                                    boolean adoptContent,
                                    PropertyKeysContainer propertyKeysContainer)
                             throws CloneException
Clones the chosen object to the given position. This method also enables to adopts the content of the object (the default is to adopt, otherwise the paramter has to be set to false)

Parameters:
position - the positions the object is to be cloned to
adoptContent - indicated if the content of the object should be adopted
propertyKeysContainer - container for property keys used for cloning style, my be null
Throws:
CloneException - if the object could not be cloned.

getCellValue

public java.lang.String getCellValue()
Returns the stored value of the cell. This is done in the form of a Double object cause thus we got to know if we actually had any kind of value in the array, and if we haven't we can return null instead of any value.

Returns:
the cell value, or null if there is none

setCellValue

public void setCellValue(java.lang.String cellValue)
Sets a new value for the cell in the store.

Parameters:
cellValue - the value to be set

getCellFormula

public java.lang.String getCellFormula()
Returns the formula placed in the store of this cell (if there is actually any).

Returns:
the cell's formula

setCellFormula

public void setCellFormula(java.lang.String cellFormula)
Sets a new formula for this cell in the store.

Parameters:
cellFormula - the new formula to be set.

cloneAfterThisPosition

public IClonedObject cloneAfterThisPosition(IDestinationPosition position,
                                            PropertyKeysContainer propertyKeysContainer)
                                     throws CloneException
Clones the chosen object to the given position and then returns a reference Between the given position and the newly created object there will be a paragraph to add some space betwwen them. So the object WILL NOT be merged together. This method is optional because it does not make sense to all possible implementors of the interface. So it can happen that this method does nothing more or less than the cloneToPosition method. This method always adopts the content

Parameters:
position - the destination position of the cloning
propertyKeysContainer - container for property keys used for cloning style, my be null
Returns:
a reference to the newly cloned element
Throws:
CloneException - if the object could not be cloned.

cloneAfterThisPositionNoReturn

public void cloneAfterThisPositionNoReturn(IDestinationPosition position,
                                           PropertyKeysContainer propertyKeysContainer)
                                    throws CloneException
Clones the chosen object to the given position. Between the given position and the newly created object there will be a paragraph to add some space betwwen them. So the object WILL NOT be merged together. This method is optional because it does not make sense to all possible implementors of the interface. So it can happen that this method does nothing more or less than the cloneToPosition method. This method always adopts the content

Parameters:
position - the position the object is to be cloned after
propertyKeysContainer - container for property keys used for cloning style, my be null
Throws:
CloneException - if the object could not be cloned.

cloneAfterThisPosition

public IClonedObject cloneAfterThisPosition(IDestinationPosition position,
                                            boolean adoptContent,
                                            PropertyKeysContainer propertyKeysContainer)
                                     throws CloneException
Clones the chosen object after the given position and then returns a reference. Between the given position and the newly created object there will be a paragraph to add some space betwwen them. So the object WILL NOT be merged together. This method is optional because it does not make sense to all possible implementors of the interface. So it can happen that this method does nothing more or less than the cloneToPosition method. This method also enables to adopts the content of the object (the default is to adopt, otherwise the paramter has to be set to false)

Parameters:
position - the destination position of the cloning
adoptContent - indicated if the content of the object should be adopted
propertyKeysContainer - container for property keys used for cloning style, my be null
Returns:
a reference to the newly cloned element
Throws:
CloneException - if the object could not be cloned.

cloneAfterThisPositionNoReturn

public void cloneAfterThisPositionNoReturn(IDestinationPosition position,
                                           boolean adoptContent,
                                           PropertyKeysContainer propertyKeysContainer)
                                    throws CloneException
Clones the chosen object after the given position. Between the given position and the newly created object there will be a paragraph to add some space betwwen them. So the object WILL NOT be merged together. This method is optional because it does not make sense to all possible implementors of the interface. So it can happen that this method does nothing more or less than the cloneToPosition method. This method also enables to adopts the content of the object (the default is to adopt, otherwise the paramter has to be set to false)

Parameters:
position - the position the object is to be cloned after
adoptContent - indicated if the content of the object should be adopted
propertyKeysContainer - container for property keys used for cloning style, my be null
Throws:
CloneException - if the object could not be cloned.

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