Package jmri.jmrit.logixng.tools.swing
Class LogixNGEditor.ConditionalNGTableModel
- java.lang.Object
-
- javax.swing.table.AbstractTableModel
-
- jmri.jmrit.logixng.tools.swing.LogixNGEditor.ConditionalNGTableModel
-
- All Implemented Interfaces:
java.beans.PropertyChangeListener
,java.io.Serializable
,java.util.EventListener
,javax.swing.table.TableModel
- Enclosing class:
- LogixNGEditor
public final class LogixNGEditor.ConditionalNGTableModel extends javax.swing.table.AbstractTableModel implements java.beans.PropertyChangeListener
Table model for ConditionalNGs in the Edit LogixNG pane.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static int
BUTTON_COLUMN
static int
BUTTON_DEBUG_COLUMN
static int
BUTTON_DELETE_COLUMN
static int
BUTTON_EDIT_THREADS_COLUMN
static int
ENABLED_COLUMN
static int
NUM_COLUMNS
static int
SNAME_COLUMN
static int
STARTUP_COLUMN
static int
THREAD_COLUMN
static int
UNAME_COLUMN
-
Constructor Summary
Constructors Constructor Description ConditionalNGTableModel()
-
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 col)
boolean
isCellEditable(int r, int c)
(package private) boolean
matchPropertyName(java.beans.PropertyChangeEvent e)
Check if this property event is announcing a change this table should display.void
propertyChange(java.beans.PropertyChangeEvent e)
void
setShowStartupThreads(boolean showStartupThreads)
void
setValueAt(java.lang.Object value, int row, int col)
(package private) void
updateConditionalNGListeners()
-
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
-
-
-
-
Field Detail
-
SNAME_COLUMN
public static final int SNAME_COLUMN
- See Also:
- Constant Field Values
-
UNAME_COLUMN
public static final int UNAME_COLUMN
- See Also:
- Constant Field Values
-
THREAD_COLUMN
public static final int THREAD_COLUMN
- See Also:
- Constant Field Values
-
ENABLED_COLUMN
public static final int ENABLED_COLUMN
- See Also:
- Constant Field Values
-
STARTUP_COLUMN
public static final int STARTUP_COLUMN
- See Also:
- Constant Field Values
-
BUTTON_COLUMN
public static final int BUTTON_COLUMN
- See Also:
- Constant Field Values
-
BUTTON_DEBUG_COLUMN
public static final int BUTTON_DEBUG_COLUMN
- See Also:
- Constant Field Values
-
BUTTON_DELETE_COLUMN
public static final int BUTTON_DELETE_COLUMN
- See Also:
- Constant Field Values
-
BUTTON_EDIT_THREADS_COLUMN
public static final int BUTTON_EDIT_THREADS_COLUMN
- See Also:
- Constant Field Values
-
NUM_COLUMNS
public static final int NUM_COLUMNS
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ConditionalNGTableModel
public ConditionalNGTableModel()
-
-
Method Detail
-
updateConditionalNGListeners
void updateConditionalNGListeners()
-
setShowStartupThreads
public void setShowStartupThreads(boolean showStartupThreads)
-
propertyChange
public void propertyChange(java.beans.PropertyChangeEvent e)
- Specified by:
propertyChange
in interfacejava.beans.PropertyChangeListener
-
matchPropertyName
boolean matchPropertyName(java.beans.PropertyChangeEvent e)
Check if this property event is announcing a change this table should display.Note that events will come both from the NamedBeans and from the manager.
- Parameters:
e
- the event heard- Returns:
- true if a change in State or Appearance was heard
-
getColumnClass
public java.lang.Class<?> getColumnClass(int c)
- Specified by:
getColumnClass
in interfacejavax.swing.table.TableModel
- Overrides:
getColumnClass
in classjavax.swing.table.AbstractTableModel
-
getColumnCount
public int getColumnCount()
- Specified by:
getColumnCount
in interfacejavax.swing.table.TableModel
-
getRowCount
public int getRowCount()
- Specified by:
getRowCount
in interfacejavax.swing.table.TableModel
-
isCellEditable
public boolean isCellEditable(int r, int c)
- Specified by:
isCellEditable
in interfacejavax.swing.table.TableModel
- Overrides:
isCellEditable
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
-
getPreferredWidth
public int getPreferredWidth(int col)
-
getValueAt
public java.lang.Object getValueAt(int r, int col)
- Specified by:
getValueAt
in interfacejavax.swing.table.TableModel
-
setValueAt
public void setValueAt(java.lang.Object value, int row, int col)
- Specified by:
setValueAt
in interfacejavax.swing.table.TableModel
- Overrides:
setValueAt
in classjavax.swing.table.AbstractTableModel
-
-