Class LocationTrackBlockingOrderTableModel
- java.lang.Object
-
- javax.swing.table.AbstractTableModel
-
- jmri.jmrit.operations.locations.tools.LocationTrackBlockingOrderTableModel
-
- All Implemented Interfaces:
java.beans.PropertyChangeListener
,java.io.Serializable
,java.util.EventListener
,javax.swing.table.TableModel
public class LocationTrackBlockingOrderTableModel extends javax.swing.table.AbstractTableModel implements java.beans.PropertyChangeListener
Table Model for edit of tracks used by operations- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Location
_location
protected javax.swing.JTable
_table
protected java.util.List<Track>
_tracksList
protected static int
DOWN_COLUMN
protected static int
HIGHESTCOLUMN
protected static int
ID_COLUMN
protected static int
NAME_COLUMN
protected static int
ORDER_COLUMN
protected static int
TYPE_COLUMN
protected static int
UP_COLUMN
-
Constructor Summary
Constructors Constructor Description LocationTrackBlockingOrderTableModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispose()
java.lang.Class<?>
getColumnClass(int col)
int
getColumnCount()
java.lang.String
getColumnName(int col)
int
getRowCount()
java.lang.Object
getValueAt(int row, int col)
protected void
initTable(javax.swing.JTable table, Location location)
boolean
isCellEditable(int row, int col)
void
propertyChange(java.beans.PropertyChangeEvent e)
protected void
removePropertyChangeTracks()
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, getListeners, getTableModelListeners, removeTableModelListener
-
-
-
-
Field Detail
-
_tracksList
protected java.util.List<Track> _tracksList
-
_table
protected javax.swing.JTable _table
-
ID_COLUMN
protected static final int ID_COLUMN
- See Also:
- Constant Field Values
-
NAME_COLUMN
protected static final int NAME_COLUMN
- See Also:
- Constant Field Values
-
TYPE_COLUMN
protected static final int TYPE_COLUMN
- See Also:
- Constant Field Values
-
ORDER_COLUMN
protected static final int ORDER_COLUMN
- See Also:
- Constant Field Values
-
UP_COLUMN
protected static final int UP_COLUMN
- See Also:
- Constant Field Values
-
DOWN_COLUMN
protected static final int DOWN_COLUMN
- See Also:
- Constant Field Values
-
HIGHESTCOLUMN
protected static final int HIGHESTCOLUMN
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
LocationTrackBlockingOrderTableModel
public LocationTrackBlockingOrderTableModel()
-
-
Method Detail
-
getRowCount
public int getRowCount()
- Specified by:
getRowCount
in interfacejavax.swing.table.TableModel
-
getColumnCount
public int getColumnCount()
- Specified by:
getColumnCount
in interfacejavax.swing.table.TableModel
-
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
-
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
-
propertyChange
public void propertyChange(java.beans.PropertyChangeEvent e)
- Specified by:
propertyChange
in interfacejava.beans.PropertyChangeListener
-
removePropertyChangeTracks
protected void removePropertyChangeTracks()
-
dispose
public void dispose()
-
-