sos.reports
Class TableFormatAdapter

java.lang.Object
  |
  +--sos.reports.TableFormatAdapter
All Implemented Interfaces:
TableFormat

public abstract class TableFormatAdapter
extends java.lang.Object
implements TableFormat

A table format that returns empty attribute sets for all methods. This is a convenience class so that subclasses do not have to define all three methods. Instead, subclasses should override the method(s) they wish to return useful attribute sets.

Since:
1.0

Constructor Summary
TableFormatAdapter()
           
 
Method Summary
 javax.swing.text.AttributeSet getCellAttributes(CellElement cellElement)
          Returns the attributes to use for the specified cell element.
 javax.swing.text.AttributeSet getTableAttributes(TableElement tableElement)
          Returns the attributes to use for the table element.
 javax.swing.text.AttributeSet getTierAttributes(TierElement tierElement)
          Returns the attributes to use for the specified tier element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TableFormatAdapter

public TableFormatAdapter()
Method Detail

getCellAttributes

public javax.swing.text.AttributeSet getCellAttributes(CellElement cellElement)
Description copied from interface: TableFormat
Returns the attributes to use for the specified cell element.

Specified by:
getCellAttributes in interface TableFormat
Parameters:
cellElement - cell for which the attributes are desired
Returns:
a set of attributes for cellElement

getTableAttributes

public javax.swing.text.AttributeSet getTableAttributes(TableElement tableElement)
Description copied from interface: TableFormat
Returns the attributes to use for the table element.

Specified by:
getTableAttributes in interface TableFormat
Parameters:
tableElement - table for which the attributes are desired
Returns:
a set of attributes for tableElement

getTierAttributes

public javax.swing.text.AttributeSet getTierAttributes(TierElement tierElement)
Description copied from interface: TableFormat
Returns the attributes to use for the specified tier element.

Specified by:
getTierAttributes in interface TableFormat
Parameters:
tierElement - row or column for which the attributes are desired
Returns:
a set of attributes for tierElement


Copyright 2003, 2004 Side of Software (SOS). All rights reserved.