public class SmileysNoteRenderingPreProcessor extends Object implements NoteContentRenderingPreProcessor
DEFAULT_ORDER| Constructor and Description |
|---|
SmileysNoteRenderingPreProcessor() |
| Modifier and Type | Method and Description |
|---|---|
int |
getOrder() |
boolean |
isCachable() |
boolean |
processNoteContent(NoteRenderContext context,
NoteData item)
Processes a note for a specific render context.
|
boolean |
replacesContent()
Denotes whether the pre-processor replaces the note content completely.
|
boolean |
supports(NoteRenderMode mode,
NoteData item)
Whether the processor supports a specific render mode.
|
public int getOrder()
getOrder in interface OrderablegetOrder in interface NoteContentRenderingPreProcessorpublic boolean isCachable()
isCachable in interface NoteContentRenderingPreProcessorpublic boolean processNoteContent(NoteRenderContext context, NoteData item) throws NoteRenderingPreProcessorException
processNoteContent in interface NoteContentRenderingPreProcessorcontext - holds details about the render context to allow specific processing in different
situationsitem - the item to be processedNoteRenderingPreProcessorException - in case something unexpected lead to the failure of the processorpublic boolean replacesContent()
NoteContentRenderingPreProcessorreplacesContent in interface NoteContentRenderingPreProcessorpublic boolean supports(NoteRenderMode mode, NoteData item)
NoteContentRenderingPreProcessorsupports in interface NoteContentRenderingPreProcessormode - the note render mode, never nullitem - the note to render. A pre-processor can use this parameter to decide based on note
attributes whether the note content should be processedCopyright © 2019 Communote team. All rights reserved.