jmri.jmrit.symbolicprog
Class IndexedCvTableModel
java.lang.Object
javax.swing.table.AbstractTableModel
jmri.jmrit.symbolicprog.IndexedCvTableModel
- All Implemented Interfaces:
- ActionListener, PropertyChangeListener, Serializable, EventListener, TableModel
public class IndexedCvTableModel
- extends AbstractTableModel
- implements ActionListener, PropertyChangeListener
Table data model for display of IndexedCvValues in symbolic programmer.
This represents the contents of a single decoder, so the
Programmer used to access it is a data member.
- See Also:
- Serialized Form
|
Field Summary |
(package private) static org.slf4j.Logger |
log
|
(package private) static int |
MAXCVNUM
|
|
Method Summary |
void |
actionPerformed(ActionEvent e)
|
int |
addIndxCV(int row,
String cvName,
int piCv,
int piVal,
int siCv,
int siVal,
int iCv,
boolean readOnly,
boolean infoOnly,
boolean writeOnly)
return is the current row or the row of an existing Indexed CV |
Vector<CvValue> |
allIndxCvVector()
|
boolean |
decoderDirty()
|
void |
dispose()
|
Class<?> |
getColumnClass(int col)
|
int |
getColumnCount()
|
String |
getColumnName(int col)
|
int |
getCvByName(String name)
|
CvValue |
getCvByNumber(int row)
|
CvValue |
getCvByRow(int row)
|
CvValue |
getMatchingIndexedCV(String name)
Find the existing IndexedCV
that matches a particular name |
String |
getName(int row)
|
Programmer |
getProgrammer()
Gives access to the programmer used to reach these Indexed CVs,
so you can check on mode, capabilities, etc. |
int |
getRowCount()
|
JLabel |
getStatusLabel()
|
String |
getValString(int row)
|
Object |
getValueAt(int row,
int col)
|
void |
indexedCompare()
|
void |
indexedRead()
|
void |
indexedWrite()
|
boolean |
isCellEditable(int row,
int col)
|
void |
propertyChange(PropertyChangeEvent e)
|
void |
setValueAt(Object value,
int row,
int col)
|
| 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 |
MAXCVNUM
static final int MAXCVNUM
- See Also:
- Constant Field Values
log
static org.slf4j.Logger log
IndexedCvTableModel
public IndexedCvTableModel(JLabel status,
Programmer pProgrammer)
allIndxCvVector
public Vector<CvValue> allIndxCvVector()
getStatusLabel
public JLabel getStatusLabel()
getMatchingIndexedCV
public CvValue getMatchingIndexedCV(String name)
- Find the existing IndexedCV
that matches a particular name
getProgrammer
public Programmer getProgrammer()
- Gives access to the programmer used to reach these Indexed CVs,
so you can check on mode, capabilities, etc.
- Returns:
- Programmer object for the Indexed CVs
getRowCount
public int getRowCount()
- Specified by:
getRowCount in interface TableModel
getColumnCount
public int getColumnCount()
- Specified by:
getColumnCount in interface TableModel
getColumnName
public String getColumnName(int col)
- Specified by:
getColumnName in interface TableModel- Overrides:
getColumnName in class AbstractTableModel
getColumnClass
public Class<?> getColumnClass(int col)
- Specified by:
getColumnClass in interface TableModel- Overrides:
getColumnClass in class AbstractTableModel
isCellEditable
public boolean isCellEditable(int row,
int col)
- Specified by:
isCellEditable in interface TableModel- Overrides:
isCellEditable in class AbstractTableModel
getName
public String getName(int row)
getValString
public String getValString(int row)
getCvByName
public int getCvByName(String name)
getCvByRow
public CvValue getCvByRow(int row)
getCvByNumber
public CvValue getCvByNumber(int row)
getValueAt
public Object getValueAt(int row,
int col)
- Specified by:
getValueAt in interface TableModel
setValueAt
public void setValueAt(Object value,
int row,
int col)
- Specified by:
setValueAt in interface TableModel- Overrides:
setValueAt in class AbstractTableModel
actionPerformed
public void actionPerformed(ActionEvent e)
- Specified by:
actionPerformed in interface ActionListener
indexedRead
public void indexedRead()
indexedWrite
public void indexedWrite()
indexedCompare
public void indexedCompare()
propertyChange
public void propertyChange(PropertyChangeEvent e)
- Specified by:
propertyChange in interface PropertyChangeListener
addIndxCV
public int addIndxCV(int row,
String cvName,
int piCv,
int piVal,
int siCv,
int siVal,
int iCv,
boolean readOnly,
boolean infoOnly,
boolean writeOnly)
- return is the current row or the row of an existing Indexed CV
decoderDirty
public boolean decoderDirty()
dispose
public void dispose()
Copyright © 1997-2013 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: