Kereta Yarsi Indonesia
Loading...
Searching...
No Matches
controller.CustomTableModel Class Reference
Inheritance diagram for controller.CustomTableModel:

Public Member Functions

 CustomTableModel (TableModel model)
 
boolean isCellEditable (int row, int column)
 

Detailed Description

CustomTableModel is a custom implementation of DefaultTableModel that copies data from another TableModel and makes all cells uneditable.

This class is used to provide a read-only table model based on an existing table model.

Author
Muhammad Rizal Anditama Nugraha

Constructor & Destructor Documentation

◆ CustomTableModel()

controller.CustomTableModel.CustomTableModel ( TableModel  model)
inline

Constructs a CustomTableModel by copying the data from the provided TableModel.

Parameters
modelThe TableModel to copy data from.

Member Function Documentation

◆ isCellEditable()

boolean controller.CustomTableModel.isCellEditable ( int  row,
int  column 
)
inline

Overrides the isCellEditable method to make all cells uneditable.

Parameters
rowThe row index of the cell.
columnThe column index of the cell.
Returns
Always returns false to indicate that all cells are uneditable.

The documentation for this class was generated from the following file: