Package jmri.jmrit.logixng.util.swing
Class LogixNG_SelectEnumSwing_EnumDialog.TableModel<E extends java.lang.Enum<?>>
- java.lang.Object
-
- javax.swing.table.AbstractTableModel
-
- jmri.jmrit.logixng.util.swing.LogixNG_SelectEnumSwing_EnumDialog.TableModel<E>
-
- All Implemented Interfaces:
java.io.Serializable
,javax.swing.table.TableModel
- Enclosing class:
- LogixNG_SelectEnumSwing_EnumDialog<E extends java.lang.Enum<?>>
public static class LogixNG_SelectEnumSwing_EnumDialog.TableModel<E extends java.lang.Enum<?>> extends javax.swing.table.AbstractTableModel
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static int
COLUMN_DESCRIPTION
static int
COLUMN_NAME
-
Constructor Summary
Constructors Constructor Description TableModel(E[] enumArray)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Class<?>
getColumnClass(int col)
int
getColumnCount()
java.lang.String
getColumnName(int col)
int
getRowCount()
java.lang.Object
getValueAt(int rowIndex, int columnIndex)
boolean
isCellEditable(int row, int col)
-
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener, setValueAt
-
-
-
-
Field Detail
-
COLUMN_NAME
public static final int COLUMN_NAME
- See Also:
- Constant Field Values
-
COLUMN_DESCRIPTION
public static final int COLUMN_DESCRIPTION
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
TableModel
public TableModel(E[] enumArray)
-
-
Method Detail
-
getRowCount
public int getRowCount()
-
getColumnCount
public int getColumnCount()
-
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 rowIndex, int columnIndex)
-
-