public abstract class JBListTableModel extends javax.swing.table.AbstractTableModel implements EditableModel
Constructor and Description |
---|
JBListTableModel(javax.swing.table.TableModel model) |
Modifier and Type | Method and Description |
---|---|
void |
addRow() |
boolean |
canExchangeRows(int oldIndex,
int newIndex) |
void |
exchangeRows(int oldIndex,
int newIndex) |
int |
getColumnCount() |
java.lang.String |
getColumnName(int columnIndex) |
abstract JBTableRow |
getRow(int index) |
int |
getRowCount() |
JBTableRow |
getValueAt(int rowIndex,
int columnIndex) |
boolean |
isCellEditable(int rowIndex,
int columnIndex) |
void |
removeRow(int index)
Remove row with index
idx and fire DELETE event (e.g. |
void |
setValueAt(java.lang.Object value,
int row,
int column) |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, removeTableModelListener
public int getRowCount()
getRowCount
in interface javax.swing.table.TableModel
public final int getColumnCount()
getColumnCount
in interface javax.swing.table.TableModel
public java.lang.String getColumnName(int columnIndex)
getColumnName
in interface javax.swing.table.TableModel
getColumnName
in class javax.swing.table.AbstractTableModel
public boolean isCellEditable(int rowIndex, int columnIndex)
isCellEditable
in interface javax.swing.table.TableModel
isCellEditable
in class javax.swing.table.AbstractTableModel
public abstract JBTableRow getRow(int index)
public final JBTableRow getValueAt(int rowIndex, int columnIndex)
getValueAt
in interface javax.swing.table.TableModel
public void setValueAt(java.lang.Object value, int row, int column)
setValueAt
in interface javax.swing.table.TableModel
setValueAt
in class javax.swing.table.AbstractTableModel
public void addRow()
addRow
in interface EditableModel
public void removeRow(int index)
ItemRemovable
idx
and fire DELETE
event (e.g. by calling
AbstractTableModel.fireTableRowsDeleted(int, int)
)removeRow
in interface ItemRemovable
public boolean canExchangeRows(int oldIndex, int newIndex)
canExchangeRows
in interface EditableModel
public void exchangeRows(int oldIndex, int newIndex)
exchangeRows
in interface EditableModel