Package org.xhtmlrenderer.context
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 String
calculate
(LayoutContext c, FSFunction function) If a function value can change at render time (i.e.protected IdentValue
getListStyleType
(FSFunction function) protected boolean
isCounter
(FSFunction function, String counterName) boolean
isStatic()
Whether the function value can change at render time.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.xhtmlrenderer.css.extend.ContentFunction
calculate, canHandle
-
Constructor Details
-
PageNumberFunction
private PageNumberFunction()
-
-
Method Details
-
isStatic
public boolean isStatic()Description copied from interface:ContentFunction
Whether 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:
isStatic
in interfaceContentFunction
-
calculate
- Specified by:
calculate
in interfaceContentFunction
-
getLayoutReplacementText
Description copied from interface:ContentFunction
If a function value can change at render time (i.e.ContentFunction.isStatic()
returns false) use this text as an approximation at layout.- Specified by:
getLayoutReplacementText
in interfaceContentFunction
-
getListStyleType
-
isCounter
-