sos.reports
Class AbstractReportTableModel

java.lang.Object
  |
  +--javax.swing.table.AbstractTableModel
        |
        +--sos.reports.AbstractReportTableModel
All Implemented Interfaces:
ReportTableModel, java.io.Serializable, javax.swing.table.TableModel

public abstract class AbstractReportTableModel
extends javax.swing.table.AbstractTableModel
implements ReportTableModel

A partial implementation of ReportTableModel. Subclasses must implement getValueAt, getRowCount, and getColumnCount.

For the style names, this class returns "Table" for getTableStyleName, "Row" + index for getRowStyleNameAt, "Column" + index for getColumnStyleNameAt, "Cell" + row + "," + column for getCellStyleNameAt, and "Cell" + row + "," + column + "Object" for getStyleNameAt.

Since:
1.0

Field Summary
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
AbstractReportTableModel()
           
 
Method Summary
 java.lang.String getCellStyleNameAt(int row, int column)
          Returns the string to use as the style name for the cell at the specified row and column indices.
 java.lang.String getColumnStyleNameAt(int column)
          Returns the string to use as the style name for the column at the specified index.
 java.lang.Object getPrototypeValueAt(int row, int column)
          Returns a prototypical value at the specified cell location.
 java.lang.String getRowStyleNameAt(int row)
          Returns the string to use as the style name for the row at the specified index.
 java.lang.String getStyleNameAt(int row, int column)
          Returns the string to use as the style name for the content of the cell at the specified row and column indices.
 java.lang.String getTableStyleName()
          Returns the string to use as the style name for the table.
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getColumnName, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.swing.table.TableModel
addTableModelListener, getColumnClass, getColumnCount, getColumnName, getRowCount, getValueAt, isCellEditable, removeTableModelListener, setValueAt
 

Constructor Detail

AbstractReportTableModel

public AbstractReportTableModel()
Method Detail

getPrototypeValueAt

public java.lang.Object getPrototypeValueAt(int row,
                                            int column)
Description copied from interface: ReportTableModel
Returns a prototypical value at the specified cell location.

Specified by:
getPrototypeValueAt in interface ReportTableModel
Parameters:
row - cell's row index
column - cell's column index
Returns:
a cell's prototype (may be null)

getStyleNameAt

public java.lang.String getStyleNameAt(int row,
                                       int column)
Description copied from interface: ReportTableModel
Returns the string to use as the style name for the content of the cell at the specified row and column indices.

Specified by:
getStyleNameAt in interface ReportTableModel
Parameters:
row - cell's row index
column - cell's column index
Returns:
a cell's style name (may be null)

getTableStyleName

public java.lang.String getTableStyleName()
Description copied from interface: ReportTableModel
Returns the string to use as the style name for the table.

Specified by:
getTableStyleName in interface ReportTableModel
Returns:
the table's style name

getCellStyleNameAt

public java.lang.String getCellStyleNameAt(int row,
                                           int column)
Description copied from interface: ReportTableModel
Returns the string to use as the style name for the cell at the specified row and column indices.

Specified by:
getCellStyleNameAt in interface ReportTableModel
Parameters:
row - index of row of cell in question
column - index of column of cell in question
Returns:
the cell's style name

getColumnStyleNameAt

public java.lang.String getColumnStyleNameAt(int column)
Description copied from interface: ReportTableModel
Returns the string to use as the style name for the column at the specified index.

Specified by:
getColumnStyleNameAt in interface ReportTableModel
Parameters:
column - index of column in question
Returns:
the column's style name

getRowStyleNameAt

public java.lang.String getRowStyleNameAt(int row)
Description copied from interface: ReportTableModel
Returns the string to use as the style name for the row at the specified index.

Specified by:
getRowStyleNameAt in interface ReportTableModel
Parameters:
row - index of row in question
Returns:
the row's style name


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