Class AbstractHtmlPrinter
- java.lang.Object
-
- org.pentaho.reporting.engine.classic.core.modules.output.table.html.helper.AbstractHtmlPrinter
-
- Direct Known Subclasses:
FastHtmlPrinter
,HtmlPrinter
public abstract class AbstractHtmlPrinter extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected static StyleBuilder.CSSKeys[]
EMPTY_CELL_ATTRNAMES
protected static String[]
EMPTY_CELL_ATTRVALS
protected static String[]
XHTML_HEADER
static String
XHTML_NAMESPACE
-
Constructor Summary
Constructors Constructor Description AbstractHtmlPrinter(org.pentaho.reporting.libraries.resourceloader.ResourceManager resourceManager)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected StyleManager
createStyleManager()
protected WriterService
createWriterService(OutputStream out)
protected void
generateExternalStylePlaceHolder()
protected void
generateHeaderOnOpen(ReportAttributeMap attributeMap, String sheetName, org.pentaho.reporting.libraries.xmlns.writer.XmlWriter xmlWriter)
org.pentaho.reporting.libraries.base.config.Configuration
getConfiguration()
DefaultHtmlContentGenerator
getContentGenerator()
protected abstract ContentUrlReWriteService
getContentReWriteService()
protected org.pentaho.reporting.libraries.resourceloader.ResourceManager
getResourceManager()
StyleBuilder
getStyleBuilder()
DefaultStyleBuilderFactory
getStyleBuilderFactory()
org.pentaho.reporting.libraries.repository.ContentItem
getStyleFile()
String
getStyleFileUrl()
StyleManager
getStyleManager()
HtmlTagHelper
getTagHelper()
protected void
initialize(org.pentaho.reporting.libraries.base.config.Configuration configuration)
boolean
isAllowRawLinkTargets()
protected boolean
isCreateBodyFragment()
protected boolean
isExternalStyleSheetRequested()
protected boolean
isForceBufferedWriting()
protected boolean
isInlineStylesRequested()
protected boolean
isProportionalColumnWidths()
protected void
openSheet(ReportAttributeMap logicalPage, String sheetName, OutputProcessorMetaData metaData, SlimSheetLayout sheetLayout, org.pentaho.reporting.libraries.xmlns.writer.XmlWriter xmlWriter)
protected void
performCloseFile(String sheetName, ReportAttributeMap logicalPageBox, WriterService writer)
void
setDataWriter(org.pentaho.reporting.libraries.repository.ContentLocation dataLocation, org.pentaho.reporting.libraries.repository.NameGenerator dataNameGenerator)
void
setStyleManager(StyleManager styleManager)
protected void
writeBackgroundCell(CellBackground background, org.pentaho.reporting.libraries.xmlns.writer.XmlWriter xmlWriter)
protected void
writeColumnDeclaration(SlimSheetLayout sheetLayout, org.pentaho.reporting.libraries.xmlns.writer.XmlWriter xmlWriter)
protected void
writeCompleteHeader(org.pentaho.reporting.libraries.xmlns.writer.XmlWriter docWriter, String sheetName, ReportAttributeMap attributes, String styleSheetUrl, StyleManager inlineStyleSheet)
-
-
-
Field Detail
-
XHTML_NAMESPACE
public static final String XHTML_NAMESPACE
- See Also:
- Constant Field Values
-
XHTML_HEADER
protected static final String[] XHTML_HEADER
-
EMPTY_CELL_ATTRNAMES
protected static final StyleBuilder.CSSKeys[] EMPTY_CELL_ATTRNAMES
-
EMPTY_CELL_ATTRVALS
protected static final String[] EMPTY_CELL_ATTRVALS
-
-
Method Detail
-
initialize
protected void initialize(org.pentaho.reporting.libraries.base.config.Configuration configuration)
-
isAllowRawLinkTargets
public boolean isAllowRawLinkTargets()
-
getStyleManager
public StyleManager getStyleManager()
-
setStyleManager
public void setStyleManager(StyleManager styleManager)
-
getTagHelper
public HtmlTagHelper getTagHelper()
-
getConfiguration
public org.pentaho.reporting.libraries.base.config.Configuration getConfiguration()
-
setDataWriter
public void setDataWriter(org.pentaho.reporting.libraries.repository.ContentLocation dataLocation, org.pentaho.reporting.libraries.repository.NameGenerator dataNameGenerator)
-
getContentReWriteService
protected abstract ContentUrlReWriteService getContentReWriteService()
-
getStyleBuilder
public StyleBuilder getStyleBuilder()
-
getStyleBuilderFactory
public DefaultStyleBuilderFactory getStyleBuilderFactory()
-
getContentGenerator
public DefaultHtmlContentGenerator getContentGenerator()
-
getResourceManager
protected org.pentaho.reporting.libraries.resourceloader.ResourceManager getResourceManager()
-
isProportionalColumnWidths
protected boolean isProportionalColumnWidths()
-
writeColumnDeclaration
protected void writeColumnDeclaration(SlimSheetLayout sheetLayout, org.pentaho.reporting.libraries.xmlns.writer.XmlWriter xmlWriter) throws IOException
- Throws:
IOException
-
writeCompleteHeader
protected void writeCompleteHeader(org.pentaho.reporting.libraries.xmlns.writer.XmlWriter docWriter, String sheetName, ReportAttributeMap attributes, String styleSheetUrl, StyleManager inlineStyleSheet) throws IOException
- Throws:
IOException
-
createStyleManager
protected StyleManager createStyleManager()
-
isCreateBodyFragment
protected boolean isCreateBodyFragment()
-
isInlineStylesRequested
protected boolean isInlineStylesRequested()
-
generateHeaderOnOpen
protected void generateHeaderOnOpen(ReportAttributeMap attributeMap, String sheetName, org.pentaho.reporting.libraries.xmlns.writer.XmlWriter xmlWriter) throws IOException
- Throws:
IOException
-
generateExternalStylePlaceHolder
protected void generateExternalStylePlaceHolder() throws org.pentaho.reporting.libraries.repository.ContentIOException, URLRewriteException
- Throws:
org.pentaho.reporting.libraries.repository.ContentIOException
URLRewriteException
-
getStyleFile
public org.pentaho.reporting.libraries.repository.ContentItem getStyleFile()
-
getStyleFileUrl
public String getStyleFileUrl()
-
createWriterService
protected WriterService createWriterService(OutputStream out) throws UnsupportedEncodingException
- Throws:
UnsupportedEncodingException
-
isForceBufferedWriting
protected boolean isForceBufferedWriting()
-
isExternalStyleSheetRequested
protected boolean isExternalStyleSheetRequested()
-
performCloseFile
protected void performCloseFile(String sheetName, ReportAttributeMap logicalPageBox, WriterService writer) throws IOException, org.pentaho.reporting.libraries.repository.ContentIOException
- Throws:
IOException
org.pentaho.reporting.libraries.repository.ContentIOException
-
openSheet
protected void openSheet(ReportAttributeMap logicalPage, String sheetName, OutputProcessorMetaData metaData, SlimSheetLayout sheetLayout, org.pentaho.reporting.libraries.xmlns.writer.XmlWriter xmlWriter) throws org.pentaho.reporting.libraries.repository.ContentIOException, URLRewriteException, IOException
- Throws:
org.pentaho.reporting.libraries.repository.ContentIOException
URLRewriteException
IOException
-
writeBackgroundCell
protected void writeBackgroundCell(CellBackground background, org.pentaho.reporting.libraries.xmlns.writer.XmlWriter xmlWriter) throws IOException
- Throws:
IOException
-
-