jdbreport.helper
Class ColorValue
java.lang.Object
jdbreport.model.AbstractValue<Color>
jdbreport.helper.ColorValue
- All Implemented Interfaces:
- and.util.xml.XMLParser, Serializable, CellValue<Color>
public class ColorValue
- extends AbstractValue<Color>
- Version:
- 2.0 12.12.2009
- Author:
- Andrey Kholmanskih
- See Also:
- Serialized Form
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(ReportModel model,
int row,
int column)
|
Color |
getValue()
|
static void |
registerValue()
|
void |
setValue(Color color)
|
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 |
boolean |
write(PrintWriter writer,
ReportModel model,
int row,
int column,
String format)
Writes to writer |
ColorValue
public ColorValue()
ColorValue
public ColorValue(Color color)
registerValue
public static void registerValue()
write
public boolean write(PrintWriter writer,
ReportModel model,
int row,
int column)
- Description copied from interface:
CellValue
- Writes to XML
- Returns:
- true if supported
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<Color>
- Overrides:
write
in class AbstractValue<Color>
- Returns:
- true if supported
- Throws:
SaveReportException
getValue
public Color getValue()
- Returns:
- the color
endElement
public void endElement(String name,
StringBuffer value)
throws SAXException
- Throws:
SAXException
startElement
public boolean startElement(String name,
Attributes attributes)
throws SAXException
- Throws:
SAXException
setValue
public void setValue(Color color)
getAsImage
public Image getAsImage(ReportModel model,
int row,
int column)
- Specified by:
getAsImage
in interface CellValue<Color>
- Overrides:
getAsImage
in class AbstractValue<Color>
- Returns:
- as image
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