jdbreport.model.io.xml.excel
Class ExcelStyleParser

java.lang.Object
  extended by and.util.xml.AbstractXMLParser
      extended by jdbreport.model.io.xml.DefaultReportParser
          extended by jdbreport.model.io.xml.excel.ExcelStyleParser
All Implemented Interfaces:
and.util.xml.XMLParser

public class ExcelStyleParser
extends DefaultReportParser

Version:
1.1 03/09/08
Author:
Andrey Kholmanskih

Field Summary
static int BS_BDIAGONAL
           
static int BS_CLEAR
           
static int BS_CROSS
           
static int BS_DIAGCROSS
           
static int BS_FDIAGONAL
           
static int BS_HORIZONTAL
           
static int BS_SOLID
           
static int BS_VERTICAL
           
 
Fields inherited from class jdbreport.model.io.xml.DefaultReportParser
CELL, ROW, SHEET, STYLE, STYLES
 
Constructor Summary
ExcelStyleParser(DefaultReaderHandler reportHandler)
           
 
Method Summary
 void endElement(String name, StringBuffer value)
           
static Object getStyleId(Object id)
           
static void saveStyle(PrintWriter writer, CellStyle style)
          save style to XML
 boolean startElement(String name, Attributes attributes)
           
 
Methods inherited from class jdbreport.model.io.xml.DefaultReportParser
getCurrentModel, getDefaultReportHandler, getReportBook, getReportModel, setCurrentModel
 
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
 

Field Detail

BS_SOLID

public static final int BS_SOLID
See Also:
Constant Field Values

BS_CLEAR

public static final int BS_CLEAR
See Also:
Constant Field Values

BS_HORIZONTAL

public static final int BS_HORIZONTAL
See Also:
Constant Field Values

BS_VERTICAL

public static final int BS_VERTICAL
See Also:
Constant Field Values

BS_FDIAGONAL

public static final int BS_FDIAGONAL
See Also:
Constant Field Values

BS_BDIAGONAL

public static final int BS_BDIAGONAL
See Also:
Constant Field Values

BS_CROSS

public static final int BS_CROSS
See Also:
Constant Field Values

BS_DIAGCROSS

public static final int BS_DIAGCROSS
See Also:
Constant Field Values
Constructor Detail

ExcelStyleParser

public ExcelStyleParser(DefaultReaderHandler reportHandler)
Method Detail

startElement

public boolean startElement(String name,
                            Attributes attributes)
Specified by:
startElement in interface and.util.xml.XMLParser
Overrides:
startElement in class DefaultReportParser

endElement

public void endElement(String name,
                       StringBuffer value)
                throws SAXException
Specified by:
endElement in interface and.util.xml.XMLParser
Overrides:
endElement in class DefaultReportParser
Throws:
SAXException

saveStyle

public static void saveStyle(PrintWriter writer,
                             CellStyle style)
save style to XML

Parameters:
writer -
style -

getStyleId

public static Object getStyleId(Object id)