Package docking.widgets.table
Interface WrappingTableModel
- All Superinterfaces:
TableModel
- All Known Implementing Classes:
TableModelWrapper
Signals that the implementing table model is wrapping another table model.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
This method allows us to call the delegate model with a translated eventint
getModelRow
(int viewRow) Returns the unwrapped model's row for the given view row.Returns the wrapped modelvoid
Allows this wrapping model to get update notifications directly from the filtering frameworkMethods inherited from interface javax.swing.table.TableModel
addTableModelListener, getColumnClass, getColumnCount, getColumnName, getRowCount, getValueAt, isCellEditable, removeTableModelListener, setValueAt
-
Method Details
-
getWrappedModel
TableModel getWrappedModel()Returns the wrapped model- Returns:
- the model
-
getModelRow
int getModelRow(int viewRow) Returns the unwrapped model's row for the given view row.- Parameters:
viewRow
- the row in the GUI- Returns:
- the row in the wrapped model's indexing
-
wrappedModelChangedFromTableChangedEvent
void wrappedModelChangedFromTableChangedEvent()Allows this wrapping model to get update notifications directly from the filtering framework -
fireTableChanged
This method allows us to call the delegate model with a translated event- Parameters:
e
- the event
-