Package jmri.jmrit.logixng.actions.swing
Class ListenOnBeansTableModel
- java.lang.Object
-
- javax.swing.table.AbstractTableModel
-
- jmri.jmrit.logixng.actions.swing.ListenOnBeansTableModel
-
- All Implemented Interfaces:
java.io.Serializable
,javax.swing.table.TableModel
public class ListenOnBeansTableModel extends javax.swing.table.AbstractTableModel
Table model for ListenOnBeans named beans- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ListenOnBeansTableModel.CellRenderer
class
ListenOnBeansTableModel.NamedBeanCellEditor
static class
ListenOnBeansTableModel.NamedBeanTypeCellEditor
-
Field Summary
Fields Modifier and Type Field Description static int
COLUMN_BEAN_ALL
static int
COLUMN_BEAN_NAME
static int
COLUMN_BEAN_TYPE
static int
COLUMN_DELETE
static int
COLUMN_DUMMY
-
Constructor Summary
Constructors Constructor Description ListenOnBeansTableModel(java.util.Collection<ActionListenOnBeans.NamedBeanReference> 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)
ListenOnBeansTableModel.NamedBeanCellEditor
getNamedBeanCellEditor()
java.util.List<ActionListenOnBeans.NamedBeanReference>
getReferences()
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_BEAN_TYPE
public static final int COLUMN_BEAN_TYPE
- See Also:
- Constant Field Values
-
COLUMN_BEAN_NAME
public static final int COLUMN_BEAN_NAME
- See Also:
- Constant Field Values
-
COLUMN_BEAN_ALL
public static final int COLUMN_BEAN_ALL
- 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
-
ListenOnBeansTableModel
public ListenOnBeansTableModel(java.util.Collection<ActionListenOnBeans.NamedBeanReference> 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()
-
getReferences
public java.util.List<ActionListenOnBeans.NamedBeanReference> getReferences()
-
getNamedBeanCellEditor
public ListenOnBeansTableModel.NamedBeanCellEditor getNamedBeanCellEditor()
-
-