Package jmri.jmrit.beantable
Class TransitTableAction.SectionTableModel
- java.lang.Object
-
- javax.swing.table.AbstractTableModel
-
- jmri.jmrit.beantable.TransitTableAction.SectionTableModel
-
- All Implemented Interfaces:
java.beans.PropertyChangeListener
,java.io.Serializable
,java.util.EventListener
,javax.swing.table.TableModel
- Enclosing class:
- TransitTableAction
public class TransitTableAction.SectionTableModel extends javax.swing.table.AbstractTableModel implements java.beans.PropertyChangeListener
Table model for Sections in Create/Edit Transit window.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static int
ACTION_COLUMN
static int
ALTERNATE_COLUMN
static int
NUMBER_OF_COLUMNS
static int
SAFE_COLUMN
static int
SEC_DIRECTION_COLUMN
static int
SECTIONNAME_COLUMN
static int
SEQUENCE_COLUMN
static int
STOPALLOCATING_SENSOR
-
Constructor Summary
Constructors Constructor Description SectionTableModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) void
addPcl()
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)
boolean
isCellEditable(int r, int c)
void
propertyChange(java.beans.PropertyChangeEvent e)
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
-
SEQUENCE_COLUMN
public static final int SEQUENCE_COLUMN
- See Also:
- Constant Field Values
-
SECTIONNAME_COLUMN
public static final int SECTIONNAME_COLUMN
- See Also:
- Constant Field Values
-
ACTION_COLUMN
public static final int ACTION_COLUMN
- See Also:
- Constant Field Values
-
SEC_DIRECTION_COLUMN
public static final int SEC_DIRECTION_COLUMN
- See Also:
- Constant Field Values
-
ALTERNATE_COLUMN
public static final int ALTERNATE_COLUMN
- See Also:
- Constant Field Values
-
SAFE_COLUMN
public static final int SAFE_COLUMN
- See Also:
- Constant Field Values
-
STOPALLOCATING_SENSOR
public static final int STOPALLOCATING_SENSOR
- See Also:
- Constant Field Values
-
NUMBER_OF_COLUMNS
public static final int NUMBER_OF_COLUMNS
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SectionTableModel
public SectionTableModel()
-
-
Method Detail
-
addPcl
final void addPcl()
-
propertyChange
public void propertyChange(java.beans.PropertyChangeEvent e)
- Specified by:
propertyChange
in interfacejava.beans.PropertyChangeListener
-
getColumnClass
public java.lang.Class<?> getColumnClass(int c)
- Specified by:
getColumnClass
in interfacejavax.swing.table.TableModel
- Overrides:
getColumnClass
in classjavax.swing.table.AbstractTableModel
-
getColumnCount
public int getColumnCount()
- Specified by:
getColumnCount
in interfacejavax.swing.table.TableModel
-
getRowCount
public int getRowCount()
- Specified by:
getRowCount
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
-
getColumnName
public java.lang.String getColumnName(int col)
- Specified by:
getColumnName
in interfacejavax.swing.table.TableModel
- Overrides:
getColumnName
in classjavax.swing.table.AbstractTableModel
-
getPreferredWidth
public int getPreferredWidth(int col)
-
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 value, int row, int col)
- Specified by:
setValueAt
in interfacejavax.swing.table.TableModel
- Overrides:
setValueAt
in classjavax.swing.table.AbstractTableModel
-
dispose
public void dispose()
-
-