Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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

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

public class WhiteboardObjectReceivedEvent
extends EventObject

WhiteboardObjectReceivedEvent indicates reception of a new WhiteboardObject in the corresponding whiteboard session.

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

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
WhiteboardObjectReceivedEvent(WhiteboardSession source, WhiteboardObject obj, Contact from, Date timestamp)
          Creates a WhiteboardObjectReceivedEvent representing reception of the source WhiteboardObject received from the specified from contact.
 
Method Summary
 Contact getSourceContact()
          Returns a reference to the Contact that has sent the WhiteboardObject whose reception this event represents.
 WhiteboardObject getSourceWhiteboardObject()
          Returns the WhiteboardObject that triggered this event
 WhiteboardSession getSourceWhiteboardSession()
          Returns the source white-board session, to which the received object belongs.
 Date getTimestamp()
          A timestamp indicating the exact date when the event ocurred.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WhiteboardObjectReceivedEvent

public WhiteboardObjectReceivedEvent(WhiteboardSession source,
                                     WhiteboardObject obj,
                                     Contact from,
                                     Date timestamp)
Creates a WhiteboardObjectReceivedEvent representing reception of the source WhiteboardObject received from the specified from contact.

Parameters:
source - the WhiteboardSession that the object has been received in.
obj - the WhiteboardObject whose reception this event represents.
from - the Contact that has sent this WhiteboardObject.
timestamp - the exact date when the event ocurred.
Method Detail

getSourceWhiteboardSession

public WhiteboardSession getSourceWhiteboardSession()
Returns the source white-board session, to which the received object belongs.

Returns:
the source white-board session, to which the received object belongs

getSourceContact

public Contact getSourceContact()
Returns a reference to the Contact that has sent the WhiteboardObject whose reception this event represents.

Returns:
a reference to the Contact that has sent the WhiteboardObject whose reception this event represents.

getSourceWhiteboardObject

public WhiteboardObject getSourceWhiteboardObject()
Returns the WhiteboardObject that triggered this event

Returns:
the WhiteboardObject that triggered this event.

getTimestamp

public Date getTimestamp()
A timestamp indicating the exact date when the event ocurred.

Returns:
a Date indicating when the event ocurred.

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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