|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.table.AbstractTableModel
com.valhalla.jbother.ServiceTableModel
The table model for the ServiceDiscoveryDialog table
Field Summary |
Fields inherited from class javax.swing.table.AbstractTableModel |
listenerList |
Constructor Summary | |
ServiceTableModel(ServiceDiscoveryDialog dialog)
Default Constructor |
Method Summary | |
void |
addItem(java.lang.String[] item)
Adds a row to the table |
void |
clear()
Clears the table |
int |
getColumnCount()
gets the number of columns in this table |
java.lang.String |
getColumnName(int column)
Returns the name of a specific column |
java.lang.String |
getFeatures(int row)
gets the features of a specific item (row) |
int |
getRowCount()
Gets the number of rows in the table |
java.lang.Object |
getValueAt(int row,
int column)
Get the Object for a specific coordinate in the table |
void |
setDisco(int index,
org.jivesoftware.smackx.packet.DiscoverInfo disco)
Sets the disco information once it's found |
void |
setItemInfo(int row,
java.lang.String name,
java.lang.String category)
Sets information about a specific row |
void |
setTable(javax.swing.JTable table)
Sets the table value for this model |
Methods inherited from class javax.swing.table.AbstractTableModel |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, 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 ServiceTableModel(ServiceDiscoveryDialog dialog)
dialog
- the ServiceDiscoveryDialog that contains this tableMethod Detail |
public void setTable(javax.swing.JTable table)
table
- the table that this model representspublic int getColumnCount()
public int getRowCount()
public java.lang.String getColumnName(int column)
column
- the column who's name is wanted
public java.lang.Object getValueAt(int row, int column)
row
- the row of the itemcolumn
- the column of the item
public java.lang.String getFeatures(int row)
row
- the index of the row you want information for
public void setDisco(int index, org.jivesoftware.smackx.packet.DiscoverInfo disco)
index
- the index of the row you want to set the information aboutdisco
- the information about the rowpublic void addItem(java.lang.String[] item)
item
- the array containing the item to addpublic void setItemInfo(int row, java.lang.String name, java.lang.String category)
row
- the row to setname
- the new namecategory
- the category of the rowpublic void clear()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |