jdbreport.model.io.xml
Class CellParser
java.lang.Object
and.util.xml.AbstractXMLParser
jdbreport.model.io.xml.DefaultReportParser
jdbreport.model.io.xml.CellParser
- All Implemented Interfaces:
- and.util.xml.XMLParser
- Direct Known Subclasses:
- TemplCellHandler
public class CellParser
- extends DefaultReportParser
- Version:
- 2.0 19.12.2009
- Author:
- Andrey Kholmanskih
Method Summary |
void |
endElement(String name,
StringBuffer value)
|
Cell |
getCell()
|
protected String |
getParams(Cell cell,
int col)
|
protected Image |
readImage(String s)
|
void |
save(PrintWriter writer,
ReportModel model,
Cell cell,
int row,
int col)
|
void |
setCell(Cell cell)
|
boolean |
startElement(String name,
Attributes attributes)
|
protected void |
writeElements(PrintWriter writer,
ReportModel model,
Cell cell,
int row,
int column)
|
Methods inherited from class and.util.xml.AbstractXMLParser |
characters, getHandler, popHandler, pushHandler |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CellParser
public CellParser(DefaultReaderHandler reportHandler,
ResourceWriter resIO)
CellParser
public CellParser(DefaultReaderHandler reportHandler,
Cell cell,
ResourceReader resReader)
- Parameters:
reportHandler
-
startElement
public boolean startElement(String name,
Attributes attributes)
throws SAXException
- Specified by:
startElement
in interface and.util.xml.XMLParser
- Overrides:
startElement
in class DefaultReportParser
- Throws:
SAXException
readImage
protected Image readImage(String s)
throws SAXException
- Throws:
SAXException
endElement
public void endElement(String name,
StringBuffer value)
- Specified by:
endElement
in interface and.util.xml.XMLParser
- Overrides:
endElement
in class DefaultReportParser
save
public void save(PrintWriter writer,
ReportModel model,
Cell cell,
int row,
int col)
throws SaveReportException
- Throws:
SaveReportException
writeElements
protected void writeElements(PrintWriter writer,
ReportModel model,
Cell cell,
int row,
int column)
throws SaveReportException
- Throws:
SaveReportException
getParams
protected String getParams(Cell cell,
int col)
setCell
public void setCell(Cell cell)
- Parameters:
cell
- The cell to set.
getCell
public Cell getCell()
- Returns:
- Returns the cell.