public interface ContentFunction
counter(pages))| Modifier and Type | Method and Description |
|---|---|
String |
calculate(LayoutContext c,
FSFunction function) |
String |
calculate(RenderingContext c,
FSFunction function,
InlineText text) |
boolean |
canHandle(LayoutContext c,
FSFunction function) |
String |
getLayoutReplacementText()
If a function value can change at render time (i.e.
|
default String |
getPostBoxingLayoutReplacementText(LayoutContext c,
Element element,
FSFunction fsFunction)
Some content functions can provide a better replacement text after
boxing but before layout (ie.
|
default boolean |
isCalculableAtLayout()
Is the calculate method going to return valid results if called
before or during layout as opposed to at render time.
|
boolean |
isStatic()
Whether or not the function value can change at render time.
|
boolean isStatic()
calculate(LayoutContext, FSFunction) will be called. If false,
calculate(RenderingContext, FSFunction, InlineText) will be called.String calculate(LayoutContext c, FSFunction function)
String calculate(RenderingContext c, FSFunction function, InlineText text)
String getLayoutReplacementText()
isStatic() returns false)
use this text as an approximation at layout.default String getPostBoxingLayoutReplacementText(LayoutContext c, Element element, FSFunction fsFunction)
boolean canHandle(LayoutContext c, FSFunction function)
default boolean isCalculableAtLayout()
Copyright © 2004–2025. All rights reserved.