|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.AbstractListModel javax.swing.DefaultListModel core.ContactList
A DefaultListModel of Contact objects representing information gathered by this user about other users on the network.
Constructor Summary | |
ContactList()
Default Constructor |
Method Summary | |
boolean |
contains(java.lang.String address)
Returns true if the ContactList contains the Contact associated with a given virtual address. |
Contact |
getContact(java.lang.String address)
Looks up a Contact in the ContactList by its virtual address. |
void |
loadListFromFile(java.io.File listFile)
Loads the ContactList from a file on disk. |
void |
saveContactList(java.io.File listFile)
Saves a ContactList to the File specified. |
void |
update()
Updates the gui element associated with this ContactList |
Methods inherited from class javax.swing.DefaultListModel |
add, addElement, capacity, clear, contains, copyInto, elementAt, elements, ensureCapacity, firstElement, get, getElementAt, getSize, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, removeAllElements, removeElement, removeElementAt, removeRange, set, setElementAt, setSize, size, toArray, toString, trimToSize |
Methods inherited from class javax.swing.AbstractListModel |
addListDataListener, getListDataListeners, getListeners, removeListDataListener |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ContactList()
Method Detail |
public Contact getContact(java.lang.String address)
address
- the virtual address of a contact in the contact list.
public boolean contains(java.lang.String address)
address
- the virtual address
public void loadListFromFile(java.io.File listFile)
listFile
- the File where a ContactList is stored (usually contacts.xml).public void saveContactList(java.io.File listFile)
listFile
- the File to save the ContactList to (usually contacts.xml).public void update()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |