Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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

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

public class ChatRoomPropertyChangeFailedEvent
extends PropertyChangeEvent

Dispatched to indicate that a change of a chat room property has failed. The modification of a property could fail, because the implementation doesn't support such a property.

Author:
Yana Stamcheva
See Also:
Serialized Form

Field Summary
static int PROPERTY_NOT_SUPPORTED
          Indicates that the current implementation doesn't support the given property.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ChatRoomPropertyChangeFailedEvent(ChatRoom source, String propertyName, Object propertyValue, Object expectedValue, int reasonCode, String reason)
          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
 Object getExpectedValue()
          Return the expected after the change value of the property.
 Object getPropertyValue()
          Returns the value of the property.
 String getReason()
          Returns the reason of the failure.
 int getReasonCode()
          Returns the code of the failure.
 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

PROPERTY_NOT_SUPPORTED

public static final int PROPERTY_NOT_SUPPORTED
Indicates that the current implementation doesn't support the given property.

See Also:
Constant Field Values
Constructor Detail

ChatRoomPropertyChangeFailedEvent

public ChatRoomPropertyChangeFailedEvent(ChatRoom source,
                                         String propertyName,
                                         Object propertyValue,
                                         Object expectedValue,
                                         int reasonCode,
                                         String reason)
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, to which the property belongs
propertyName - the name of the property
propertyValue - the value of the property
expectedValue - the expected after the change value of the property
reasonCode - the code indicating the reason for the failure
reason - more detailed explanation of the failure
Method Detail

getSourceChatRoom

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

Returns:
the ChatRoom associated with this event.

getPropertyValue

public Object getPropertyValue()
Returns the value of the property.

Returns:
the value of the property.

getExpectedValue

public Object getExpectedValue()
Return the expected after the change value of the property.

Returns:
the expected after the change value of the property

getReasonCode

public int getReasonCode()
Returns the code of the failure. One of the static constants declared in this class.

Returns:
the code of the failure. One of the static constants declared in this class

getReason

public String getReason()
Returns the reason of the failure.

Returns:
the reason of the failure

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.