Package jmri.jmrit.operations.automation
Class AutomationsTableModel
- java.lang.Object
-
- javax.swing.table.AbstractTableModel
-
- jmri.jmrit.operations.automation.AutomationsTableModel
-
- All Implemented Interfaces:
java.beans.PropertyChangeListener
,java.io.Serializable
,java.util.EventListener
,javax.swing.table.TableModel
public class AutomationsTableModel extends javax.swing.table.AbstractTableModel implements java.beans.PropertyChangeListener
Table model allowing the edit and status of an automation used by operations.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.util.List<Automation>
_sysList
(package private) javax.swing.JTable
_table
(package private) java.util.Hashtable<java.lang.String,AutomationTableFrame>
automationEditFrames
(package private) AutomationManager
automationManager
int
SORTBYID
int
SORTBYNAME
-
Constructor Summary
Constructors Constructor Description AutomationsTableModel()
-
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(AutomationsTableFrame 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
-
automationManager
AutomationManager automationManager
-
SORTBYNAME
public final int SORTBYNAME
- See Also:
- Constant Field Values
-
SORTBYID
public final int SORTBYID
- See Also:
- Constant Field Values
-
_sysList
java.util.List<Automation> _sysList
-
_table
javax.swing.JTable _table
-
automationEditFrames
java.util.Hashtable<java.lang.String,AutomationTableFrame> automationEditFrames
-
-
Constructor Detail
-
AutomationsTableModel
public AutomationsTableModel()
-
-
Method Detail
-
setSort
public void setSort(int sort)
-
initTable
protected void initTable(AutomationsTableFrame 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
-
dispose
public void dispose()
-
propertyChange
public void propertyChange(java.beans.PropertyChangeEvent e)
- Specified by:
propertyChange
in interfacejava.beans.PropertyChangeListener
-
-