Class StlEditorPane.GroupModel
- java.lang.Object
-
- javax.swing.table.AbstractTableModel
-
- jmri.jmrix.openlcb.swing.stleditor.StlEditorPane.GroupModel
-
- All Implemented Interfaces:
java.io.Serializable
,javax.swing.table.TableModel
- Enclosing class:
- StlEditorPane
class StlEditorPane.GroupModel extends javax.swing.table.AbstractTableModel
TableModel for Group table entries.
-
-
Field Summary
Fields Modifier and Type Field Description static int
NAME_COLUMN
static int
ROW_COLUMN
-
Constructor Summary
Constructors Constructor Description GroupModel()
-
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 r, int c)
boolean
isCellEditable(int r, int c)
void
setValueAt(java.lang.Object type, int r, int c)
-
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
-
-
-
-
Field Detail
-
ROW_COLUMN
public static final int ROW_COLUMN
- See Also:
- Constant Field Values
-
NAME_COLUMN
public static final int NAME_COLUMN
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
GroupModel
GroupModel()
-
-
Method Detail
-
getRowCount
public int getRowCount()
-
getColumnCount
public int getColumnCount()
-
getColumnClass
public java.lang.Class<?> getColumnClass(int c)
- Specified by:
getColumnClass
in interfacejavax.swing.table.TableModel
- Overrides:
getColumnClass
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
-
getValueAt
public java.lang.Object getValueAt(int r, int c)
-
setValueAt
public void setValueAt(java.lang.Object type, int r, int c)
- Specified by:
setValueAt
in interfacejavax.swing.table.TableModel
- Overrides:
setValueAt
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
-
getPreferredWidth
public int getPreferredWidth(int col)
-
-