org.jfree.report.demo.bookstore
Class BookstoreTableModel
java.lang.Object
|
+--javax.swing.table.AbstractTableModel
|
+--org.jfree.report.demo.bookstore.BookstoreTableModel
- public class BookstoreTableModel
- extends javax.swing.table.AbstractTableModel
A sample data source for the JFreeReport Demo Application.
- Author:
- Thomas Morgner
- See Also:
- Serialized Form
| Fields inherited from class javax.swing.table.AbstractTableModel |
listenerList |
|
Method Summary |
java.lang.Class |
getColumnClass(int column)
Returns the class of the data in the specified column. |
int |
getColumnCount()
Returns the number of columns in the table model. |
java.lang.String |
getColumnName(int column)
Returns the name of the specified column. |
int |
getRowCount()
Returns the number of rows in the table model. |
java.lang.Object |
getValueAt(int row,
int column)
Returns the data value at the specified row and column. |
| Methods inherited from class javax.swing.table.AbstractTableModel |
addTableModelListener,
findColumn,
fireTableCellUpdated,
fireTableChanged,
fireTableDataChanged,
fireTableRowsDeleted,
fireTableRowsInserted,
fireTableRowsUpdated,
fireTableStructureChanged,
isCellEditable,
removeTableModelListener,
setValueAt |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
BookstoreTableModel
public BookstoreTableModel()
- Default constructor - builds a sample data source.
getRowCount
public int getRowCount()
- Returns the number of rows in the table model.
- Overrides:
- getRowCount in class javax.swing.table.AbstractTableModel
- Returns:
- the row count.
getColumnCount
public int getColumnCount()
- Returns the number of columns in the table model.
- Overrides:
- getColumnCount in class javax.swing.table.AbstractTableModel
- Returns:
- the column count.
getColumnClass
public java.lang.Class getColumnClass(int column)
- Returns the class of the data in the specified column.
- Overrides:
- getColumnClass in class javax.swing.table.AbstractTableModel
- Parameters:
column - the column (zero-based index).- Returns:
- the column class.
getColumnName
public java.lang.String getColumnName(int column)
- Returns the name of the specified column.
- Overrides:
- getColumnName in class javax.swing.table.AbstractTableModel
- Parameters:
column - the column (zero-based index).- Returns:
- the column name.
getValueAt
public java.lang.Object getValueAt(int row,
int column)
- Returns the data value at the specified row and column.
- Overrides:
- getValueAt in class javax.swing.table.AbstractTableModel
- Parameters:
row - the row index (zero based).column - the column index (zero based).- Returns:
- the value.