jmri.jmrix.lenz.swing.stackmon
Class StackMonDataModel

Show UML class diagram
java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by jmri.jmrix.lenz.swing.stackmon.StackMonDataModel
All Implemented Interfaces:
java.io.Serializable, javax.swing.table.TableModel

public class StackMonDataModel
extends javax.swing.table.AbstractTableModel

Table data model for display of Lenz Command Station Stack information.

See Also:
Serialized Form

Field Summary
(package private)  java.util.ArrayList<java.lang.Integer> _addressList
           
(package private)  StackMonFrame _stackFrame
           
(package private)  java.util.Hashtable<java.lang.Integer,java.lang.String> _typeList
           
(package private) static org.slf4j.Logger log
           
protected  XNetTrafficController tc
           
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
StackMonDataModel(int row, int column, XNetSystemConnectionMemo memo)
           
 
Method Summary
 void clearData()
           
 java.lang.Class<?> getColumnClass(int col)
           
 int getColumnCount()
           
 java.lang.String getColumnName(int col)
           
 int getRowCount()
           
 java.lang.Object getValueAt(int row, int col)
           
(package private)  void initTable(javax.swing.JTable stackTable, StackMonFrame stackFrame)
           
 boolean isCellEditable(int row, int col)
           
 void setValueAt(java.lang.Object value, int row, int col)
           
 void updateData(java.lang.Integer address, java.lang.String type)
           
 
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

_stackFrame

StackMonFrame _stackFrame

_addressList

java.util.ArrayList<java.lang.Integer> _addressList

_typeList

java.util.Hashtable<java.lang.Integer,java.lang.String> _typeList

tc

protected XNetTrafficController tc

log

static org.slf4j.Logger log
Constructor Detail

StackMonDataModel

StackMonDataModel(int row,
                  int column,
                  XNetSystemConnectionMemo memo)
Method Detail

initTable

void initTable(javax.swing.JTable stackTable,
               StackMonFrame stackFrame)

getRowCount

public int getRowCount()

getColumnCount

public int getColumnCount()

getColumnName

public java.lang.String getColumnName(int col)
Specified by:
getColumnName in interface javax.swing.table.TableModel
Overrides:
getColumnName in class javax.swing.table.AbstractTableModel

getColumnClass

public java.lang.Class<?> getColumnClass(int col)
Specified by:
getColumnClass in interface javax.swing.table.TableModel
Overrides:
getColumnClass in class javax.swing.table.AbstractTableModel

isCellEditable

public boolean isCellEditable(int row,
                              int col)
Specified by:
isCellEditable in interface javax.swing.table.TableModel
Overrides:
isCellEditable in class javax.swing.table.AbstractTableModel

getValueAt

public java.lang.Object getValueAt(int row,
                                   int col)

setValueAt

public void setValueAt(java.lang.Object value,
                       int row,
                       int col)
Specified by:
setValueAt in interface javax.swing.table.TableModel
Overrides:
setValueAt in class javax.swing.table.AbstractTableModel

updateData

public void updateData(java.lang.Integer address,
                       java.lang.String type)

clearData

public void clearData()


Copyright © 1997-2014 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