((ChatContextImpl) chatContext).setListener(chatListener);
return getChatContext();
}
public ChatContext getTableChatContext(ChatListener chatListener, TableId tableId) {
ChatRoom table = ChatServer.getInstance().getTableChatRoom(tableId);
if (table == null)
throw new IllegalArgumentException("No such table id!");
((ChatContextImpl) chatContext).changeChatRoom(table);
((ChatContextImpl) chatContext).setListener(chatListener);
return getChatContext();