public interface EnumeratedOrdinalRenderer
| Modifier and Type | Method and Description |
|---|---|
void |
endRendering()
After Rendering is complete
|
Runnable |
getEnumOrdinalRunnable()
Return current enum ordinal runnable, used to save previous state
|
void |
render(int referenceOrdinal,
EnumeratedReferenceBlock referenceFormat,
String defaultText,
boolean needSeparator)
Render individual reference format
|
void |
setEnumOrdinalRunnable(Runnable runnable)
Execute this runnable when empty enum text or link is encountered
|
void |
startRendering(EnumeratedReferenceRendering[] renderings)
Start of rendering for all renderings
|
void startRendering(EnumeratedReferenceRendering[] renderings)
renderings - renderings which will be renderedvoid setEnumOrdinalRunnable(Runnable runnable)
runnable - runnableRunnable getEnumOrdinalRunnable()
void render(int referenceOrdinal,
EnumeratedReferenceBlock referenceFormat,
String defaultText,
boolean needSeparator)
referenceOrdinal - ordinal for the referencereferenceFormat - reference format or nulldefaultText - default text to use if referenceFormat is null or not being usedneedSeparator - true if need to add separator character after output of referenceOrdinal
Should set current enum ordinal runnable to output the given referenceOrdinal if referenceFormat is not null the runnable is saved before this call and restored after so there is no need to save its value.
NOTE: if referenceFormat is null and the current runnable is not null then it should be run after output of default text and before output of referenceOrdinal, to make sure that parent compound ordinal formats are output.
void endRendering()
Copyright © 2020. All rights reserved.