org.xhtmlrenderer.css.extend
Interface ContentFunction


public interface ContentFunction

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


Method Summary
 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.
 boolean isStatic()
          Whether or not the function value can change at render time.
 

Method Detail

isStatic

boolean isStatic()
Whether or not the function value can change at render time. If true, #calculate(LayoutContext, String, TextContent) will be called. If false, #calculate(RenderingContext, String, TextContent) will be called.


calculate

String calculate(LayoutContext c,
                 FSFunction function)

calculate

String calculate(RenderingContext c,
                 FSFunction function,
                 InlineText text)

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

boolean canHandle(LayoutContext c,
                  FSFunction function)


Copyright © 2013. All Rights Reserved.