Class ContentFunctionFactory.PageNumberFunction
java.lang.Object
org.xhtmlrenderer.context.ContentFunctionFactory.PageNumberFunction
- All Implemented Interfaces:
ContentFunction
- Direct Known Subclasses:
ContentFunctionFactory.PageCounterFunction, ContentFunctionFactory.PagesCounterFunction
- Enclosing class:
ContentFunctionFactory
private abstract static class ContentFunctionFactory.PageNumberFunction
extends Object
implements ContentFunction
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable Stringcalculate(LayoutContext c, FSFunction function) If a function value can change at render time (i.e.protected IdentValuegetListStyleType(FSFunction function) protected booleanisCounter(FSFunction function, String counterName) booleanisStatic()Whether the function value can change at render time.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ContentFunction
calculate, canHandle
-
Constructor Details
-
PageNumberFunction
private PageNumberFunction()
-
-
Method Details
-
isStatic
public boolean isStatic()Description copied from interface:ContentFunctionWhether the function value can change at render time. If true,ContentFunction.calculate(LayoutContext, FSFunction)will be called. If false,ContentFunction.calculate(RenderingContext, FSFunction, InlineText)will be called.- Specified by:
isStaticin interfaceContentFunction
-
calculate
- Specified by:
calculatein interfaceContentFunction
-
getLayoutReplacementText
Description copied from interface:ContentFunctionIf a function value can change at render time (i.e.ContentFunction.isStatic()returns false) use this text as an approximation at layout.- Specified by:
getLayoutReplacementTextin interfaceContentFunction
-
getListStyleType
-
isCounter
-