|
|
|
@ -194,8 +194,12 @@ public class IntelliElements {
|
|
|
|
|
TemplateCellElement newCellElement = new DefaultTemplateCellElement(colIndex, rowIndex); |
|
|
|
|
applyStyle(newCellElement, sourceCellElement);//style
|
|
|
|
|
if (sourceCellElement.getValue() instanceof DSColumn) { |
|
|
|
|
DSColumn dsColumn = (DSColumn) sourceCellElement.getValue(); |
|
|
|
|
newCellElement.setValue(dsColumn); |
|
|
|
|
try{ |
|
|
|
|
DSColumn dsColumn = (DSColumn)((DSColumn) sourceCellElement.getValue()).clone(); |
|
|
|
|
newCellElement.setValue(dsColumn); |
|
|
|
|
}catch (CloneNotSupportedException e){ |
|
|
|
|
FineLoggerFactory.getLogger().error(e.getMessage(), e); |
|
|
|
|
} |
|
|
|
|
newCellElement.setCellExpandAttr(sourceCellElement.getCellExpandAttr()); |
|
|
|
|
} else if (sourceCellElement.getValue() instanceof Number) { |
|
|
|
|
newCellElement.setValue(processNumber((Number) sourceCellElement.getValue())); |
|
|
|
|