Package jmri.jmrit.entryexit
Class AddEntryExitPairPanel.TableModel
- java.lang.Object
-
- javax.swing.table.AbstractTableModel
-
- jmri.jmrit.entryexit.AddEntryExitPairPanel.TableModel
-
- All Implemented Interfaces:
java.beans.PropertyChangeListener
,java.io.Serializable
,java.util.EventListener
,javax.swing.table.TableModel
- Enclosing class:
- AddEntryExitPairPanel
class AddEntryExitPairPanel.TableModel extends javax.swing.table.AbstractTableModel implements java.beans.PropertyChangeListener
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.util.List<java.lang.Object>
dest
(package private) LayoutEditor
panel
(package private) int
rowCount
(package private) java.util.List<java.lang.Object>
source
-
Constructor Summary
Constructors Constructor Description TableModel(LayoutEditor panel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
configureTable(javax.swing.JTable table)
protected void
deleteEntryExit(int row, int col)
java.lang.Class<?>
getColumnClass(int col)
int
getColumnCount()
java.lang.String
getColumnName(int col)
int
getPreferredWidth(int col)
int
getRowCount()
java.lang.Object
getValueAt(int row, int col)
boolean
isCellEditable(int row, int col)
(package private) java.lang.String
isPairActive(int row)
void
propertyChange(java.beans.PropertyChangeEvent e)
(package private) void
setPanel(LayoutEditor panel)
void
setValueAt(java.lang.Object value, int row, int col)
(package private) void
updateNameList()
-
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
-
-
-
-
Field Detail
-
panel
LayoutEditor panel
-
source
java.util.List<java.lang.Object> source
-
dest
java.util.List<java.lang.Object> dest
-
rowCount
int rowCount
-
-
Constructor Detail
-
TableModel
TableModel(LayoutEditor panel)
-
-
Method Detail
-
setPanel
void setPanel(LayoutEditor panel)
-
updateNameList
void updateNameList()
-
getRowCount
public int getRowCount()
- Specified by:
getRowCount
in interfacejavax.swing.table.TableModel
-
configureTable
public void configureTable(javax.swing.JTable table)
-
getValueAt
public java.lang.Object getValueAt(int row, int col)
- Specified by:
getValueAt
in interfacejavax.swing.table.TableModel
-
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
-
getPreferredWidth
public int getPreferredWidth(int col)
-
deleteEntryExit
protected void deleteEntryExit(int row, int col)
-
isPairActive
java.lang.String isPairActive(int row)
-
getColumnName
public java.lang.String getColumnName(int col)
- Specified by:
getColumnName
in interfacejavax.swing.table.TableModel
- Overrides:
getColumnName
in classjavax.swing.table.AbstractTableModel
-
getColumnClass
public java.lang.Class<?> getColumnClass(int col)
- Specified by:
getColumnClass
in interfacejavax.swing.table.TableModel
- Overrides:
getColumnClass
in classjavax.swing.table.AbstractTableModel
-
isCellEditable
public boolean isCellEditable(int row, int col)
- Specified by:
isCellEditable
in interfacejavax.swing.table.TableModel
- Overrides:
isCellEditable
in classjavax.swing.table.AbstractTableModel
-
getColumnCount
public int getColumnCount()
- Specified by:
getColumnCount
in interfacejavax.swing.table.TableModel
-
propertyChange
public void propertyChange(java.beans.PropertyChangeEvent e)
- Specified by:
propertyChange
in interfacejava.beans.PropertyChangeListener
-
-