public abstract class DBOHtmlWriter<C extends ApplicationContext> extends TagWriter<C>
DataWriter.setCloseStreamWhenFinished(boolean)
if you want to get it closed.
This applies only when writing to a stream. If you write to a file, close
will done automatically.attrs, DEFAULT_ENCODING
childTaskRef, isTestMode, monitorController, resultRef, stateFlag
Constructor and Description |
---|
DBOHtmlWriter(C ctx,
java.io.File outFile) |
DBOHtmlWriter(C ctx,
java.io.OutputStream out) |
Modifier and Type | Method and Description |
---|---|
void |
closeTable() |
protected AttrList |
getHeaderFontAttributes()
Defines the font attributes used to print column headers
|
protected AttrList |
getPKHeaderFontAttributes()
Defines the font attributes used to print primary key column headers
|
protected AttrList |
getTableAttributes()
Defines the attributes for the HTML table.
|
void |
openTable(DBObject dbo)
Opens a HTML table for the given DBOjbect master and prints the table header
|
protected void |
performWriteFooter() |
protected void |
performWriteHeader() |
java.lang.String |
toHtmlValue(java.lang.Object o) |
void |
writeDBObject(DBObject dbo)
Writes the given DBObject's data as a HTML table row
|
attr, close, closeTag, getSimpleTagCloseBracket, getTag, isWritingEmptyTags, openTag, openTag, performWrite, performWriteBody, printIndent, setIndentString, setWriteEmptyTags, writeComment, writeTag, writeTag, writeTag, writeTag, writeValue, writeXmlHeader
createFileOutputStream, executeAsync, flush, format, format, getEncoding, getOutputFile, getWriteDuration, getWriter, openStream, print, print, print, print, print, print, print, print, print, printf, printf, printLine, println, println, println, println, println, println, println, println, println, println, setCloseStreamWhenFinished, setEncoding, setOutputFile, setOutputStream, write, write, write, write, write
addMonitor, checkCancelled, checkForErrorAndRethrow, clearMonitors, createRunStateFlag, doOnCancel, doOnFailure, execute, executeSubTask, getError, getMaxProgressSteps, getMonitorCount, getMonitors, getName, getProgressStepCount, getResult, getRunStateFlag, getTaskId, getType, handleCancellation, handleFailure, handleFinish, handleStart, handleSuccess, hasError, hasMonitor, isCancellable, notifyProceeded, registerTaskStateChange, removeMonitor, resetProgress, setCancellable, setLogLevel, setMaxProgressSteps, setMonitor, setName, setName, setResult, setRunStateFlag, setTaskId, setType, shouldFireMonitor, sleepChecked, wasCancelled
getApplicationContext, getLogChannel, isLogDebug, isLogVerbose, logDebug, logDump, logError, logError, logFatal, logInfo, logVerbose, logWarning, setLogChannel
configureDumpHeadlineLength, configureDumpMaxElementsPrinted, copyDumpStringValues, copyToStringValues, createDumpHeader, toDumpString, toDumpString, toString, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getApplicationContext
getLogChannel, isLogDebug, isLogVerbose, logDebug, logDump, logError, logError, logFatal, logInfo, logVerbose, logWarning, setLogChannel
public DBOHtmlWriter(C ctx, java.io.OutputStream out)
public DBOHtmlWriter(C ctx, java.io.File outFile)
public void openTable(DBObject dbo)
protected AttrList getTableAttributes()
protected AttrList getPKHeaderFontAttributes()
protected AttrList getHeaderFontAttributes()
public void writeDBObject(DBObject dbo)
public void closeTable()
public java.lang.String toHtmlValue(java.lang.Object o)
protected void performWriteHeader() throws java.lang.Exception
performWriteHeader
in class TagWriter<C extends ApplicationContext>
java.lang.Exception
protected void performWriteFooter() throws java.lang.Exception
performWriteFooter
in class TagWriter<C extends ApplicationContext>
java.lang.Exception
Copyright © 2014 EsprIT-Systems. All Rights Reserved.