Package jmri.jmrix.bidib.swing
Class BiDiBTableModel
- java.lang.Object
-
- javax.swing.table.AbstractTableModel
-
- jmri.jmrix.bidib.swing.BiDiBTableModel
-
- All Implemented Interfaces:
java.io.Serializable
,javax.swing.table.TableModel
public abstract class BiDiBTableModel extends javax.swing.table.AbstractTableModel
not used so far...- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected int
_lastDataCol
protected java.lang.String[]
columnNames
protected java.util.List<java.util.List<java.lang.Object>>
deletedData
protected java.util.List<java.util.List<java.lang.Object>>
rowData
-
Constructor Summary
Constructors Constructor Description BiDiBTableModel(int dc, int nc, int delc, int numc)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
contains(java.util.List<java.lang.Object> v)
int
getColumnCount()
java.lang.String
getColumnName(int col)
int
getDeleteColumn()
int
getRowCount()
java.util.List<java.util.List<java.lang.Object>>
getRowData()
java.lang.Object
getValueAt(int row, int col)
void
insertData(java.util.List<java.lang.Object> v, boolean isnew)
boolean
isCellEditable(int row, int col)
boolean
isDirty()
boolean
isDirtyRow(int row)
boolean
isMarkedForDelete(int row)
boolean
isNewRow(int row)
void
markForDelete(int row, boolean mark)
void
removeRow(int row)
void
setDirtyRow(int row, boolean d)
void
setNewRow(int row, boolean n)
void
setValueAt(java.lang.Object value, int row, int col)
-
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, removeTableModelListener
-
-
-
-
Field Detail
-
rowData
protected java.util.List<java.util.List<java.lang.Object>> rowData
-
deletedData
protected java.util.List<java.util.List<java.lang.Object>> deletedData
-
columnNames
protected java.lang.String[] columnNames
-
_lastDataCol
protected int _lastDataCol
-
-
Constructor Detail
-
BiDiBTableModel
public BiDiBTableModel(int dc, int nc, int delc, int numc)
-
-
Method Detail
-
getDeleteColumn
public int getDeleteColumn()
-
isDirty
public boolean isDirty()
-
isNewRow
public boolean isNewRow(int row)
-
setNewRow
public void setNewRow(int row, boolean n)
-
isDirtyRow
public boolean isDirtyRow(int row)
-
setDirtyRow
public void setDirtyRow(int row, boolean d)
-
isMarkedForDelete
public boolean isMarkedForDelete(int row)
-
removeRow
public void removeRow(int row)
-
markForDelete
public void markForDelete(int row, boolean mark)
-
contains
public boolean contains(java.util.List<java.lang.Object> v)
-
insertData
public void insertData(java.util.List<java.lang.Object> v, boolean isnew)
-
setValueAt
public void setValueAt(java.lang.Object value, int row, int col)
- Specified by:
setValueAt
in interfacejavax.swing.table.TableModel
- Overrides:
setValueAt
in classjavax.swing.table.AbstractTableModel
-
getRowData
public java.util.List<java.util.List<java.lang.Object>> getRowData()
-
getColumnName
public java.lang.String getColumnName(int col)
- Specified by:
getColumnName
in interfacejavax.swing.table.TableModel
- Overrides:
getColumnName
in classjavax.swing.table.AbstractTableModel
-
getRowCount
public int getRowCount()
-
getColumnCount
public int getColumnCount()
-
getValueAt
public java.lang.Object getValueAt(int row, int col)
-
isCellEditable
public boolean isCellEditable(int row, int col)
- Specified by:
isCellEditable
in interfacejavax.swing.table.TableModel
- Overrides:
isCellEditable
in classjavax.swing.table.AbstractTableModel
-
-