Home
Overview
Package
Class
Use
Tree
Deprecated
Hooks
HotSpot
Index
Help
SalesPoint Framework v3.0
PREV
NEXT
FRAMES
NO FRAMES
Hook: Define New TableModel Type
Requirement
A new type of
TableModel
needs to be defined because a new type of data needs to be visualized.
Method of Adaptation
Add Feature
Level of Support
Open Ended
HotSpot
Tables
Participants
AbstractTableModel
, NewTableModel
Changes
subclass NewTableModel of AbstractTableModel.
NewTableModel.getRowCount implements
AbstractTableModel.getRowCount
.
NewTableModel.getRowCount returns the number of records available in the data source.
NewTableModel.getRecord implements
AbstractTableModel.getRecord
.
NewTableModel.getRecord returns the record that was demanded.
NewTableModel registers as a listener to its data source in order to be able to inform the JTable of any changes in the data source.
NewTable implements sorting and (optionally) filtering of the records in its data source.
Constraints
The data to be visualized must be easily viewed as a list of records to fit the concepts behind
util.swing.AbstractTableModel
. If it does not, consider deriving your new model from
javax.swing.table.TableModel
directly.
Home
Overview
Package
Class
Use
Tree
Deprecated
Hooks
HotSpot
Index
Help
SalesPoint Framework v3.0
PREV
NEXT
FRAMES
NO FRAMES