protected void copyTo(CFHeaderBase result) { result.field_1_numcf = field_1_numcf; result.field_2_need_recalculation_and_id = field_2_need_recalculation_and_id; result.field_3_enclosing_cell_range = field_3_enclosing_cell_range.copy(); result.field_4_cell_ranges = field_4_cell_ranges.copy(); }
@Override public void visitRecord(Record r) { if (!(r instanceof DVRecord)) { return; } DVRecord dvRecord = (DVRecord) r; CellRangeAddressList regions = dvRecord.getCellRangeAddress().copy(); DVConstraint constraint = DVConstraint.createDVConstraint(dvRecord, book); HSSFDataValidation hssfDataValidation = new HSSFDataValidation(regions, constraint); hssfDataValidation.setErrorStyle(dvRecord.getErrorStyle()); hssfDataValidation.setEmptyCellAllowed(dvRecord.getEmptyCellAllowed()); hssfDataValidation.setSuppressDropDownArrow(dvRecord.getSuppressDropdownArrow()); hssfDataValidation.createPromptBox(dvRecord.getPromptTitle(), dvRecord.getPromptText()); hssfDataValidation.setShowPromptBox(dvRecord.getShowPromptOnCellSelected()); hssfDataValidation.createErrorBox(dvRecord.getErrorTitle(), dvRecord.getErrorText()); hssfDataValidation.setShowErrorBox(dvRecord.getShowErrorOnInvalidValue()); hssfValidations.add(hssfDataValidation); } };
public Object clone() { CFHeaderRecord result = new CFHeaderRecord(); result.field_1_numcf = field_1_numcf; result.field_2_need_recalculation = field_2_need_recalculation; result.field_3_enclosing_cell_range = field_3_enclosing_cell_range; result.field_4_cell_ranges = field_4_cell_ranges.copy(); return result; } }
protected void copyTo(CFHeaderBase result) { result.field_1_numcf = field_1_numcf; result.field_2_need_recalculation_and_id = field_2_need_recalculation_and_id; result.field_3_enclosing_cell_range = field_3_enclosing_cell_range.copy(); result.field_4_cell_ranges = field_4_cell_ranges.copy(); }
public Object clone() { CFHeaderRecord result = new CFHeaderRecord(); result.field_1_numcf = field_1_numcf; result.field_2_need_recalculation = field_2_need_recalculation; result.field_3_enclosing_cell_range = field_3_enclosing_cell_range; result.field_4_cell_ranges = field_4_cell_ranges.copy(); return result; } }
@Override public void visitRecord(Record r) { if (!(r instanceof DVRecord)) { return; } DVRecord dvRecord = (DVRecord) r; CellRangeAddressList regions = dvRecord.getCellRangeAddress().copy(); DVConstraint constraint = DVConstraint.createDVConstraint(dvRecord, book); HSSFDataValidation hssfDataValidation = new HSSFDataValidation(regions, constraint); hssfDataValidation.setErrorStyle(dvRecord.getErrorStyle()); hssfDataValidation.setEmptyCellAllowed(dvRecord.getEmptyCellAllowed()); hssfDataValidation.setSuppressDropDownArrow(dvRecord.getSuppressDropdownArrow()); hssfDataValidation.createPromptBox(dvRecord.getPromptTitle(), dvRecord.getPromptText()); hssfDataValidation.setShowPromptBox(dvRecord.getShowPromptOnCellSelected()); hssfDataValidation.createErrorBox(dvRecord.getErrorTitle(), dvRecord.getErrorText()); hssfDataValidation.setShowErrorBox(dvRecord.getShowErrorOnInvalidValue()); hssfValidations.add(hssfDataValidation); } };