org.apache.log4j.chainsaw.zeroconf
Class ZeroConfDeviceModel

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by org.apache.log4j.chainsaw.zeroconf.ZeroConfDeviceModel
All Implemented Interfaces:
java.io.Serializable, java.util.EventListener, javax.jmdns.ServiceListener, javax.swing.table.TableModel

public class ZeroConfDeviceModel
extends javax.swing.table.AbstractTableModel
implements javax.jmdns.ServiceListener

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
ZeroConfDeviceModel()
           
 
Method Summary
 java.lang.Class getColumnClass(int columnIndex)
           
 int getColumnCount()
           
 java.lang.String getColumnName(int column)
           
 int getRowCount()
           
 javax.jmdns.ServiceInfo getServiceInfoAtRow(int row)
           
 java.lang.Object getValueAt(int rowIndex, int columnIndex)
           
 boolean isCellEditable(int rowIndex, int columnIndex)
           
 void serviceAdded(javax.jmdns.ServiceEvent event)
           
 void serviceRemoved(javax.jmdns.ServiceEvent event)
           
 void serviceResolved(javax.jmdns.ServiceEvent event)
           
 void setValueAt(java.lang.Object aValue, int rowIndex, int columnIndex)
           
 void setZeroConfPreferenceModel(ZeroConfPreferenceModel zeroConfPreferenceModel)
           
 
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
 

Constructor Detail

ZeroConfDeviceModel

public ZeroConfDeviceModel()
Method Detail

getRowCount

public int getRowCount()
Specified by:
getRowCount in interface javax.swing.table.TableModel

getColumnCount

public int getColumnCount()
Specified by:
getColumnCount in interface javax.swing.table.TableModel

getServiceInfoAtRow

public javax.jmdns.ServiceInfo getServiceInfoAtRow(int row)

getValueAt

public java.lang.Object getValueAt(int rowIndex,
                                   int columnIndex)
Specified by:
getValueAt in interface javax.swing.table.TableModel

serviceAdded

public void serviceAdded(javax.jmdns.ServiceEvent event)
Specified by:
serviceAdded in interface javax.jmdns.ServiceListener

serviceRemoved

public void serviceRemoved(javax.jmdns.ServiceEvent event)
Specified by:
serviceRemoved in interface javax.jmdns.ServiceListener

serviceResolved

public void serviceResolved(javax.jmdns.ServiceEvent event)
Specified by:
serviceResolved in interface javax.jmdns.ServiceListener

setZeroConfPreferenceModel

public void setZeroConfPreferenceModel(ZeroConfPreferenceModel zeroConfPreferenceModel)

getColumnName

public java.lang.String getColumnName(int column)
Specified by:
getColumnName in interface javax.swing.table.TableModel
Overrides:
getColumnName in class javax.swing.table.AbstractTableModel

isCellEditable

public boolean isCellEditable(int rowIndex,
                              int columnIndex)
Specified by:
isCellEditable in interface javax.swing.table.TableModel
Overrides:
isCellEditable in class javax.swing.table.AbstractTableModel

getColumnClass

public java.lang.Class getColumnClass(int columnIndex)
Specified by:
getColumnClass in interface javax.swing.table.TableModel
Overrides:
getColumnClass in class javax.swing.table.AbstractTableModel

setValueAt

public void setValueAt(java.lang.Object aValue,
                       int rowIndex,
                       int columnIndex)
Specified by:
setValueAt in interface javax.swing.table.TableModel
Overrides:
setValueAt in class javax.swing.table.AbstractTableModel


Copyright © 2007 Apache Software Foundation. All Rights Reserved.