gui
Class ContactListBox
java.lang.Object
core.EventNotifier
gui.ContactListBox
- All Implemented Interfaces:
- java.util.EventListener, java.awt.event.MouseListener
- public class ContactListBox
- extends EventNotifier
- implements java.awt.event.MouseListener
This will serve as the "main" window of the app and will be responsible
for handling events originating from the contact list as well as keeping
track of its children (ChatBox windows).
- Author:
- cooperse, hoela, hoele
Constructor Summary |
ContactListBox(java.lang.String title,
Contact me,
Prefs prefs)
Creates a new ContactListBox instance, loads our contact list,
and displays it on screen. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ContactListBox
public ContactListBox(java.lang.String title,
Contact me,
Prefs prefs)
- Creates a new ContactListBox instance, loads our contact list,
and displays it on screen.
- Parameters:
title
- the title to be displayed at the top of the contact list.me
- the Contact object representing us.prefs
- this client's preferences.
search
public void search(SearchMessage origSearch)
- This is called from the MessangerApp for SearchMessages
- Parameters:
origSearch
- The SearchMessage we are handling
removeContact
public void removeContact()
mouseClicked
public void mouseClicked(java.awt.event.MouseEvent e)
- Specified by:
mouseClicked
in interface java.awt.event.MouseListener
getContactList
public ContactList getContactList()
- Returns:
- Returns the contactList.
save
public void save()
mouseEntered
public void mouseEntered(java.awt.event.MouseEvent e)
- Specified by:
mouseEntered
in interface java.awt.event.MouseListener
mouseExited
public void mouseExited(java.awt.event.MouseEvent e)
- Specified by:
mouseExited
in interface java.awt.event.MouseListener
mousePressed
public void mousePressed(java.awt.event.MouseEvent e)
- Specified by:
mousePressed
in interface java.awt.event.MouseListener
mouseReleased
public void mouseReleased(java.awt.event.MouseEvent e)
- Specified by:
mouseReleased
in interface java.awt.event.MouseListener