Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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

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

public class WhiteboardChangeEvent
extends PropertyChangeEvent

WhiteboardChangeEvents are triggerred whenever a change occurs in a Whiteboard. Dispatched events may be of one of the following types.

WHITEBOARD_STATE_CHANGE - indicates a change in the state of a Whiteboard.

Author:
Julien Waechter, Emil Ivov
See Also:
Serialized Form

Field Summary
static String WHITEBOARD_STATE_CHANGE
          An event type indicating that the corresponding event is caused by a change of the Whiteboard state.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
WhiteboardChangeEvent(WhiteboardSession source, String type, Object oldValue, Object newValue)
          Creates a WhiteboardChangeEvent with the specified source, type, oldValue and newValue.
 
Method Summary
 String getEventType()
          Returns the type of this event.
 WhiteboardSession getSourceWhiteboard()
          The Whiteboard on which the event has occurred.
 String toString()
          Returns a String representation of this WhiteboardChangeEvent.
 
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

WHITEBOARD_STATE_CHANGE

public static final String WHITEBOARD_STATE_CHANGE
An event type indicating that the corresponding event is caused by a change of the Whiteboard state.

See Also:
Constant Field Values
Constructor Detail

WhiteboardChangeEvent

public WhiteboardChangeEvent(WhiteboardSession source,
                             String type,
                             Object oldValue,
                             Object newValue)
Creates a WhiteboardChangeEvent with the specified source, type, oldValue and newValue.

Parameters:
source - the participant that produced the event.
type - the type of the event (the name of the property that has changed).
oldValue - the value of the changed property before the event occurred
newValue - current value of the changed property.
Method Detail

getEventType

public String getEventType()
Returns the type of this event.

Returns:
a string containing the name of the property whose change this event is reflecting.

toString

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

Overrides:
toString in class EventObject
Returns:
A a String representation of this WhiteboardChangeEvent.

getSourceWhiteboard

public WhiteboardSession getSourceWhiteboard()
The Whiteboard on which the event has occurred.

Returns:
A reference to the Whiteboard on which the event has occurred.

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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