public class CableSaver extends DataSaverExcelStream<Cable>
Cable instances to Excel spreadsheet.anchor, creationHelper, drawing, header, sheet| Constructor and Description |
|---|
CableSaver(Iterable<Cable> objects)
Constructs an instance to save the given
Cable objects. |
CableSaver(Iterable<Cable> objects,
List<NotificationDTO> notificationDTOs)
Constructs an instance to save the given
Cable objects
and highlight information according to given list of NotificationDTO. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addCustomValidationModification(org.apache.poi.ss.usermodel.DataValidation dataValidation) |
protected InputStream |
getTemplate()
Returns the template excel file to be used to save data to.
|
protected void |
save(Cable cable)
Saves the object by calling setValue(...) and setCommand(...) methods.
|
saveAndValidatesave, setCommand, setCommand, setValuepublic CableSaver(Iterable<Cable> objects)
Cable objects.objects - the objects to savepublic CableSaver(Iterable<Cable> objects, List<NotificationDTO> notificationDTOs)
Cable objects
and highlight information according to given list of NotificationDTO.objects - the objects to savenotificationDTOs - list of changes to highlightprotected void save(Cable cable)
DataSaverExcelBasesave in class DataSaverExcelBase<Cable>cable - the object to be savedprotected InputStream getTemplate()
DataSaverExcelStreamgetTemplate in class DataSaverExcelStream<Cable>protected void addCustomValidationModification(org.apache.poi.ss.usermodel.DataValidation dataValidation)
addCustomValidationModification in class DataSaverExcelStream<Cable>Copyright © 2025 European Spallation Source. All rights reserved.