Package jmri.jmrit.operations.routes
Class RoutesTableModel
- java.lang.Object
-
- javax.swing.table.AbstractTableModel
-
- jmri.jmrit.operations.routes.RoutesTableModel
-
- All Implemented Interfaces:
java.beans.PropertyChangeListener
,java.io.Serializable
,java.util.EventListener
,javax.swing.table.TableModel
public class RoutesTableModel extends javax.swing.table.AbstractTableModel implements java.beans.PropertyChangeListener
Table Model for edit of routes used by operations- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static int
COMMENT_COLUMN
static int
DEPARTS_COLUMN
static int
EDIT_COLUMN
static int
ID_COLUMN
static int
MAX_LENGTH_COLUMN
static int
MIN_LENGTH_COLUMN
static int
NAME_COLUMN
protected static java.lang.String
NEW_LINE
(package private) RouteEditFrame
ref
(package private) RouteManager
routemanager
int
SORTBYID
int
SORTBYNAME
static int
STATUS_COLUMN
(package private) java.util.List<Route>
sysList
-
Constructor Summary
Constructors Constructor Description RoutesTableModel()
-
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)
(package private) void
initTable(RoutesTableFrame frame, javax.swing.JTable table)
boolean
isCellEditable(int row, int col)
void
propertyChange(java.beans.PropertyChangeEvent e)
void
setSort(int sort)
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
-
routemanager
RouteManager routemanager
-
ID_COLUMN
public static final int ID_COLUMN
- See Also:
- Constant Field Values
-
NAME_COLUMN
public static final int NAME_COLUMN
- See Also:
- Constant Field Values
-
COMMENT_COLUMN
public static final int COMMENT_COLUMN
- See Also:
- Constant Field Values
-
DEPARTS_COLUMN
public static final int DEPARTS_COLUMN
- See Also:
- Constant Field Values
-
MIN_LENGTH_COLUMN
public static final int MIN_LENGTH_COLUMN
- See Also:
- Constant Field Values
-
MAX_LENGTH_COLUMN
public static final int MAX_LENGTH_COLUMN
- See Also:
- Constant Field Values
-
STATUS_COLUMN
public static final int STATUS_COLUMN
- See Also:
- Constant Field Values
-
EDIT_COLUMN
public static final int EDIT_COLUMN
- See Also:
- Constant Field Values
-
SORTBYNAME
public final int SORTBYNAME
- See Also:
- Constant Field Values
-
SORTBYID
public final int SORTBYID
- See Also:
- Constant Field Values
-
ref
RouteEditFrame ref
-
NEW_LINE
protected static final java.lang.String NEW_LINE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
RoutesTableModel
public RoutesTableModel()
-
-
Method Detail
-
setSort
public void setSort(int sort)
-
initTable
void initTable(RoutesTableFrame frame, javax.swing.JTable table)
-
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
-
dispose
public void dispose()
-
-