Class MatrixTableModel
java.lang.Object
javax.swing.table.AbstractTableModel
smile.swing.table.PageTableModel
smile.swing.table.MatrixTableModel
- All Implemented Interfaces:
Serializable, TableModel
A table model for matrices with paging.
- See Also:
-
Field Summary
Fields inherited from class AbstractTableModel
listenerList -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetColumnName(int col) intThe subclass should implement this method to return the real number of rows in the model.getValueAtRealRow(int row, int col) Returns the value for the cell at real row index.Methods inherited from class PageTableModel
getPage, getPageCount, getPageSize, getRealRow, getRowCount, getToolbar, getValueAt, pageDown, pageUp, setPage, setPageSizeMethods inherited from class AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
-
Constructor Details
-
MatrixTableModel
-
-
Method Details
-
getColumnCount
public int getColumnCount() -
getRealRowCount
public int getRealRowCount()Description copied from class:PageTableModelThe subclass should implement this method to return the real number of rows in the model.- Specified by:
getRealRowCountin classPageTableModel- Returns:
- The real number of rows in the model.
-
getColumnName
- Specified by:
getColumnNamein interfaceTableModel- Overrides:
getColumnNamein classAbstractTableModel
-
getValueAtRealRow
Description copied from class:PageTableModelReturns the value for the cell at real row index.- Specified by:
getValueAtRealRowin classPageTableModel- Parameters:
row- the real row whose value is to be queried.col- the column whose value is to be queried.- Returns:
- the value Object at the specified cell
-