Class BoardListPanel.ReaderBoardModel
- java.lang.Object
-
- javax.swing.table.AbstractTableModel
-
- jmri.jmrix.dcc4pc.swing.boardlists.BoardListPanel.ReaderBoardModel
-
- All Implemented Interfaces:
java.beans.PropertyChangeListener
,java.io.Serializable
,java.util.EventListener
,javax.swing.table.TableModel
- Enclosing class:
- BoardListPanel
public class BoardListPanel.ReaderBoardModel extends javax.swing.table.AbstractTableModel implements java.beans.PropertyChangeListener
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static int
ADDRESS_COLUMN
static int
DESCRIPTION_COLUMN
static int
EDIT_COLUMN
static int
ENCODING_COLUMN
static int
INPUTS_COLUMN
static int
VERSION_COLUMN
-
Constructor Summary
Constructors Constructor Description ReaderBoardModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
configEditColumn(javax.swing.JTable table)
void
configureTable(javax.swing.JTable table)
void
dispose()
protected void
editAddress(int r)
java.lang.Class<?>
getColumnClass(int c)
int
getColumnCount()
java.lang.String
getColumnName(int col)
int
getPreferredWidth(int col)
int
getRowCount()
java.lang.Object
getValueAt(int r, int c)
boolean
isCellEditable(int r, int c)
void
propertyChange(java.beans.PropertyChangeEvent e)
protected void
setColumnToHoldButton(javax.swing.JTable table, int column, javax.swing.JButton sample)
void
setValueAt(java.lang.Object type, int r, int c)
-
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
-
-
-
-
Field Detail
-
ADDRESS_COLUMN
public static final int ADDRESS_COLUMN
- See Also:
- Constant Field Values
-
INPUTS_COLUMN
public static final int INPUTS_COLUMN
- See Also:
- Constant Field Values
-
ENCODING_COLUMN
public static final int ENCODING_COLUMN
- See Also:
- Constant Field Values
-
VERSION_COLUMN
public static final int VERSION_COLUMN
- See Also:
- Constant Field Values
-
DESCRIPTION_COLUMN
public static final int DESCRIPTION_COLUMN
- See Also:
- Constant Field Values
-
EDIT_COLUMN
public static final int EDIT_COLUMN
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ReaderBoardModel
ReaderBoardModel()
-
-
Method Detail
-
getColumnClass
public java.lang.Class<?> getColumnClass(int c)
- Specified by:
getColumnClass
in interfacejavax.swing.table.TableModel
- Overrides:
getColumnClass
in classjavax.swing.table.AbstractTableModel
-
configureTable
public void configureTable(javax.swing.JTable table)
-
getPreferredWidth
public int getPreferredWidth(int col)
-
getColumnName
public java.lang.String getColumnName(int col)
- Specified by:
getColumnName
in interfacejavax.swing.table.TableModel
- Overrides:
getColumnName
in classjavax.swing.table.AbstractTableModel
-
dispose
public void dispose()
-
propertyChange
public void propertyChange(java.beans.PropertyChangeEvent e)
- Specified by:
propertyChange
in interfacejava.beans.PropertyChangeListener
-
configEditColumn
protected void configEditColumn(javax.swing.JTable table)
-
setColumnToHoldButton
protected void setColumnToHoldButton(javax.swing.JTable table, int column, javax.swing.JButton sample)
-
getColumnCount
public int getColumnCount()
- Specified by:
getColumnCount
in interfacejavax.swing.table.TableModel
-
isCellEditable
public boolean isCellEditable(int r, int c)
- Specified by:
isCellEditable
in interfacejavax.swing.table.TableModel
- Overrides:
isCellEditable
in classjavax.swing.table.AbstractTableModel
-
editAddress
protected void editAddress(int r)
-
getRowCount
public int getRowCount()
- Specified by:
getRowCount
in interfacejavax.swing.table.TableModel
-
getValueAt
public java.lang.Object getValueAt(int r, int c)
- Specified by:
getValueAt
in interfacejavax.swing.table.TableModel
-
setValueAt
public void setValueAt(java.lang.Object type, int r, int c)
- Specified by:
setValueAt
in interfacejavax.swing.table.TableModel
- Overrides:
setValueAt
in classjavax.swing.table.AbstractTableModel
-
-