|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.swing.table.AbstractTableModel | +--sos.reports.AbstractReportTableModel
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
.
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 |
public AbstractReportTableModel()
Method Detail |
public java.lang.Object getPrototypeValueAt(int row, int column)
ReportTableModel
getPrototypeValueAt
in interface ReportTableModel
row
- cell's row indexcolumn
- cell's column index
null
)public java.lang.String getStyleNameAt(int row, int column)
ReportTableModel
getStyleNameAt
in interface ReportTableModel
row
- cell's row indexcolumn
- cell's column index
null
)public java.lang.String getTableStyleName()
ReportTableModel
getTableStyleName
in interface ReportTableModel
public java.lang.String getCellStyleNameAt(int row, int column)
ReportTableModel
getCellStyleNameAt
in interface ReportTableModel
row
- index of row of cell in questioncolumn
- index of column of cell in question
public java.lang.String getColumnStyleNameAt(int column)
ReportTableModel
getColumnStyleNameAt
in interface ReportTableModel
column
- index of column in question
public java.lang.String getRowStyleNameAt(int row)
ReportTableModel
getRowStyleNameAt
in interface ReportTableModel
row
- index of row in question
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |