org.jfor.jfor.converter
Class TableAttributesConverter

java.lang.Object
  extended byorg.jfor.jfor.converter.TableAttributesConverter

public class TableAttributesConverter
extends java.lang.Object

Provides methods to convert the attributes (padding) to RtfAttributes.


Method Summary
(package private) static RtfAttributes convertCellAttributes(org.xml.sax.Attributes attrs, RtfAttributes defaultAttributes)
          Converts cell attributes to rtf attributes.
(package private) static RtfAttributes convertRowAttributes(org.xml.sax.Attributes attrs, RtfAttributes defaultAttributes)
          Converts table and row attributes to rtf attributes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

convertCellAttributes

static RtfAttributes convertCellAttributes(org.xml.sax.Attributes attrs,
                                           RtfAttributes defaultAttributes)
                                    throws ConverterException
Converts cell attributes to rtf attributes.

Parameters:
attrs - Given attributes
defaultAttributes - Default rtf attributes
Returns:
All valid rtf attributes together
Throws:
ConverterException - On convertion error

convertRowAttributes

static RtfAttributes convertRowAttributes(org.xml.sax.Attributes attrs,
                                          RtfAttributes defaultAttributes)
                                   throws ConverterException
Converts table and row attributes to rtf attributes.

Parameters:
attrs - Given attributes
defaultAttributes - Default rtf attributes
Returns:
All valid rtf attributes together
Throws:
ConverterException - On convertion error