Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.service.protocol.event
Class ChatRoomPropertyChangeEvent

java.lang.Object
  extended by java.util.EventObject
      extended by java.beans.PropertyChangeEvent
          extended by net.java.sip.communicator.service.protocol.event.ChatRoomPropertyChangeEvent
All Implemented Interfaces:
Serializable

public class ChatRoomPropertyChangeEvent
extends PropertyChangeEvent

A ChatRoomPropertyChangeEvent is issued whenever a chat room property has changed. Event codes defined in this class describe properties whose changes are being announced through this event.

Author:
Emil Ivov, Stephane Remy
See Also:
Serialized Form

Field Summary
static String CHAT_ROOM_SUBJECT
          The name of the ChatRoom subject property.
static String CHAT_ROOM_USER_NICKNAME
          The name of the ChatRoom subject property.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ChatRoomPropertyChangeEvent(ChatRoom source, String propertyName, Object oldValue, Object newValue)
          Creates a ChatRoomPropertyChangeEvent indicating that a change has occurred for property propertyName in the source chat room and that its value has changed from oldValue to newValue.
 
Method Summary
 ChatRoom getSourceChatRoom()
          Returns the source chat room for this event.
 String toString()
          Returns a String representation of this event.
 
Methods inherited from class java.beans.PropertyChangeEvent
getNewValue, getOldValue, getPropagationId, getPropertyName, setPropagationId
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CHAT_ROOM_SUBJECT

public static final String CHAT_ROOM_SUBJECT
The name of the ChatRoom subject property.

See Also:
Constant Field Values

CHAT_ROOM_USER_NICKNAME

public static final String CHAT_ROOM_USER_NICKNAME
The name of the ChatRoom subject property.

See Also:
Constant Field Values
Constructor Detail

ChatRoomPropertyChangeEvent

public ChatRoomPropertyChangeEvent(ChatRoom source,
                                   String propertyName,
                                   Object oldValue,
                                   Object newValue)
Creates a ChatRoomPropertyChangeEvent indicating that a change has occurred for property propertyName in the source chat room and that its value has changed from oldValue to newValue.

Parameters:
source - the ChatRoom whose property has changed.
propertyName - the name of the property that has changed.
oldValue - the value of the property before the change occurred.
newValue - the value of the property after the change.
Method Detail

getSourceChatRoom

public ChatRoom getSourceChatRoom()
Returns the source chat room for this event.

Returns:
the ChatRoom associated with this event.

toString

public String toString()
Returns a String representation of this event.

Overrides:
toString in class EventObject
Returns:
String representation of this event

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.