com.joctopus.ui.joctopus
Class ChatterHandler

java.lang.Object
  extended by com.joctopus.ui.joctopus.ChatterHandler
All Implemented Interfaces:
IChat, java.awt.event.ActionListener, java.util.EventListener

public class ChatterHandler
extends java.lang.Object
implements java.awt.event.ActionListener, IChat

This class handles all the events of chatterUI.

Since:
1.0

Field Summary
 JOctopusConsole chatterConsole
          console for writing debug output.
 java.lang.StringBuilder handshakeMessage
          handshake message containing full path of all files in selected directories.
 java.lang.StringBuilder path
          path that will be visible in o/p text area.
 
Constructor Summary
ChatterHandler(JOctopusConsole console)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 ChatBoard getChatBoard()
           
 ChatterUI getChatterUI()
           
 Users getCurrentUser()
           
 void sendMessage()
          called when send message operation is triggered by ChatAreaTracker.
 void setChatBoard(ChatBoard chatBoard)
           
 void setCurrentUser(Users currentUser)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

handshakeMessage

public java.lang.StringBuilder handshakeMessage
handshake message containing full path of all files in selected directories. each path is separated by "\n" character.


chatterConsole

public JOctopusConsole chatterConsole
console for writing debug output.


path

public java.lang.StringBuilder path
path that will be visible in o/p text area.

Constructor Detail

ChatterHandler

public ChatterHandler(JOctopusConsole console)
Parameters:
console -
Method Detail

getChatBoard

public ChatBoard getChatBoard()
Returns:
the chatBoard

setChatBoard

public void setChatBoard(ChatBoard chatBoard)
Parameters:
chatBoard - the chatBoard to set

getCurrentUser

public Users getCurrentUser()
Returns:
the currentUser

setCurrentUser

public void setCurrentUser(Users currentUser)
Parameters:
currentUser - the currentUser to set

getChatterUI

public ChatterUI getChatterUI()
Returns:

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Specified by:
actionPerformed in interface java.awt.event.ActionListener

sendMessage

public void sendMessage()
Description copied from interface: IChat
called when send message operation is triggered by ChatAreaTracker.

Specified by:
sendMessage in interface IChat