|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.table.AbstractTableModel
jmri.jmrix.loconet.slotmon.SlotMonDataModel
public class SlotMonDataModel
Table data model for display of slot manager contents
| Field Summary | |
|---|---|
static int |
ADDRCOLUMN
|
static int |
CONSCOLUMN
|
static int |
DIRCOLUMN
|
static int |
DISPCOLUMN
|
static int |
ESTOPCOLUMN
|
static int |
F0COLUMN
|
static int |
F1COLUMN
|
static int |
F2COLUMN
|
static int |
F3COLUMN
|
static int |
F4COLUMN
|
static int |
F5COLUMN
|
static int |
F6COLUMN
|
static int |
F7COLUMN
|
static int |
F8COLUMN
|
static int |
NUMCOLUMN
|
static int |
SLOTCOLUMN
|
static int |
SPDCOLUMN
|
static int |
STATCOLUMN
|
static int |
THROTCOLUMN
|
static int |
TYPECOLUMN
|
| Fields inherited from class javax.swing.table.AbstractTableModel |
|---|
listenerList |
| Method Summary | |
|---|---|
void |
configureTable(JTable slotTable)
Configure a table to have our standard rows and columns. |
void |
dispose()
|
void |
estopAll()
This is a convenience method that makes it easier for classes using this model to set all in-use slots to emergency stop |
Class<?> |
getColumnClass(int col)
|
int |
getColumnCount()
|
String |
getColumnName(int col)
|
int |
getPreferredWidth(int col)
|
int |
getRowCount()
Returns the number of rows to be displayed. |
Object |
getValueAt(int row,
int col)
|
boolean |
isCellEditable(int row,
int col)
|
void |
notifyChangedSlot(LocoNetSlot s)
|
void |
setValueAt(Object value,
int row,
int col)
|
void |
showAllSlots(boolean val)
|
void |
showSystemSlots(boolean val)
|
protected int |
slotNum(int row)
Returns slot number for a specific row. |
| 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 |
|---|
public static final int SLOTCOLUMN
public static final int ESTOPCOLUMN
public static final int ADDRCOLUMN
public static final int SPDCOLUMN
public static final int TYPECOLUMN
public static final int STATCOLUMN
public static final int DISPCOLUMN
public static final int CONSCOLUMN
public static final int THROTCOLUMN
public static final int DIRCOLUMN
public static final int F0COLUMN
public static final int F1COLUMN
public static final int F2COLUMN
public static final int F3COLUMN
public static final int F4COLUMN
public static final int F5COLUMN
public static final int F6COLUMN
public static final int F7COLUMN
public static final int F8COLUMN
public static final int NUMCOLUMN
| Method Detail |
|---|
public int getRowCount()
This should probably use a local cache instead of counting/searching each time.
getRowCount in interface TableModelpublic int getColumnCount()
getColumnCount in interface TableModelpublic String getColumnName(int col)
getColumnName in interface TableModelgetColumnName in class AbstractTableModelpublic Class<?> getColumnClass(int col)
getColumnClass in interface TableModelgetColumnClass in class AbstractTableModel
public boolean isCellEditable(int row,
int col)
isCellEditable in interface TableModelisCellEditable in class AbstractTableModel
public Object getValueAt(int row,
int col)
getValueAt in interface TableModelpublic int getPreferredWidth(int col)
public void setValueAt(Object value,
int row,
int col)
setValueAt in interface TableModelsetValueAt in class AbstractTableModelpublic void configureTable(JTable slotTable)
slotTable - public void notifyChangedSlot(LocoNetSlot s)
notifyChangedSlot in interface SlotListenerpublic void showAllSlots(boolean val)
public void showSystemSlots(boolean val)
protected int slotNum(int row)
This should probably use a local cache instead of counting/searching each time.
row - Row number in the displayed tablepublic void estopAll()
public void dispose()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||