Package jmri.jmrit.logixng.tools.swing
Class InlineLogixNGsTableModel
- java.lang.Object
-
- javax.swing.table.AbstractTableModel
-
- jmri.jmrit.logixng.tools.swing.InlineLogixNGsTableModel
-
- All Implemented Interfaces:
java.io.Serializable
,javax.swing.table.TableModel
public class InlineLogixNGsTableModel extends javax.swing.table.AbstractTableModel
Table model for inline LogixNGs.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
InlineLogixNGsTableModel.Menu
static class
InlineLogixNGsTableModel.MenuCellEditor
static class
InlineLogixNGsTableModel.MenuCellRenderer
-
Field Summary
Fields Modifier and Type Field Description static int
COLUMN_MENU
static int
COLUMN_NAMED_BEAN
static int
COLUMN_PANEL_NAME
static int
COLUMN_POS_X
static int
COLUMN_POS_Y
static int
COLUMN_POSITIONABLE_NAME
static int
COLUMN_SYSTEM_NAME
static int
COLUMN_USER_NAME
static int
NUM_COLUMNS
-
Constructor Summary
Constructors Constructor Description InlineLogixNGsTableModel()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Class<?>
getColumnClass(int col)
int
getColumnCount()
java.lang.String
getColumnName(int col)
static java.lang.String
getEditorName(InlineLogixNG inlineLogixNG)
java.util.function.Predicate<LogixNG>
getFilter()
Get the filter to select which beans to include in the table.java.util.List<LogixNG>
getLogixNGList()
static java.lang.String
getPositionableName(InlineLogixNG inlineLogixNG)
int
getRowCount()
static java.lang.String
getTypeName(InlineLogixNG inlineLogixNG)
java.lang.Object
getValueAt(int rowIndex, int columnIndex)
static int
getX(InlineLogixNG inlineLogixNG)
static int
getY(InlineLogixNG inlineLogixNG)
void
init()
boolean
isCellEditable(int row, int col)
void
setColumnForMenu(javax.swing.JTable table)
void
setFilter(java.util.function.Predicate<LogixNG> filter)
Set the filter to select which beans to include in the 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_SYSTEM_NAME
public static final int COLUMN_SYSTEM_NAME
- See Also:
- Constant Field Values
-
COLUMN_USER_NAME
public static final int COLUMN_USER_NAME
- See Also:
- Constant Field Values
-
COLUMN_PANEL_NAME
public static final int COLUMN_PANEL_NAME
- See Also:
- Constant Field Values
-
COLUMN_POSITIONABLE_NAME
public static final int COLUMN_POSITIONABLE_NAME
- See Also:
- Constant Field Values
-
COLUMN_NAMED_BEAN
public static final int COLUMN_NAMED_BEAN
- See Also:
- Constant Field Values
-
COLUMN_POS_X
public static final int COLUMN_POS_X
- See Also:
- Constant Field Values
-
COLUMN_POS_Y
public static final int COLUMN_POS_Y
- See Also:
- Constant Field Values
-
COLUMN_MENU
public static final int COLUMN_MENU
- See Also:
- Constant Field Values
-
NUM_COLUMNS
public static final int NUM_COLUMNS
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
InlineLogixNGsTableModel
public InlineLogixNGsTableModel()
-
-
Method Detail
-
init
public void init()
-
getLogixNGList
public java.util.List<LogixNG> getLogixNGList()
-
setFilter
public void setFilter(java.util.function.Predicate<LogixNG> filter)
Set the filter to select which beans to include in the table.- Parameters:
filter
- the filter
-
getFilter
public java.util.function.Predicate<LogixNG> getFilter()
Get the filter to select which beans to include in the table.- Returns:
- the filter
-
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)
-
getEditorName
public static java.lang.String getEditorName(InlineLogixNG inlineLogixNG)
-
getTypeName
public static java.lang.String getTypeName(InlineLogixNG inlineLogixNG)
-
getPositionableName
public static java.lang.String getPositionableName(InlineLogixNG inlineLogixNG)
-
getX
public static int getX(InlineLogixNG inlineLogixNG)
-
getY
public static int getY(InlineLogixNG inlineLogixNG)
-
setColumnForMenu
public void setColumnForMenu(javax.swing.JTable table)
-
-