i3mclient.chatselect
Class ChatSelect

java.lang.Object
  |
  +--i3mclient.chatselect.ChatSelect
All Implemented Interfaces:
EventListener, SelectionListener, org.eclipse.swt.internal.SWTEventListener

public class ChatSelect
extends Object
implements SelectionListener

Controller of ChatSelectGUI.

Author:
Gunther Wuerz
See Also:
ChatSelectGUI

Field Summary
static String SERVERNOTREACHABLE
           
 
Constructor Summary
ChatSelect()
          Constructor.
 
Method Summary
 void addChatSelectListener(ChatSelectListener listener)
          Adds a new listener for chat selection into a internal list.
 void addErrorListener(ErrorListener listener)
          Adds a new listener for any kind of errors into a internal list.
 DiscussionData[] getChatList()
          Retrieve the list of all available chats from I3M-server
 void removeChatSelectListener(ChatSelectListener listener)
          Removes a chat selection listener from the internal list.
 void removeErrorListener(ErrorListener listener)
          Removes an error listener out of the internal list.
 void widgetDefaultSelected(SelectionEvent se)
           
 void widgetSelected(SelectionEvent se)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SERVERNOTREACHABLE

public static final String SERVERNOTREACHABLE
See Also:
Constant Field Values
Constructor Detail

ChatSelect

public ChatSelect()
Constructor.

Method Detail

getChatList

public DiscussionData[] getChatList()
Retrieve the list of all available chats from I3M-server

Returns:
All chats of the I3M-server

removeChatSelectListener

public void removeChatSelectListener(ChatSelectListener listener)
Removes a chat selection listener from the internal list.

Parameters:
listener - The listener which will be removed

removeErrorListener

public void removeErrorListener(ErrorListener listener)
Removes an error listener out of the internal list.

Parameters:
listener - The listener which will be removed

addChatSelectListener

public void addChatSelectListener(ChatSelectListener listener)
Adds a new listener for chat selection into a internal list.

Parameters:
listener - The listener which will be added

addErrorListener

public void addErrorListener(ErrorListener listener)
Adds a new listener for any kind of errors into a internal list.

Parameters:
listener - The listener which will be added

widgetSelected

public void widgetSelected(SelectionEvent se)
Specified by:
widgetSelected in interface SelectionListener

widgetDefaultSelected

public void widgetDefaultSelected(SelectionEvent se)
Specified by:
widgetDefaultSelected in interface SelectionListener