Class TableBuilder
- java.lang.Object
-
- net.sf.jasperreports.engine.export.oasis.TableBuilder
-
- Direct Known Subclasses:
JROdsExporter.OdsTableBuilder
public class TableBuilder extends Object
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
TableBuilder(DocumentBuilder documentBuilder, JasperPrint jasperPrint, int pageFormatIndex, int pageIndex, WriterHelper bodyWriter, WriterHelper styleWriter, StyleCache styleCache, Map<Integer,String> rowStyles, Map<Integer,String> columnStyles)
protected
TableBuilder(DocumentBuilder documentBuilder, JasperPrint jasperPrint, int pageFormatIndex, int pageIndex, WriterHelper bodyWriter, WriterHelper styleWriter, StyleCache styleCache, Map<Integer,String> rowStyles, Map<Integer,String> columnStyles, Color tabColor)
protected
TableBuilder(DocumentBuilder documentBuilder, JasperPrint jasperPrint, String name, WriterHelper bodyWriter, WriterHelper styleWriter, StyleCache styleCache, Map<Integer,String> rowStyles, Map<Integer,String> columnStyles)
protected
TableBuilder(DocumentBuilder documentBuilder, JasperPrint jasperPrint, String name, WriterHelper bodyWriter, WriterHelper styleWriter, StyleCache styleCache, Map<Integer,String> rowStyles, Map<Integer,String> columnStyles, Color tabColor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
buildCellFooter()
void
buildCellHeader(String cellStyleName, int colSpan, int rowSpan)
void
buildColumnFooter()
void
buildColumnHeader(int colWidth)
void
buildColumnStyle(int colIndex, int colWidth)
void
buildRow(int rowIndex, int rowHeight)
void
buildRowFooter()
void
buildRowHeader(int rowHeight)
void
buildRowStyle(int rowIndex, int rowHeight)
void
buildTableFooter()
void
buildTableHeader()
void
buildTableStyle(int width)
protected void
endHyperlink(boolean isText)
protected void
endTextSpan()
protected void
exportAnchor(String anchorName)
void
exportEllipse(JRPrintEllipse ellipse, JRExporterGridCell gridCell)
void
exportLine(JRPrintLine line, JRExporterGridCell gridCell)
void
exportRectangle(JRPrintGraphicElement rectangle, JRExporterGridCell gridCell)
protected void
exportStyledText(JRPrintText text, boolean startedHyperlink, boolean isIgnoreTextFormatting)
protected void
exportStyledText(JRStyledText styledText, Locale locale, boolean startedHyperlink, boolean isIgnoreTextFormatting)
protected void
exportStyledTextRun(Map<AttributedCharacterIterator.Attribute,Object> attributes, String text, Locale locale, boolean startedHyperlink, boolean isIgnoreTextFormatting)
void
exportText(JRPrintText text, JRExporterGridCell gridCell, boolean shrinkToFit, boolean wrapText, boolean isIgnoreTextFormatting)
protected void
exportTextContents(JRPrintText text)
protected String
getHyperlinkTarget(JRPrintHyperlink link)
protected String
getIgnoreHyperlinkProperty()
protected JasperReportsContext
getJasperReportsContext()
String
getTableName()
protected boolean
startHyperlink(JRPrintHyperlink link, boolean isText)
protected boolean
startHyperlink(JRPrintHyperlink link, boolean isText, boolean isOnePagePerSheet)
protected void
startTextSpan(Map<AttributedCharacterIterator.Attribute,Object> attributes, String text, Locale locale, boolean isIgnoreTextFormatting)
protected void
writeHyperlink(JRPrintHyperlink link, String href, boolean isText)
protected void
writeText(String text)
-
-
-
Field Detail
-
tableName
protected String tableName
-
-
Constructor Detail
-
TableBuilder
protected TableBuilder(DocumentBuilder documentBuilder, JasperPrint jasperPrint, String name, WriterHelper bodyWriter, WriterHelper styleWriter, StyleCache styleCache, Map<Integer,String> rowStyles, Map<Integer,String> columnStyles, Color tabColor)
-
TableBuilder
protected TableBuilder(DocumentBuilder documentBuilder, JasperPrint jasperPrint, String name, WriterHelper bodyWriter, WriterHelper styleWriter, StyleCache styleCache, Map<Integer,String> rowStyles, Map<Integer,String> columnStyles)
-
TableBuilder
protected TableBuilder(DocumentBuilder documentBuilder, JasperPrint jasperPrint, int pageFormatIndex, int pageIndex, WriterHelper bodyWriter, WriterHelper styleWriter, StyleCache styleCache, Map<Integer,String> rowStyles, Map<Integer,String> columnStyles, Color tabColor)
-
TableBuilder
protected TableBuilder(DocumentBuilder documentBuilder, JasperPrint jasperPrint, int pageFormatIndex, int pageIndex, WriterHelper bodyWriter, WriterHelper styleWriter, StyleCache styleCache, Map<Integer,String> rowStyles, Map<Integer,String> columnStyles)
-
-
Method Detail
-
buildTableStyle
public void buildTableStyle(int width)
-
buildTableHeader
public void buildTableHeader()
-
buildTableFooter
public void buildTableFooter()
-
buildRowStyle
public void buildRowStyle(int rowIndex, int rowHeight)
-
buildRowHeader
public void buildRowHeader(int rowHeight)
-
buildRowFooter
public void buildRowFooter()
-
buildRow
public void buildRow(int rowIndex, int rowHeight)
-
buildColumnStyle
public void buildColumnStyle(int colIndex, int colWidth)
-
buildColumnHeader
public void buildColumnHeader(int colWidth)
-
buildColumnFooter
public void buildColumnFooter()
-
buildCellHeader
public void buildCellHeader(String cellStyleName, int colSpan, int rowSpan)
-
buildCellFooter
public void buildCellFooter()
-
exportRectangle
public void exportRectangle(JRPrintGraphicElement rectangle, JRExporterGridCell gridCell)
-
exportLine
public void exportLine(JRPrintLine line, JRExporterGridCell gridCell)
-
exportEllipse
public void exportEllipse(JRPrintEllipse ellipse, JRExporterGridCell gridCell)
-
exportText
public void exportText(JRPrintText text, JRExporterGridCell gridCell, boolean shrinkToFit, boolean wrapText, boolean isIgnoreTextFormatting)
-
exportTextContents
protected void exportTextContents(JRPrintText text)
-
exportStyledText
protected void exportStyledText(JRPrintText text, boolean startedHyperlink, boolean isIgnoreTextFormatting)
-
exportStyledText
protected void exportStyledText(JRStyledText styledText, Locale locale, boolean startedHyperlink, boolean isIgnoreTextFormatting)
-
exportStyledTextRun
protected void exportStyledTextRun(Map<AttributedCharacterIterator.Attribute,Object> attributes, String text, Locale locale, boolean startedHyperlink, boolean isIgnoreTextFormatting)
-
startTextSpan
protected void startTextSpan(Map<AttributedCharacterIterator.Attribute,Object> attributes, String text, Locale locale, boolean isIgnoreTextFormatting)
-
endTextSpan
protected void endTextSpan()
-
writeText
protected void writeText(String text)
-
exportAnchor
protected void exportAnchor(String anchorName)
-
getIgnoreHyperlinkProperty
protected String getIgnoreHyperlinkProperty()
-
startHyperlink
protected boolean startHyperlink(JRPrintHyperlink link, boolean isText)
-
startHyperlink
protected boolean startHyperlink(JRPrintHyperlink link, boolean isText, boolean isOnePagePerSheet)
-
writeHyperlink
protected void writeHyperlink(JRPrintHyperlink link, String href, boolean isText)
-
endHyperlink
protected void endHyperlink(boolean isText)
-
getHyperlinkTarget
protected String getHyperlinkTarget(JRPrintHyperlink link)
-
getJasperReportsContext
protected JasperReportsContext getJasperReportsContext()
-
getTableName
public String getTableName()
-
-