|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object core.EventNotifier gui.ChatBox
This is the window where text from contacts will be displayed. It is also where the user will enter text to be sent to that specific contact.
Constructor Summary | |
ChatBox(Contact me,
Contact you,
java.awt.Point location,
Prefs prefs,
java.security.PrivateKey myKey)
Main constructor |
Method Summary | |
void |
actionPerformed(java.awt.event.ActionEvent e)
|
javax.swing.JPopupMenu |
createPopupMenu()
Creates the popup menu with two entries, Save and Clear. |
void |
display()
Create the GUI and show it. |
void |
displayBuddyText(java.lang.String text)
Displays the name, time and text to the message window. |
void |
displaySendText(java.lang.String text)
|
void |
keyPressed(java.awt.event.KeyEvent e)
|
void |
keyReleased(java.awt.event.KeyEvent e)
|
void |
keyTyped(java.awt.event.KeyEvent e)
|
void |
notifyUser()
Makes the toolbar icon blink if the window doesn't have focus This only works in windows |
void |
saveConv()
Saves the conversation. |
void |
windowActivated(java.awt.event.WindowEvent e)
|
void |
windowClosed(java.awt.event.WindowEvent e)
|
void |
windowClosing(java.awt.event.WindowEvent e)
|
void |
windowDeactivated(java.awt.event.WindowEvent e)
|
void |
windowDeiconified(java.awt.event.WindowEvent e)
|
void |
windowIconified(java.awt.event.WindowEvent e)
|
void |
windowOpened(java.awt.event.WindowEvent e)
|
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 |
public ChatBox(Contact me, Contact you, java.awt.Point location, Prefs prefs, java.security.PrivateKey myKey)
me
- A contact object that is the useryou
- A contact object that is the person we are talking tolocation
- Where on screen the box should be displayedprefs
- The Prefs object from MessengerAppMethod Detail |
public javax.swing.JPopupMenu createPopupMenu()
public void notifyUser()
public void saveConv()
public void keyPressed(java.awt.event.KeyEvent e)
keyPressed
in interface java.awt.event.KeyListener
public void keyReleased(java.awt.event.KeyEvent e)
keyReleased
in interface java.awt.event.KeyListener
public void keyTyped(java.awt.event.KeyEvent e)
keyTyped
in interface java.awt.event.KeyListener
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
public void windowActivated(java.awt.event.WindowEvent e)
windowActivated
in interface java.awt.event.WindowListener
public void windowClosed(java.awt.event.WindowEvent e)
windowClosed
in interface java.awt.event.WindowListener
public void windowClosing(java.awt.event.WindowEvent e)
windowClosing
in interface java.awt.event.WindowListener
public void windowDeactivated(java.awt.event.WindowEvent e)
windowDeactivated
in interface java.awt.event.WindowListener
public void windowDeiconified(java.awt.event.WindowEvent e)
windowDeiconified
in interface java.awt.event.WindowListener
public void windowIconified(java.awt.event.WindowEvent e)
windowIconified
in interface java.awt.event.WindowListener
public void windowOpened(java.awt.event.WindowEvent e)
windowOpened
in interface java.awt.event.WindowListener
public void displayBuddyText(java.lang.String text)
text
- The text that is to be displayed in the message windowpublic void displaySendText(java.lang.String text)
text
- takes in a string of text and displays it in itself.public void display()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |