public interface CustomHeaderAndFooterCallback
 To register your implementation of this interface, you call the
 setCustomHeaderAndFooterCallback method of the view printer.
 To specify the headers and footers for which the callback provides content,
 you call the setHeadersAndFootersUsingCallback method of the
 view printer.
 
 If you want only to specify the content of the headers and footers, and
 you want the content to be the same on all physical pages, then you
 do not need to implement this interface.
 Instead, you get the appropriate HeaderAndFooterPainter from the
 view printer, and you set properties on the HeaderAndFooterPainter.
| Modifier and Type | Method and Description | 
|---|---|
java.lang.Object[] | 
getDynamicContent(int headerOrFooterID,
                 java.lang.Object[] currentContent,
                 int physPageNum,
                 int[] hPos)
Specifies the content for the header or footer. 
 | 
java.lang.Object[] getDynamicContent(int headerOrFooterID,
                                     java.lang.Object[] currentContent,
                                     int physPageNum,
                                     int[] hPos)
headerOrFooterID - A constant that identifies the header or
                            footer.physPageNum - The number of the physical page that is being
                            printed.hPos - The current logical page that is being printed.ViewPrinter.HEADER_LEFT, 
ViewPrinter.HEADER_CENTER, 
ViewPrinter.HEADER_RIGHT, 
ViewPrinter.FOOTER_LEFT, 
ViewPrinter.FOOTER_CENTER, 
ViewPrinter.FOOTER_RIGHT