Package jmri.jmrit.conditional
Class ConditionalCopyFrame.ActionCopyTableModel
- java.lang.Object
-
- javax.swing.table.AbstractTableModel
-
- jmri.jmrit.conditional.ConditionalCopyFrame.CopyTableModel
-
- jmri.jmrit.conditional.ConditionalCopyFrame.ActionCopyTableModel
-
- All Implemented Interfaces:
java.io.Serializable
,javax.swing.table.TableModel
- Enclosing class:
- ConditionalCopyFrame
class ConditionalCopyFrame.ActionCopyTableModel extends ConditionalCopyFrame.CopyTableModel
-
-
Field Summary
Fields Modifier and Type Field Description (package private) boolean
_isActionTable
(package private) boolean
_isComboTable
(package private) static int
DELETE_COLUMN
(package private) static int
DESCRIPTION_COLUMN
(package private) static int
NAME_COLUMN
-
Constructor Summary
Constructors Constructor Description ActionCopyTableModel(boolean isAction, boolean isCombo)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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 row, int col)
boolean
isCellEditable(int r, int col)
void
setValueAt(java.lang.Object value, int row, int col)
-
Methods inherited from class jmri.jmrit.conditional.ConditionalCopyFrame.CopyTableModel
isActionTable, isComboTable
-
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
-
-
-
-
Field Detail
-
NAME_COLUMN
static final int NAME_COLUMN
- See Also:
- Constant Field Values
-
DESCRIPTION_COLUMN
static final int DESCRIPTION_COLUMN
- See Also:
- Constant Field Values
-
DELETE_COLUMN
static final int DELETE_COLUMN
- See Also:
- Constant Field Values
-
_isActionTable
boolean _isActionTable
-
_isComboTable
boolean _isComboTable
-
-
Constructor Detail
-
ActionCopyTableModel
ActionCopyTableModel(boolean isAction, boolean isCombo)
-
-
Method Detail
-
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()
-
isCellEditable
public boolean isCellEditable(int r, int col)
- 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)
-
getRowCount
public int getRowCount()
-
getValueAt
public java.lang.Object getValueAt(int row, int col)
-
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
-
-