ikrs.yuccasrv.ui
Class InetAddressComboBoxModel

java.lang.Object
  extended by javax.swing.AbstractListModel
      extended by ikrs.yuccasrv.ui.InetAddressComboBoxModel
All Implemented Interfaces:
java.io.Serializable, javax.swing.ComboBoxModel, javax.swing.ListModel

public class InetAddressComboBoxModel
extends javax.swing.AbstractListModel
implements javax.swing.ComboBoxModel

This class populates a combobox list model containing all available local inet addresses on the running system.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.AbstractListModel
listenerList
 
Constructor Summary
InetAddressComboBoxModel()
           
 
Method Summary
 java.net.InetAddress getElementAt(int index)
           
 java.net.InetAddress getSelectedAddress()
           
 java.net.InetAddress getSelectedItem()
           
 int getSize()
           
 void setSelectedItem(java.lang.Object anItem)
           
 
Methods inherited from class javax.swing.AbstractListModel
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.swing.ListModel
addListDataListener, removeListDataListener
 

Constructor Detail

InetAddressComboBoxModel

public InetAddressComboBoxModel()
                         throws java.net.SocketException
Throws:
java.net.SocketException
Method Detail

getSelectedAddress

public java.net.InetAddress getSelectedAddress()

getSelectedItem

public java.net.InetAddress getSelectedItem()
Specified by:
getSelectedItem in interface javax.swing.ComboBoxModel

setSelectedItem

public void setSelectedItem(java.lang.Object anItem)
Specified by:
setSelectedItem in interface javax.swing.ComboBoxModel

getElementAt

public java.net.InetAddress getElementAt(int index)
Specified by:
getElementAt in interface javax.swing.ListModel

getSize

public int getSize()
Specified by:
getSize in interface javax.swing.ListModel