What I have done is to implement a deep copy via serialisation. To do this however I have had to alter the HSSFCellStyle and ExtendedFormatRecord classes to implement java.io.Serializable.
I'm prepared to submit my changes to the project but I have to confess I've never done anything like this before so could a kind soul point me in the right direction.
Many thanks,
Tim
Tim Wilkins wrote:
Hi there,
Is there a reason why the class HSSFCellStyle is not cloneable? I really need this object to be clonable as I'm attempting to create my own merge from an existing HSSFCell object and want to create copies of its existing HSSFCellStyle so I can modify the copies and apply them to the new sibling cells that will make up the merge.
In the mean time I'll submit a bug report and modify the source code so I can clone HSSFCellStyle but I want to check that this is an oversight and not a reasoned decision to omit the clone() method.
Those in the know can you let me know, cheers :)
Tim
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
