|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.table.AbstractTableModel
jmri.jmrix.sprog.sprogslotmon.SprogSlotMonDataModel
public class SprogSlotMonDataModel
Table data model for display of slot manager contents
| Field Summary | |
|---|---|
static int |
ADDRCOLUMN
|
static int |
DIRCOLUMN
|
static int |
NUMCOLUMN
|
static int |
SLOTCOLUMN
|
static int |
SPDCOLUMN
|
static int |
STATCOLUMN
|
| 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()
|
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(SprogSlot s)
|
void |
setValueAt(Object value,
int row,
int col)
|
void |
showAllSlots(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 ADDRCOLUMN
public static final int SPDCOLUMN
public static final int STATCOLUMN
public static final int DIRCOLUMN
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(SprogSlot s)
notifyChangedSlot in interface SprogSlotListenerpublic void showAllSlots(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 dispose()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||