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.clone
Class AbstractCloneService

java.lang.Object
  extended by ag.ion.bion.officelayer.internal.clone.AbstractCloneService
All Implemented Interfaces:
ICloneService
Direct Known Subclasses:
ETextTableCellRangeCloneService, ETextTableCloneService, ParagraphCloneService, TextTableCellCloneService, TextTableCellRangeCloneService, TextTableCloneService, TextTableColumnCloneService, TextTableRowCloneService

public abstract class AbstractCloneService
extends java.lang.Object
implements ICloneService

Abstract clone service.


Constructor Summary
AbstractCloneService()
           
 
Method Summary
 void cloneAfterThisPositions(IDestinationPosition[] positions, boolean adoptContent, PropertyKeysContainer propertyKeysContainer)
          Clones the chosen object after the given positions.
 void cloneAfterThisPositions(IDestinationPosition[] positions, PropertyKeysContainer propertyKeysContainer)
          Clones the chosen object to the given positions.
 void cloneToPositions(IDestinationPosition[] positions, boolean adoptContent, PropertyKeysContainer propertyKeysContainer)
          Clones the chosen object to the given positions.
 void cloneToPositions(IDestinationPosition[] positions, PropertyKeysContainer propertyKeysContainer)
          Clones the chosen object to the given positions.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface ag.ion.bion.officelayer.clone.ICloneService
cloneAfterThisPosition, cloneAfterThisPosition, cloneAfterThisPositionNoReturn, cloneAfterThisPositionNoReturn, cloneToPosition, cloneToPosition, cloneToPositionNoReturn, cloneToPositionNoReturn
 

Constructor Detail

AbstractCloneService

public AbstractCloneService()
Method Detail

cloneToPositions

public void cloneToPositions(IDestinationPosition[] positions,
                             PropertyKeysContainer propertyKeysContainer)
                      throws CloneException
Clones the chosen object to the given positions. Does not return a reference.

Specified by:
cloneToPositions in interface ICloneService
Parameters:
positions - 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.

cloneToPositions

public void cloneToPositions(IDestinationPosition[] positions,
                             boolean adoptContent,
                             PropertyKeysContainer propertyKeysContainer)
                      throws CloneException
Clones the chosen object to the given positions. Does not return a reference. 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) .

Specified by:
cloneToPositions in interface ICloneService
Parameters:
positions - 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.

cloneAfterThisPositions

public void cloneAfterThisPositions(IDestinationPosition[] positions,
                                    PropertyKeysContainer propertyKeysContainer)
                             throws CloneException
Clones the chosen object to the given positions. Does not return a reference. Between the given positions 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

Specified by:
cloneAfterThisPositions in interface ICloneService
Parameters:
positions - the positions 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.

cloneAfterThisPositions

public void cloneAfterThisPositions(IDestinationPosition[] positions,
                                    boolean adoptContent,
                                    PropertyKeysContainer propertyKeysContainer)
                             throws CloneException
Clones the chosen object after the given positions. Does not return 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)

Specified by:
cloneAfterThisPositions in interface ICloneService
Parameters:
positions - the positions 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