|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.Writer
fr.opensagres.xdocreport.document.textstyling.AbstractDocumentHandler
public abstract class AbstractDocumentHandler
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 class java.io.Writer |
|---|
lock |
| Fields inherited from interface fr.opensagres.xdocreport.document.textstyling.ITransformResult |
|---|
TEXT_BEFORE_PROPERTY, TEXT_BODY_PROPERTY, TEXT_END_PROPERTY |
| Constructor Summary | |
|---|---|
AbstractDocumentHandler(BufferedElement parent,
IContext context,
String entryName)
|
|
| Method Summary | |
|---|---|
void |
close()
|
protected abstract void |
doEndOrderedList()
|
protected abstract void |
doEndTable(TableProperties properties)
|
protected abstract void |
doEndTableCell()
|
protected abstract void |
doEndTableRow()
|
protected abstract void |
doEndUnorderedList()
|
protected abstract void |
doStartOrderedList(ListProperties properties)
|
protected abstract void |
doStartTable(TableProperties properties)
|
protected abstract void |
doStartTableCell(TableCellProperties properties)
|
protected abstract void |
doStartTableRow(TableRowProperties properties)
|
protected abstract void |
doStartUnorderedList(ListProperties properties)
|
void |
endOrderedList()
End ordered list. |
void |
endTable()
End table. |
void |
endTableCell()
End table cell. |
void |
endTableRow()
End table row. |
void |
endUnorderedList()
End unordered list. |
void |
flush()
|
IContext |
getContext()
|
protected int |
getCurrentListIndex()
|
protected boolean |
getCurrentListOrder()
|
Writer |
getCurrentWriter()
|
String |
getEntryName()
|
BufferedElement |
getParent()
|
String |
getTextBefore()
|
String |
getTextBody()
|
String |
getTextEnd()
|
void |
handleString(String s)
Text content. |
void |
popTempWriter(String before)
|
void |
pushTempWriter()
|
void |
setTextLocation(IDocumentHandler.TextLocation location)
|
void |
startOrderedList(ListProperties properties)
Start ordered list. |
void |
startTable(TableProperties properties)
Start table. |
void |
startTableCell(TableCellProperties properties)
Start table cell. |
void |
startTableRow(TableRowProperties properties)
Start table row. |
void |
startUnorderedList(ListProperties properties)
Start unordered list. |
String |
toString()
|
void |
write(char[] arg0,
int arg1,
int arg2)
|
| Methods inherited from class java.io.Writer |
|---|
append, append, append, write, write, write, write |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods 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 Detail |
|---|
public AbstractDocumentHandler(BufferedElement parent,
IContext context,
String entryName)
| Method Detail |
|---|
public void handleString(String s)
throws IOException
IDocumentHandler
handleString in interface IDocumentHandlerIOException
public final void startOrderedList(ListProperties properties)
throws IOException
IDocumentHandler
startOrderedList in interface IDocumentHandlerIOException
public final void endOrderedList()
throws IOException
IDocumentHandler
endOrderedList in interface IDocumentHandlerIOException
public final void startUnorderedList(ListProperties properties)
throws IOException
IDocumentHandler
startUnorderedList in interface IDocumentHandlerIOException
public final void endUnorderedList()
throws IOException
IDocumentHandler
endUnorderedList in interface IDocumentHandlerIOExceptionprotected boolean getCurrentListOrder()
protected int getCurrentListIndex()
public final void startTable(TableProperties properties)
throws IOException
IDocumentHandler
startTable in interface IDocumentHandlerIOException
public final void endTable()
throws IOException
IDocumentHandler
endTable in interface IDocumentHandlerIOException
public final void startTableRow(TableRowProperties properties)
throws IOException
IDocumentHandler
startTableRow in interface IDocumentHandlerproperties - table row properties.
IOException
public final void endTableRow()
throws IOException
IDocumentHandler
endTableRow in interface IDocumentHandlerIOException
public final void startTableCell(TableCellProperties properties)
throws IOException
IDocumentHandler
startTableCell in interface IDocumentHandlerproperties - table cell propertie.
IOException
public final void endTableCell()
throws IOException
IDocumentHandler
endTableCell in interface IDocumentHandlerIOExceptionpublic BufferedElement getParent()
public IContext getContext()
public String getTextBefore()
getTextBefore in interface ITransformResultpublic String getTextBody()
getTextBody in interface ITransformResultpublic String getTextEnd()
getTextEnd in interface ITransformResultpublic void setTextLocation(IDocumentHandler.TextLocation location)
public void pushTempWriter()
public void popTempWriter(String before)
throws IOException
IOException
public void close()
throws IOException
close in interface Closeableclose in class WriterIOException
public void flush()
throws IOException
flush in interface Flushableflush in class WriterIOException
public void write(char[] arg0,
int arg1,
int arg2)
throws IOException
write in class WriterIOExceptionpublic Writer getCurrentWriter()
public String getEntryName()
public String toString()
toString in class Object
protected abstract void doStartUnorderedList(ListProperties properties)
throws IOException
IOException
protected abstract void doStartOrderedList(ListProperties properties)
throws IOException
IOException
protected abstract void doEndUnorderedList()
throws IOException
IOException
protected abstract void doEndOrderedList()
throws IOException
IOException
protected abstract void doStartTable(TableProperties properties)
throws IOException
IOException
protected abstract void doEndTable(TableProperties properties)
throws IOException
IOException
protected abstract void doStartTableRow(TableRowProperties properties)
throws IOException
IOException
protected abstract void doEndTableRow()
throws IOException
IOException
protected abstract void doStartTableCell(TableCellProperties properties)
throws IOException
IOException
protected abstract void doEndTableCell()
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||