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