Class AbstractDocumentHandler
java.lang.Object
java.io.Writer
fr.opensagres.xdocreport.document.textstyling.AbstractDocumentHandler
- All Implemented Interfaces:
IDocumentHandler,ITransformResult,Closeable,Flushable,Appendable,AutoCloseable
Abstract class for document handler
IDocumentHandler.-
Nested Class Summary
Nested classes/interfaces inherited from interface fr.opensagres.xdocreport.document.textstyling.IDocumentHandler
IDocumentHandler.TextLocation -
Field Summary
Fields inherited from interface fr.opensagres.xdocreport.document.textstyling.ITransformResult
TEXT_BEFORE_PROPERTY, TEXT_BODY_PROPERTY, TEXT_END_PROPERTY -
Constructor Summary
ConstructorsConstructorDescriptionAbstractDocumentHandler(BufferedElement parent, fr.opensagres.xdocreport.template.IContext context, String entryName) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()protected abstract voidprotected abstract voiddoEndTable(TableProperties properties) protected abstract voidprotected abstract voidprotected abstract voidprotected abstract voiddoStartOrderedList(ListProperties properties) protected abstract voiddoStartTable(TableProperties properties) protected abstract voiddoStartTableCell(TableCellProperties properties) protected abstract voiddoStartTableRow(TableRowProperties properties) protected abstract voiddoStartUnorderedList(ListProperties properties) final voidEnd ordered list.final voidendTable()End table.final voidEnd table cell.final voidEnd table row.final voidEnd unordered list.voidflush()fr.opensagres.xdocreport.template.IContextprotected intprotected booleanvoidText content.voidpopTempWriter(String before) voidvoidsetTextLocation(IDocumentHandler.TextLocation location) final voidstartOrderedList(ListProperties properties) Start ordered list.final voidstartTable(TableProperties properties) Start table.final voidstartTableCell(TableCellProperties properties) Start table cell.final voidstartTableRow(TableRowProperties properties) Start table row.final voidstartUnorderedList(ListProperties properties) Start unordered list.toString()voidwrite(char[] arg0, int arg1, int arg2) Methods inherited from class java.io.Writer
append, append, append, nullWriter, write, write, write, writeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface fr.opensagres.xdocreport.document.textstyling.IDocumentHandler
endBold, endDocument, endHeading, endItalics, endListItem, endParagraph, endSpan, endStrike, endSubscript, endSuperscript, endUnderline, handleImage, handleLineBreak, handleReference, startBold, startDocument, startHeading, startItalics, startListItem, startParagraph, startSpan, startStrike, startSubscript, startSuperscript, startUnderline
-
Constructor Details
-
AbstractDocumentHandler
public AbstractDocumentHandler(BufferedElement parent, fr.opensagres.xdocreport.template.IContext context, String entryName)
-
-
Method Details
-
handleString
Description copied from interface:IDocumentHandlerText content.- Specified by:
handleStringin interfaceIDocumentHandler- Throws:
IOException
-
startOrderedList
Description copied from interface:IDocumentHandlerStart ordered list.- Specified by:
startOrderedListin interfaceIDocumentHandler- Throws:
IOException
-
endOrderedList
Description copied from interface:IDocumentHandlerEnd ordered list.- Specified by:
endOrderedListin interfaceIDocumentHandler- Throws:
IOException
-
startUnorderedList
Description copied from interface:IDocumentHandlerStart unordered list.- Specified by:
startUnorderedListin interfaceIDocumentHandler- Throws:
IOException
-
endUnorderedList
Description copied from interface:IDocumentHandlerEnd unordered list.- Specified by:
endUnorderedListin interfaceIDocumentHandler- Throws:
IOException
-
getCurrentListOrder
protected boolean getCurrentListOrder() -
getCurrentListIndex
protected int getCurrentListIndex() -
startTable
Description copied from interface:IDocumentHandlerStart table.- Specified by:
startTablein interfaceIDocumentHandler- Throws:
IOException
-
endTable
Description copied from interface:IDocumentHandlerEnd table.- Specified by:
endTablein interfaceIDocumentHandler- Throws:
IOException
-
startTableRow
Description copied from interface:IDocumentHandlerStart table row.- Specified by:
startTableRowin interfaceIDocumentHandler- Parameters:
properties- table row properties.- Throws:
IOException
-
endTableRow
Description copied from interface:IDocumentHandlerEnd table row.- Specified by:
endTableRowin interfaceIDocumentHandler- Throws:
IOException
-
startTableCell
Description copied from interface:IDocumentHandlerStart table cell.- Specified by:
startTableCellin interfaceIDocumentHandler- Parameters:
properties- table cell propertie.- Throws:
IOException
-
endTableCell
Description copied from interface:IDocumentHandlerEnd table cell.- Specified by:
endTableCellin interfaceIDocumentHandler- Throws:
IOException
-
getParent
-
getContext
public fr.opensagres.xdocreport.template.IContext getContext() -
getTextBefore
- Specified by:
getTextBeforein interfaceITransformResult
-
getTextBody
- Specified by:
getTextBodyin interfaceITransformResult
-
getTextEnd
- Specified by:
getTextEndin interfaceITransformResult
-
setTextLocation
-
pushTempWriter
public void pushTempWriter() -
popTempWriter
- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein classWriter- Throws:
IOException
-
flush
- Specified by:
flushin interfaceFlushable- Specified by:
flushin classWriter- Throws:
IOException
-
write
- Specified by:
writein classWriter- Throws:
IOException
-
getCurrentWriter
-
getEntryName
-
toString
-
doStartUnorderedList
- Throws:
IOException
-
doStartOrderedList
- Throws:
IOException
-
doEndUnorderedList
- Throws:
IOException
-
doEndOrderedList
- Throws:
IOException
-
doStartTable
- Throws:
IOException
-
doEndTable
- Throws:
IOException
-
doStartTableRow
- Throws:
IOException
-
doEndTableRow
- Throws:
IOException
-
doStartTableCell
- Throws:
IOException
-
doEndTableCell
- Throws:
IOException
-