[sip-comm-cvs] CVS update: /sip-communicator/src/net/java/sip/communicator/service/gui/, /sip-communicator/src/net/java/sip/communicator/impl/gui/main/chat/

yanas at dev.java.net yanas at dev.java.net
Tue May 22 08:56:54 CEST 2007


User: yanas   
Date: 2007-05-22 06:56:54+0000
Modified:
   sip-communicator/src/net/java/sip/communicator/service/gui/Chat.java
   sip-communicator/src/net/java/sip/communicator/impl/gui/main/chat/ChatPanel.java

Log:
 setMessage method in the Chat

File Changes:

Directory: /sip-communicator/src/net/java/sip/communicator/service/gui/
=======================================================================

File [changed]: Chat.java
Url: https://sip-communicator.dev.java.net/source/browse/sip-communicator/src/net/java/sip/communicator/service/gui/Chat.java?r1=1.2&r2=1.3
Delta lines:  +8 -1
-------------------
--- Chat.java	2007-05-21 16:15:56+0000	1.2
+++ Chat.java	2007-05-22 06:56:51+0000	1.3
@@ -27,11 +27,18 @@
     public boolean isChatFocused();
     
     /**
+     * Returns the message written by user in the chat write area.
      * 
-     * @return
+     * @return the message written by user in the chat write area
      */
     public String getMessage();
     
+    /**
+     * Sets the given message as a message in the chat write area.
+     * 
+     * @param message the text that would be set to the chat write area 
+     */
+    public void setMessage(String message);
     
     /**
      * Adds the given <tt>ChatFocusListener</tt> to this <tt>Chat</tt>.

Directory: /sip-communicator/src/net/java/sip/communicator/impl/gui/main/chat/
==============================================================================

File [changed]: ChatPanel.java
Url: https://sip-communicator.dev.java.net/source/browse/sip-communicator/src/net/java/sip/communicator/impl/gui/main/chat/ChatPanel.java?r1=1.3&r2=1.4
Delta lines:  +12 -0
--------------------
--- ChatPanel.java	2007-05-21 16:15:56+0000	1.3
+++ ChatPanel.java	2007-05-22 06:56:52+0000	1.4
@@ -603,7 +603,9 @@
     }
     
     /**
+     * Returns the message written by user in the chat write area.
      * 
+     * @return the message written by user in the chat write area
      */
     public String getMessage()
     {
@@ -611,6 +613,16 @@
     }
     
     /**
+     * Sets the given message as a message in the chat write area.
+     * 
+     * @param message the text that would be set to the chat write area 
+     */
+    public void setMessage(String message)
+    {
+        writeMessagePanel.getEditorPane().setText(message);
+    }
+    
+    /**
      * Informs all <tt>ChatFocusListener</tt>s that a <tt>ChatFocusEvent</tt>
      * has been triggered.
      * 




---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe at sip-communicator.dev.java.net
For additional commands, e-mail: cvs-help at sip-communicator.dev.java.net





More information about the commits mailing list