Top Description Methods
com.openhtmltopdf.css.extend

public Interface ContentFunction

Known Direct Implementers
com.openhtmltopdf.context.ContentFunctionFactory.FsIfCutOffFunction, com.openhtmltopdf.context.ContentFunctionFactory.PageNumberFunction, com.openhtmltopdf.context.ContentFunctionFactory.PageCounterFunction, com.openhtmltopdf.context.ContentFunctionFactory.PagesCounterFunction, com.openhtmltopdf.context.ContentFunctionFactory.TargetCounterFunction, com.openhtmltopdf.context.ContentFunctionFactory.TargetTextFunction, com.openhtmltopdf.context.ContentFunctionFactory.LeaderFunction
Imports
com.openhtmltopdf.css.parser.FSFunction, com.openhtmltopdf.layout.LayoutContext, com.openhtmltopdf.render.InlineText, .RenderingContext

Interface for objects which implement a function which creates content (e.g. counter(pages))

Method Summary

Modifier and TypeMethod and Description
public String
public String
public boolean
public String
getLayoutReplacementText()

If a function value can change at render time (i.e. isStatic() returns false) use this text as an approximation at layout.

public boolean
isStatic()

Whether or not the function value can change at render time.

Method Detail

calculateback to summary
public String calculate(LayoutContext c, FSFunction function)
calculateback to summary
public String calculate(RenderingContext c, FSFunction function, InlineText text)
canHandleback to summary
public boolean canHandle(LayoutContext c, FSFunction function)
getLayoutReplacementTextback to summary
public String getLayoutReplacementText()

If a function value can change at render time (i.e. isStatic() returns false) use this text as an approximation at layout.

isStaticback to summary
public boolean isStatic()

Whether or not 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.