Package jmri.jmrit.beantable.signalmast
Class SignalMastRepeaterPanel.SignalMastRepeaterModel
- java.lang.Object
-
- javax.swing.table.AbstractTableModel
-
- jmri.jmrit.beantable.signalmast.SignalMastRepeaterPanel.SignalMastRepeaterModel
-
- All Implemented Interfaces:
java.beans.PropertyChangeListener
,java.io.Serializable
,java.util.EventListener
,javax.swing.table.TableModel
- Enclosing class:
- SignalMastRepeaterPanel
public class SignalMastRepeaterPanel.SignalMastRepeaterModel extends javax.swing.table.AbstractTableModel implements java.beans.PropertyChangeListener
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static int
DEL_COLUMN
static int
DIR_COLUMN
static int
ENABLE_COLUMN
static int
MASTER_COLUMN
static int
SLAVE_COLUMN
-
Constructor Summary
Constructors Constructor Description SignalMastRepeaterModel()
-
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)
protected void
deleteRepeater(int r)
void
dispose()
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)
(package private) void
init()
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
setSetToState(java.lang.String x)
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
-
MASTER_COLUMN
public static final int MASTER_COLUMN
- See Also:
- Constant Field Values
-
DIR_COLUMN
public static final int DIR_COLUMN
- See Also:
- Constant Field Values
-
SLAVE_COLUMN
public static final int SLAVE_COLUMN
- See Also:
- Constant Field Values
-
ENABLE_COLUMN
public static final int ENABLE_COLUMN
- See Also:
- Constant Field Values
-
DEL_COLUMN
public static final int DEL_COLUMN
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SignalMastRepeaterModel
SignalMastRepeaterModel()
-
-
Method Detail
-
init
final void init()
-
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
-
deleteRepeater
protected void deleteRepeater(int r)
-
setSetToState
public void setSetToState(java.lang.String x)
-
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
-
-