Package bld.generator.report.excel
Class ExcelAttachment<T>
java.lang.Object
bld.generator.report.excel.ExcelAttachment<T>
- Type Parameters:
T- the generic type
The Class ExcelAttachment.
ExcelAttachment is used to attachment files within file excel.
It is composed by:
It is used by
ExcelAttachment is used to attachment files within file excel.
It is composed by:
- Attachment - to define the file
- AttachmentType - to set type file
- FileName - to define file name
It is used by
RowSheet classes.-
Method Summary
Modifier and TypeMethodDescriptionGets the attachment.Gets the attachment type.Gets the file name.static ExcelAttachment<byte[]> newInstance(byte[] attachment) New instance.static ExcelAttachment<String> newInstance(String attachment) New instance.voidsetAttachment(T attachment) Sets the attachment.voidsetAttachmentType(AttachmentType attachmentType) Sets the attachment type.voidsetFileName(String nomeFile) Sets the file name.
-
Method Details
-
newInstance
New instance.- Parameters:
attachment- the attachment- Returns:
- the excel attachment
-
newInstance
New instance.- Parameters:
attachment- the attachment- Returns:
- the excel attachment
-
getAttachment
Gets the attachment.- Returns:
- the attachment
-
setAttachment
Sets the attachment.- Parameters:
attachment- the new attachment
-
getAttachmentType
Gets the attachment type.- Returns:
- the attachment type
-
getFileName
Gets the file name.- Returns:
- the file name
-
setAttachmentType
Sets the attachment type.- Parameters:
attachmentType- the new attachment type
-
setFileName
Sets the file name.- Parameters:
nomeFile- the new file name
-