jmri.jmrit.symbolicprog
Class ResetTableModel

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by jmri.jmrit.symbolicprog.ResetTableModel
All Implemented Interfaces:
ActionListener, PropertyChangeListener, Serializable, EventListener, TableModel

public class ResetTableModel
extends AbstractTableModel
implements ActionListener, PropertyChangeListener

Creates a table of the available factory resets available for a particular decoder.

Author:
Howard G. Penny Copyright (C) 2005
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
ResetTableModel(JLabel status, Programmer pProgrammer)
           
 
Method Summary
 void actionPerformed(ActionEvent e)
           
 void dispose()
           
 int getColumnCount()
           
 int getRowCount()
           
 Object getValueAt(int row, int col)
           
 void indexedWrite()
           
protected  void performReset(int row)
           
 void propertyChange(PropertyChangeEvent e)
           
 void setIndxRow(int row, Element e)
           
 void setPiCv(int piCv)
           
 void setRow(int row, Element e)
           
 void setSiCv(int siCv)
           
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getColumnName, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResetTableModel

public ResetTableModel(JLabel status,
                       Programmer pProgrammer)
Method Detail

getRowCount

public int getRowCount()
Specified by:
getRowCount in interface TableModel

getColumnCount

public int getColumnCount()
Specified by:
getColumnCount in interface TableModel

getValueAt

public Object getValueAt(int row,
                         int col)
Specified by:
getValueAt in interface TableModel

setPiCv

public void setPiCv(int piCv)

setSiCv

public void setSiCv(int siCv)

setRow

public void setRow(int row,
                   Element e)

setIndxRow

public void setIndxRow(int row,
                       Element e)

performReset

protected void performReset(int row)

actionPerformed

public void actionPerformed(ActionEvent e)
Specified by:
actionPerformed in interface ActionListener

indexedWrite

public void indexedWrite()

propertyChange

public void propertyChange(PropertyChangeEvent e)
Specified by:
propertyChange in interface PropertyChangeListener

dispose

public void dispose()


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