|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.table.AbstractTableModel
lejos.pc.tools.NXTConnectionModel
public class NXTConnectionModel
A table model for PC GUI programs. This is used by NXJBrowser and NXJMonitor to allow the user to choose which NXT to connect to.
Field Summary |
---|
Fields inherited from class javax.swing.table.AbstractTableModel |
---|
listenerList |
Constructor Summary | |
---|---|
NXTConnectionModel(NXTInfo[] nxts,
int numNXTs)
Create the model from an array of NXTInfo. |
Method Summary | |
---|---|
Class<?> |
getColumnClass(int column)
Get the class of the object held in the column cells |
int |
getColumnCount()
Return the number of columns |
String |
getColumnName(int column)
Get the column name |
int |
getRowCount()
Return the number of rows |
Object |
getValueAt(int row,
int column)
Get the data in a specific cell |
void |
setConnected(int row,
NXTConnectionState state)
|
void |
setData(NXTInfo[] nxts,
int numNXTs)
Update the data in the model. |
Methods inherited from class javax.swing.table.AbstractTableModel |
---|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, 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 |
---|
public NXTConnectionModel(NXTInfo[] nxts, int numNXTs)
nxts
- the NXTInfo arraynumNXTs
- the number of NXTs in the arrayMethod Detail |
---|
public void setData(NXTInfo[] nxts, int numNXTs)
nxts
- the NXTInfo arraynumNXTs
- the number of NXTspublic void setConnected(int row, NXTConnectionState state)
public int getRowCount()
public int getColumnCount()
public Object getValueAt(int row, int column)
public String getColumnName(int column)
getColumnName
in interface TableModel
getColumnName
in class AbstractTableModel
column
- the column index
public Class<?> getColumnClass(int column)
getColumnClass
in interface TableModel
getColumnClass
in class AbstractTableModel
column
- the column index
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |