org.net2map.pov.gui.ChatPanel Class Reference

Inheritance diagram for org.net2map.pov.gui.ChatPanel:

Inheritance graph
[legend]
Collaboration diagram for org.net2map.pov.gui.ChatPanel:

Collaboration graph
[legend]
List of all members.

Detailed Description

Sends and receive text messages.

Author:
Philippe MOULIN

Definition at line 30 of file ChatPanel.java.

Public Member Functions

 ChatPanel ()
 Creates a new instance of ChatPanel.

void processIncomingMessage (net.jxta.endpoint.MessageElement paramIncomingMessage, RemoteNode paramIncomingMessageSender)
 Called each time a chat message is received.

String getAssociatedMessageTag ()
 Called by the MessageBroker to know which message type this POV_MessageReceiver is intersted in.


Private Member Functions

void initComponents ()
 Init graphical components.

void jTextField1ActionPerformed (java.awt.event.ActionEvent evt)
 Called each time the text field is edited.

void jButton1MouseClicked (java.awt.event.MouseEvent evt)
 Called when the Send button is clicked.

void displayMessage (String paramMessageText, String paramSenderName)
 Displays a message, with the sender name (or "Me', for locally typed messages).

void sendMessage (String theMessage)
 Send a chat message to remote nodes.


Private Attributes

javax.swing.JButton jButton1
 The Send button.

javax.swing.JScrollPane jScrollPane1
 The incoming messages scrollpane.

javax.swing.JTextArea jTextArea1
 The Incoming Messages Text Area.

javax.swing.JTextField jTextField1
 The message editing text field.


Constructor & Destructor Documentation

org.net2map.pov.gui.ChatPanel.ChatPanel  ) 
 

Creates a new instance of ChatPanel.

Definition at line 36 of file ChatPanel.java.

References org.net2map.pov.gui.ChatPanel.initComponents().

Here is the call graph for this function:


Member Function Documentation

void org.net2map.pov.gui.ChatPanel.displayMessage String  paramMessageText,
String  paramSenderName
[private]
 

Displays a message, with the sender name (or "Me', for locally typed messages).

Parameters:
paramMessageText The chat message's text.
paramSenderName The Sender name ("Me", if the sender is the user)

Definition at line 158 of file ChatPanel.java.

References org.net2map.pov.gui.ChatPanel.jScrollPane1, and org.net2map.pov.gui.ChatPanel.jTextArea1.

Referenced by org.net2map.pov.gui.ChatPanel.processIncomingMessage(), and org.net2map.pov.gui.ChatPanel.sendMessage().

String org.net2map.pov.gui.ChatPanel.getAssociatedMessageTag  ) 
 

Called by the MessageBroker to know which message type this POV_MessageReceiver is intersted in.

Returns:
The message tag associated with this POV_MessageReceiver

Implements org.net2map.pov.p2p.POV_MessageReceiver.

Definition at line 181 of file ChatPanel.java.

Referenced by org.net2map.pov.gui.ChatPanel.sendMessage().

void org.net2map.pov.gui.ChatPanel.initComponents  )  [private]
 

Init graphical components.

Reimplemented from org.net2map.pov.gui.Panel.

Definition at line 44 of file ChatPanel.java.

References org.net2map.pov.gui.ChatPanel.jButton1, org.net2map.pov.gui.ChatPanel.jButton1MouseClicked(), org.net2map.pov.gui.ChatPanel.jScrollPane1, org.net2map.pov.gui.ChatPanel.jTextArea1, org.net2map.pov.gui.ChatPanel.jTextField1, and org.net2map.pov.gui.ChatPanel.jTextField1ActionPerformed().

Referenced by org.net2map.pov.gui.ChatPanel.ChatPanel().

Here is the call graph for this function:

void org.net2map.pov.gui.ChatPanel.jButton1MouseClicked java.awt.event.MouseEvent  evt  )  [private]
 

Called when the Send button is clicked.

Parameters:
evt the Event

Definition at line 120 of file ChatPanel.java.

References org.net2map.pov.gui.ChatPanel.jTextField1, and org.net2map.pov.gui.ChatPanel.sendMessage().

Referenced by org.net2map.pov.gui.ChatPanel.initComponents().

Here is the call graph for this function:

void org.net2map.pov.gui.ChatPanel.jTextField1ActionPerformed java.awt.event.ActionEvent  evt  )  [private]
 

Called each time the text field is edited.

Parameters:
evt The event

Definition at line 107 of file ChatPanel.java.

References org.net2map.pov.gui.ChatPanel.jTextField1, and org.net2map.pov.gui.ChatPanel.sendMessage().

Referenced by org.net2map.pov.gui.ChatPanel.initComponents().

Here is the call graph for this function:

void org.net2map.pov.gui.ChatPanel.processIncomingMessage net.jxta.endpoint.MessageElement  paramIncomingMessage,
RemoteNode  paramIncomingMessageSender
 

Called each time a chat message is received.

Parameters:
paramIncomingMessage The Chat Message
paramIncomingMessageSender The RemoteNode who has sent it

Implements org.net2map.pov.p2p.POV_MessageReceiver.

Definition at line 147 of file ChatPanel.java.

References org.net2map.pov.gui.ChatPanel.displayMessage(), and org.net2map.pov.p2p.RemoteNode.getPeerName().

Here is the call graph for this function:

void org.net2map.pov.gui.ChatPanel.sendMessage String  theMessage  )  [private]
 

Send a chat message to remote nodes.

Parameters:
theMessage The chat message.

Definition at line 169 of file ChatPanel.java.

References org.net2map.pov.gui.ChatPanel.displayMessage(), and org.net2map.pov.gui.ChatPanel.getAssociatedMessageTag().

Referenced by org.net2map.pov.gui.ChatPanel.jButton1MouseClicked(), and org.net2map.pov.gui.ChatPanel.jTextField1ActionPerformed().

Here is the call graph for this function:


Member Data Documentation

javax.swing.JButton org.net2map.pov.gui.ChatPanel.jButton1 [private]
 

The Send button.

Definition at line 132 of file ChatPanel.java.

Referenced by org.net2map.pov.gui.ChatPanel.initComponents().

javax.swing.JScrollPane org.net2map.pov.gui.ChatPanel.jScrollPane1 [private]
 

The incoming messages scrollpane.

Definition at line 134 of file ChatPanel.java.

Referenced by org.net2map.pov.gui.ChatPanel.displayMessage(), and org.net2map.pov.gui.ChatPanel.initComponents().

javax.swing.JTextArea org.net2map.pov.gui.ChatPanel.jTextArea1 [private]
 

The Incoming Messages Text Area.

Definition at line 136 of file ChatPanel.java.

Referenced by org.net2map.pov.gui.ChatPanel.displayMessage(), and org.net2map.pov.gui.ChatPanel.initComponents().

javax.swing.JTextField org.net2map.pov.gui.ChatPanel.jTextField1 [private]
 

The message editing text field.

Definition at line 138 of file ChatPanel.java.

Referenced by org.net2map.pov.gui.ChatPanel.initComponents(), org.net2map.pov.gui.ChatPanel.jButton1MouseClicked(), and org.net2map.pov.gui.ChatPanel.jTextField1ActionPerformed().


The documentation for this class was generated from the following file:
Accueil | Téléchargement | Manuel | Doc. technique | Sources CVS | Faq | Nous contacter
©2003 - All Rights Reserved