chatroomlisteneradapter.java.svn-base
来自「开源项目openfire的完整源程序」· SVN-BASE 代码 · 共 57 行
SVN-BASE
57 行
/**
* $Revision: $
* $Date: $
*
* Copyright (C) 2006 Jive Software. All rights reserved.
*
* This software is published under the terms of the GNU Lesser Public License (LGPL),
* a copy of which is included in this distribution.
*/
package org.jivesoftware.spark.ui;
/**
* An abstract adapter class for receiving Chat Room Events.
* The methods in this class are empty. This class exists as
* convenience for creating listener objects.
* <p/>
* Chat Room events let you track when a room is opened, closed, joined, left and activated.
* <p/>
* Extend this class to methods for the events of interest. (If you implement the
* <code>ChatRoomListener</code> interface, you have to define all of
* the methods in it. This abstract class defines null methods for them
* all, so you can only have to define methods for events you care about.)
* <p/>
* Create a listener object using the extended class and then register it with
* the <code>ChatManager</code>'s <code>addChatRoomListener</code> method.
*
* @author Derek DeMoro
* @see ChatRoomListener
*/
public abstract class ChatRoomListenerAdapter implements ChatRoomListener {
public void chatRoomOpened(ChatRoom room) {
}
public void chatRoomLeft(ChatRoom room) {
}
public void chatRoomClosed(ChatRoom room) {
}
public void chatRoomActivated(ChatRoom room) {
}
public void userHasJoined(ChatRoom room, String userid) {
}
public void userHasLeft(ChatRoom room, String userid) {
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?