sos.reports
Interface ReportTableModel

All Superinterfaces:
javax.swing.table.TableModel
All Known Implementing Classes:
AbstractReportTableModel

public interface ReportTableModel
extends javax.swing.table.TableModel

An extension of the javax.swing.table.TableModel interface that returns prototype values and style names.

Since:
1.0

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 interface javax.swing.table.TableModel
addTableModelListener, getColumnClass, getColumnCount, getColumnName, getRowCount, getValueAt, isCellEditable, removeTableModelListener, setValueAt
 

Method Detail

getCellStyleNameAt

public 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.

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)
Returns the string to use as the style name for the column at the specified index.

Parameters:
column - index of column in question
Returns:
the column's style name

getPrototypeValueAt

public java.lang.Object getPrototypeValueAt(int row,
                                            int column)
Returns a prototypical value at the specified cell location.

Parameters:
row - cell's row index
column - cell's column index
Returns:
a cell's prototype (may be null)

getRowStyleNameAt

public java.lang.String getRowStyleNameAt(int row)
Returns the string to use as the style name for the row at the specified index.

Parameters:
row - index of row in question
Returns:
the row's style name

getStyleNameAt

public 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.

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()
Returns the string to use as the style name for the table.

Returns:
the table's style name


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