Package jmri.jmrit.logixng.actions.swing
Class ShowDialogTableModel
- java.lang.Object
-
- javax.swing.table.AbstractTableModel
-
- jmri.jmrit.logixng.actions.swing.ShowDialogTableModel
-
- All Implemented Interfaces:
java.io.Serializable
,javax.swing.table.TableModel
public class ShowDialogTableModel extends javax.swing.table.AbstractTableModel
Table model for ShowDialog- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ShowDialogTableModel.CellRenderer
static class
ShowDialogTableModel.DataTypeCellEditor
-
Field Summary
Fields Modifier and Type Field Description static int
COLUMN_DATA
static int
COLUMN_DELETE
static int
COLUMN_DUMMY
static int
COLUMN_TYPE
-
Constructor Summary
Constructors Constructor Description ShowDialogTableModel(java.util.Collection<ShowDialog.Data> namedBeanReference)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add()
java.lang.Class<?>
getColumnClass(int col)
int
getColumnCount()
java.lang.String
getColumnName(int col)
java.util.List<ShowDialog.Data>
getDataList()
int
getRowCount()
java.lang.Object
getValueAt(int rowIndex, int columnIndex)
boolean
isCellEditable(int row, int col)
void
setColumnsForComboBoxes(javax.swing.JTable table)
void
setValueAt(java.lang.Object value, int rowIndex, int columnIndex)
-
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
-
-
-
-
Field Detail
-
COLUMN_TYPE
public static final int COLUMN_TYPE
- See Also:
- Constant Field Values
-
COLUMN_DATA
public static final int COLUMN_DATA
- See Also:
- Constant Field Values
-
COLUMN_DELETE
public static final int COLUMN_DELETE
- See Also:
- Constant Field Values
-
COLUMN_DUMMY
public static final int COLUMN_DUMMY
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ShowDialogTableModel
public ShowDialogTableModel(java.util.Collection<ShowDialog.Data> namedBeanReference)
-
-
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
-
setValueAt
public void setValueAt(java.lang.Object value, int rowIndex, int columnIndex)
- Specified by:
setValueAt
in interfacejavax.swing.table.TableModel
- Overrides:
setValueAt
in classjavax.swing.table.AbstractTableModel
-
getValueAt
public java.lang.Object getValueAt(int rowIndex, int columnIndex)
-
setColumnsForComboBoxes
public void setColumnsForComboBoxes(javax.swing.JTable table)
-
add
public void add()
-
getDataList
public java.util.List<ShowDialog.Data> getDataList()
-
-