public interface ContentFunction
Interface for objects which implement a function which creates content
(e.g.
counter(pages))-
Method Summary
Modifier and TypeMethodDescriptioncalculate(LayoutContext c, FSFunction function) calculate(RenderingContext c, FSFunction function, InlineText text) booleancanHandle(LayoutContext c, FSFunction function) If a function value can change at render time (i.e.booleanisStatic()Whether the function value can change at render time.
-
Method Details
-
isStatic
boolean isStatic()Whether the function value can change at render time. If true,calculate(LayoutContext, FSFunction)will be called. If false,calculate(RenderingContext, FSFunction, InlineText)will be called. -
calculate
-
calculate
-
getLayoutReplacementText
String getLayoutReplacementText()If a function value can change at render time (i.e.isStatic()returns false) use this text as an approximation at layout. -
canHandle
-