Package jmri.jmrit.beantable
Class LRouteTableAction.RouteElementModel
- java.lang.Object
-
- javax.swing.table.AbstractTableModel
-
- jmri.jmrit.beantable.LRouteTableAction.RouteElementModel
-
- All Implemented Interfaces:
java.beans.PropertyChangeListener
,java.io.Serializable
,java.util.EventListener
,javax.swing.table.TableModel
- Direct Known Subclasses:
LRouteTableAction.AlignmentModel
,LRouteTableAction.RouteInputModel
,LRouteTableAction.RouteOutputModel
- Enclosing class:
- LRouteTableAction
public abstract class LRouteTableAction.RouteElementModel extends javax.swing.table.AbstractTableModel implements java.beans.PropertyChangeListener
Base Table model for selecting Route elements- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static int
INCLUDE_COLUMN
static int
SNAME_COLUMN
static int
STATE_COLUMN
static int
TYPE_COLUMN
static int
UNAME_COLUMN
-
Constructor Summary
Constructors Constructor Description RouteElementModel()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
dispose()
java.lang.Class<?>
getColumnClass(int c)
int
getColumnCount()
java.lang.String
getColumnName(int c)
boolean
isCellEditable(int r, int c)
abstract boolean
isInput()
void
propertyChange(java.beans.PropertyChangeEvent e)
-
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener, setValueAt
-
-
-
-
Field Detail
-
SNAME_COLUMN
public static final int SNAME_COLUMN
- See Also:
- Constant Field Values
-
UNAME_COLUMN
public static final int UNAME_COLUMN
- See Also:
- Constant Field Values
-
TYPE_COLUMN
public static final int TYPE_COLUMN
- See Also:
- Constant Field Values
-
INCLUDE_COLUMN
public static final int INCLUDE_COLUMN
- See Also:
- Constant Field Values
-
STATE_COLUMN
public static final int STATE_COLUMN
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
RouteElementModel
public RouteElementModel()
-
-
Method Detail
-
isInput
public abstract boolean isInput()
-
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
-
getColumnName
public java.lang.String getColumnName(int c)
- Specified by:
getColumnName
in interfacejavax.swing.table.TableModel
- Overrides:
getColumnName
in classjavax.swing.table.AbstractTableModel
-
isCellEditable
public boolean isCellEditable(int r, int c)
- Specified by:
isCellEditable
in interfacejavax.swing.table.TableModel
- Overrides:
isCellEditable
in classjavax.swing.table.AbstractTableModel
-
propertyChange
public void propertyChange(java.beans.PropertyChangeEvent e)
- Specified by:
propertyChange
in interfacejava.beans.PropertyChangeListener
-
dispose
public void dispose()
-
-