Package jmri.jmrit.sensorgroup
Class BeanTableModel
- java.lang.Object
-
- javax.swing.table.AbstractTableModel
-
- jmri.jmrit.sensorgroup.BeanTableModel
-
- All Implemented Interfaces:
java.io.Serializable
,javax.swing.table.TableModel
- Direct Known Subclasses:
SensorTableModel
public abstract class BeanTableModel extends javax.swing.table.AbstractTableModel
Abstract base for simple bean tables for insertion in other GUI elements- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static int
INCLUDE_COLUMN
static int
SNAME_COLUMN
static int
UNAME_COLUMN
-
Constructor Summary
Constructors Constructor Description BeanTableModel()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description java.lang.Class<?>
getColumnClass(int c)
int
getColumnCount()
java.lang.String
getColumnName(int c)
abstract Manager<?>
getManager()
int
getRowCount()
java.lang.Object
getValueAt(int r, int c)
User name column must be handled by subclass.boolean
isCellEditable(int r, int c)
-
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener, setValueAt
-
-
-
-
Field Detail
-
SNAME_COLUMN
public static final int SNAME_COLUMN
- See Also:
- Constant Field Values
-
UNAME_COLUMN
public static final int UNAME_COLUMN
- See Also:
- Constant Field Values
-
INCLUDE_COLUMN
public static final int INCLUDE_COLUMN
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
BeanTableModel
public BeanTableModel()
-
-
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
-
getManager
public abstract Manager<?> getManager()
-
getColumnCount
public int getColumnCount()
-
getRowCount
public int getRowCount()
-
isCellEditable
public boolean isCellEditable(int r, int c)
- Specified by:
isCellEditable
in interfacejavax.swing.table.TableModel
- Overrides:
isCellEditable
in classjavax.swing.table.AbstractTableModel
-
getColumnName
public java.lang.String getColumnName(int c)
- Specified by:
getColumnName
in interfacejavax.swing.table.TableModel
- Overrides:
getColumnName
in classjavax.swing.table.AbstractTableModel
-
getValueAt
public java.lang.Object getValueAt(int r, int c)
User name column must be handled by subclass.
-
-