public class AppendFileHotspotConversion extends Object implements IRichTextConversion
Constructor and Description |
---|
AppendFileHotspotConversion(Attachment att,
String fileNameToDisplay)
Creates a new instance
|
AppendFileHotspotConversion(String attachmentProgrammaticName,
String fileNameToDisplay)
Creates a new instance
|
Modifier and Type | Method and Description |
---|---|
void |
convert(List<RichTextRecord<?>> source,
RichTextWriter target)
Method to do the actual conversion, e.g.
|
boolean |
isMatch(List<RichTextRecord<?>> nav)
Method to check whether the rich text item actually requires a conversion
|
void |
richTextNavigationEnd()
Method is called when the rich text navigation is done
|
void |
richTextNavigationStart()
Method is called before starting the CD record traversal.
|
public AppendFileHotspotConversion(String attachmentProgrammaticName, String fileNameToDisplay)
attachmentProgrammaticName
- name returned by Attachment.getFileName()
fileNameToDisplay
- filename to display below the file icon, not necessarily the same as Attachment.getFileName()
public AppendFileHotspotConversion(Attachment att, String fileNameToDisplay)
att
- attachment to add an icon forfileNameToDisplay
- filename to display below the file icon, not necessarily the same as Attachment.getFileName()
public void richTextNavigationStart()
IRichTextConversion
richTextNavigationStart
in interface IRichTextConversion
public void richTextNavigationEnd()
IRichTextConversion
richTextNavigationEnd
in interface IRichTextConversion
public boolean isMatch(List<RichTextRecord<?>> nav)
IRichTextConversion
isMatch
in interface IRichTextConversion
nav
- rich text navigatorpublic void convert(List<RichTextRecord<?>> source, RichTextWriter target)
IRichTextConversion
RichTextRecord
list and writing the resulting output to the target
.convert
in interface IRichTextConversion
source
- source rich text navigatortarget
- target to write conversion resultCopyright © 2019–2021 HCL. All rights reserved.