jdbreport.model
Class AbstractValue<E>

java.lang.Object
  extended by jdbreport.model.AbstractValue<E>
All Implemented Interfaces:
and.util.xml.XMLParser, Serializable, CellValue<E>
Direct Known Subclasses:
AbstractImageValue, ColorValue, MathValue, SVGValue

public abstract class AbstractValue<E>
extends Object
implements CellValue<E>, and.util.xml.XMLParser

Version:
2.0 12.12.2009
Author:
Andrey Kholmanskih
See Also:
Serialized Form

Field Summary
protected  and.util.xml.XMLReaderHandler handler
           
 
Constructor Summary
AbstractValue()
           
 
Method Summary
 void characters(StringBuffer ch)
           
 and.util.xml.XMLParser createParser(and.util.xml.XMLReaderHandler handler)
          Reads from XML
 Image getAsImage(ReportModel model, int row, int column)
           
protected  and.util.xml.XMLReaderHandler getHandler()
           
 String toString()
           
 boolean write(PrintWriter writer, ReportModel model, int row, int column, String format)
          Writes to writer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface jdbreport.model.CellValue
createParser, getValue, setValue, write, write
 
Methods inherited from interface and.util.xml.XMLParser
endElement, startElement
 

Field Detail

handler

protected transient and.util.xml.XMLReaderHandler handler
Constructor Detail

AbstractValue

public AbstractValue()
Method Detail

createParser

public and.util.xml.XMLParser createParser(and.util.xml.XMLReaderHandler handler)
Description copied from interface: CellValue
Reads from XML

Specified by:
createParser in interface CellValue<E>
Returns:
XMLParser

getHandler

protected and.util.xml.XMLReaderHandler getHandler()

characters

public void characters(StringBuffer ch)
                throws SAXException
Specified by:
characters in interface and.util.xml.XMLParser
Throws:
SAXException

toString

public String toString()
Overrides:
toString in class Object

write

public boolean write(PrintWriter writer,
                     ReportModel model,
                     int row,
                     int column,
                     String format)
              throws SaveReportException
Description copied from interface: CellValue
Writes to writer

Specified by:
write in interface CellValue<E>
Returns:
true if supported
Throws:
SaveReportException

getAsImage

public Image getAsImage(ReportModel model,
                        int row,
                        int column)
Specified by:
getAsImage in interface CellValue<E>
Returns:
as image