class FileBrowser.Browser.MyTableModel extends javax.swing.table.AbstractTableModel
Modifier and Type | Field and Description |
---|---|
(package private) static long |
serialVersionUID |
Constructor and Description |
---|
MyTableModel() |
Modifier and Type | Method and Description |
---|---|
java.lang.Class<?> |
getColumnClass(int c) |
int |
getColumnCount() |
java.lang.String |
getColumnName(int col) |
int |
getRowCount() |
java.lang.Object |
getValueAt(int row,
int col)
Method used to get data to display after
getTableCellRendererComponent converts it for displaying.
|
boolean |
isCellEditable(int row,
int col)
Disable the default editor if not the first column or the cell
contains a directory (because of an apparent race
condition).
|
void |
setValueAt(java.lang.Object value,
int row,
int col)
Apparently only used if cell is edited.
|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
static final long serialVersionUID
MyTableModel()
public int getColumnCount()
public int getRowCount()
public java.lang.String getColumnName(int col)
getColumnName
in interface javax.swing.table.TableModel
getColumnName
in class javax.swing.table.AbstractTableModel
public java.lang.Object getValueAt(int row, int col)
public java.lang.Class<?> getColumnClass(int c)
getColumnClass
in interface javax.swing.table.TableModel
getColumnClass
in class javax.swing.table.AbstractTableModel
public boolean isCellEditable(int row, int col)
isCellEditable
in interface javax.swing.table.TableModel
isCellEditable
in class javax.swing.table.AbstractTableModel
public void setValueAt(java.lang.Object value, int row, int col)
setValueAt
in interface javax.swing.table.TableModel
setValueAt
in class javax.swing.table.AbstractTableModel
value
- new (edited) value of cellrow
- row of edited cellcol
- column of edited cell