jmri.jmrix.acela.nodeconfig
Class NodeConfigFrame.SensorConfigModel

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by jmri.jmrix.acela.nodeconfig.NodeConfigModel
          extended by jmri.jmrix.acela.nodeconfig.NodeConfigFrame.SensorConfigModel
All Implemented Interfaces:
Serializable, TableModel
Enclosing class:
NodeConfigFrame

public class NodeConfigFrame.SensorConfigModel
extends NodeConfigModel

Set up table for selecting sensor default parameters for Sentry or TBrain nodes

See Also:
Serialized Form

Field Summary
static int POLARITY_COLUMN
           
static int SENSORADDRESS_COLUMN
           
static int SENSORCIRCUITADDRESS_COLUMN
           
static int THRESHOLD_COLUMN
           
static int TYPE_COLUMN
           
 
Fields inherited from class jmri.jmrix.acela.nodeconfig.NodeConfigModel
editmode, numrows
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
NodeConfigFrame.SensorConfigModel()
           
 
Method Summary
 Class<?> getColumnClass(int c)
           
 int getColumnCount()
           
 String getColumnName(int c)
           
 boolean getEditMode()
           
 int getRowCount()
           
 Object getValueAt(int r, int c)
           
 boolean isCellEditable(int r, int c)
           
 void setEditMode(boolean b)
           
 void setNumRows(int r)
           
 void setValueAt(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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SENSORCIRCUITADDRESS_COLUMN

public static final int SENSORCIRCUITADDRESS_COLUMN
See Also:
Constant Field Values

TYPE_COLUMN

public static final int TYPE_COLUMN
See Also:
Constant Field Values

POLARITY_COLUMN

public static final int POLARITY_COLUMN
See Also:
Constant Field Values

THRESHOLD_COLUMN

public static final int THRESHOLD_COLUMN
See Also:
Constant Field Values

SENSORADDRESS_COLUMN

public static final int SENSORADDRESS_COLUMN
See Also:
Constant Field Values
Constructor Detail

NodeConfigFrame.SensorConfigModel

public NodeConfigFrame.SensorConfigModel()
Method Detail

getColumnName

public String getColumnName(int c)
Specified by:
getColumnName in interface TableModel
Overrides:
getColumnName in class AbstractTableModel

getColumnClass

public Class<?> getColumnClass(int c)
Specified by:
getColumnClass in interface TableModel
Overrides:
getColumnClass in class AbstractTableModel

getColumnCount

public int getColumnCount()

getRowCount

public int getRowCount()
Specified by:
getRowCount in interface TableModel
Overrides:
getRowCount in class NodeConfigModel

setNumRows

public void setNumRows(int r)
Overrides:
setNumRows in class NodeConfigModel

setEditMode

public void setEditMode(boolean b)
Overrides:
setEditMode in class NodeConfigModel

getEditMode

public boolean getEditMode()
Overrides:
getEditMode in class NodeConfigModel

getValueAt

public Object getValueAt(int r,
                         int c)

setValueAt

public void setValueAt(Object type,
                       int r,
                       int c)
Specified by:
setValueAt in interface TableModel
Overrides:
setValueAt in class AbstractTableModel

isCellEditable

public boolean isCellEditable(int r,
                              int c)
Specified by:
isCellEditable in interface TableModel
Overrides:
isCellEditable in class AbstractTableModel


Copyright © 1997 - 2011 JMRI Community.
JMRI, DecoderPro, PanelPro, SoundPro, DispatcherPro and associated logos are our trademarks.

Additional information on copyright, trademarks and licenses is linked here.
Site hosted by: Get JMRI Model Railroad Interface at SourceForge.net. Fast, secure and Free Open Source software downloads