gui
Class ContactListBox

java.lang.Object
  extended bycore.EventNotifier
      extended bygui.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.
 
Method Summary
 ContactList getContactList()
           
 void mouseClicked(java.awt.event.MouseEvent e)
           
 void mouseEntered(java.awt.event.MouseEvent e)
           
 void mouseExited(java.awt.event.MouseEvent e)
           
 void mousePressed(java.awt.event.MouseEvent e)
           
 void mouseReleased(java.awt.event.MouseEvent e)
           
 void removeContact()
           
 void save()
           
 void search(SearchMessage origSearch)
          This is called from the MessangerApp for SearchMessages
 
Methods inherited from class core.EventNotifier
addListener, removeListener
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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.
Method Detail

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