|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.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 | |
---|---|
java.lang.Class<?> |
getColumnClass(int column)
Get the class of the object held in the column cells |
int |
getColumnCount()
Return the number of columns |
java.lang.String |
getColumnName(int column)
Get the column name |
int |
getRowCount()
Return the number of rows |
java.lang.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 java.lang.Object getValueAt(int row, int column)
public java.lang.String getColumnName(int column)
getColumnName
in interface javax.swing.table.TableModel
getColumnName
in class javax.swing.table.AbstractTableModel
column
- the column index
public java.lang.Class<?> getColumnClass(int column)
getColumnClass
in interface javax.swing.table.TableModel
getColumnClass
in class javax.swing.table.AbstractTableModel
column
- the column index
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |