gui
Class AddContactBox
java.lang.Object
core.EventNotifier
gui.AddContactBox
- All Implemented Interfaces:
- java.awt.event.ActionListener, java.util.EventListener, java.awt.event.MouseListener, java.awt.event.WindowListener
- public class AddContactBox
- extends EventNotifier
- implements java.awt.event.ActionListener, java.awt.event.MouseListener, java.awt.event.WindowListener
This is the window that will allow the user to search for and add contacts to
their contact list.
- Author:
- hoele
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AddContactBox
public AddContactBox(Prefs prefs,
Contact me)
- The constructor for the box itself.
- Parameters:
prefs - Takes in a preferance object that will be updated by the window.me - Takes in a contact object that points to you.
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
- handles all of the actions performed by user
- Specified by:
actionPerformed in interface java.awt.event.ActionListener
addResult
public void addResult(SearchMessage result)
mouseClicked
public void mouseClicked(java.awt.event.MouseEvent e)
- Specified by:
mouseClicked in interface java.awt.event.MouseListener
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
setVisible
public void setVisible(boolean isVisible)
- Makes the addContactBox visible or invisible.
- Parameters:
isVisible -
windowActivated
public void windowActivated(java.awt.event.WindowEvent e)
- Specified by:
windowActivated in interface java.awt.event.WindowListener
windowClosed
public void windowClosed(java.awt.event.WindowEvent e)
- Specified by:
windowClosed in interface java.awt.event.WindowListener
windowClosing
public void windowClosing(java.awt.event.WindowEvent e)
- Specified by:
windowClosing in interface java.awt.event.WindowListener
windowDeactivated
public void windowDeactivated(java.awt.event.WindowEvent e)
- Specified by:
windowDeactivated in interface java.awt.event.WindowListener
windowDeiconified
public void windowDeiconified(java.awt.event.WindowEvent e)
- Specified by:
windowDeiconified in interface java.awt.event.WindowListener
windowIconified
public void windowIconified(java.awt.event.WindowEvent e)
- Specified by:
windowIconified in interface java.awt.event.WindowListener
windowOpened
public void windowOpened(java.awt.event.WindowEvent e)
- Specified by:
windowOpened in interface java.awt.event.WindowListener