jdbreport.helper
Class AbstractImageValue<E>

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

public abstract class AbstractImageValue<E>
extends AbstractValue<E>

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

Field Summary
protected  ImageIcon icon
           
 
Fields inherited from class jdbreport.model.AbstractValue
handler
 
Constructor Summary
AbstractImageValue()
           
 
Method Summary
 and.util.xml.XMLParser createParser(and.util.xml.XMLReaderHandler handler, ResourceReader resourceReader)
          Reads from XML
 void endElement(String name, StringBuffer value)
           
 Image getAsImage()
           
 Icon getIcon()
           
 Image getImage()
           
 String getImageFormat()
           
 void setImageFormat(String format)
           
abstract  void setValue(Image image)
           
 boolean startElement(String name, Attributes attributes)
           
 boolean write(PrintWriter writer, ReportModel model, int row, int column)
          Writes to XML
 boolean write(PrintWriter writer, ReportModel model, int row, int column, ResourceWriter resourceWriter, String format)
          Writes to writer
 
Methods inherited from class jdbreport.model.AbstractValue
characters, createParser, getAsImage, getHandler, toString, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface jdbreport.model.CellValue
getValue, setValue
 

Field Detail

icon

protected ImageIcon icon
Constructor Detail

AbstractImageValue

public AbstractImageValue()
Method Detail

setValue

public abstract void setValue(Image image)

getIcon

public Icon getIcon()

getImage

public Image getImage()

setImageFormat

public void setImageFormat(String format)

getImageFormat

public String getImageFormat()

write

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

Returns:
true if supported

startElement

public boolean startElement(String name,
                            Attributes attributes)
                     throws SAXException
Throws:
SAXException

endElement

public void endElement(String name,
                       StringBuffer value)
                throws SAXException
Throws:
SAXException

getAsImage

public Image getAsImage()

write

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

Returns:
true if supported
Throws:
SaveReportException

createParser

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

Returns:
XMLParser