|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.java.sip.communicator.impl.protocol.jabber.WhiteboardParticipantJabberImpl
public class WhiteboardParticipantJabberImpl
The WhiteboardParticipantJabberImpl is a class that represents participants in a whiteboard.
| Field Summary | |
|---|---|
protected Date |
currentStateStartDate
Indicates the date when is whiteboard participant passed into its current state. |
protected List<WhiteboardParticipantListener> |
whiteboardParticipantListeners
All the WhiteboardParticipant listeners registered with this WhiteboardParticipant. |
protected WhiteboardParticipantState |
whiteboardParticipantState
The state of the whiteboard participant. |
| Constructor Summary | |
|---|---|
WhiteboardParticipantJabberImpl(ContactJabberImpl participant,
WhiteboardSessionJabberImpl owningWhiteboard)
Creates a new whiteboard participant with address participantAddress. |
|
| Method Summary | |
|---|---|
void |
addWhiteboardParticipantListener(WhiteboardParticipantListener listener)
Allows the user interface to register a listener interested in changes |
protected void |
fireWhiteboardParticipantChangeEvent(String eventType,
Object oldValue,
Object newValue)
Constructs a WhiteboardParticipantChangeEvent using this whiteboard participant as source, setting it to be of type eventType and the corresponding oldValue and newValue, |
protected void |
fireWhiteboardParticipantChangeEvent(String eventType,
Object oldValue,
Object newValue,
String reason)
Constructs a WhiteboardParticipantChangeEvent using this whiteboard participant as source, setting it to be of type eventType and the corresponding oldValue and newValue, |
Contact |
getContact()
Returns the contact corresponding to this participant or null if no particular contact has been associated. |
String |
getContactAddress()
Returns the contact identifier representing this contact. |
Date |
getCurrentStateStartDate()
Returns the date (time) when this whiteboard participant acquired its current status. |
String |
getDisplayName()
Returns a human readable name representing this participant. |
byte[] |
getImage()
The method returns an image representation of the whiteboard participant (e.g. |
String |
getName()
Returns the name of this member |
String |
getParticipantID()
Returns a unique identifier representing this participant. |
ProtocolProviderService |
getProtocolProvider()
Returns the protocol provider instance that this member has originated in. |
WhiteboardParticipantState |
getState()
Returns an object representing the current state of that participant. |
WhiteboardSession |
getWhiteboardSession()
Returns the chat room that this member is participating in. |
void |
removeWhiteboardParticipantListener(WhiteboardParticipantListener listener)
Unregisters the specified listener. |
protected void |
setDisplayName(String displayName)
Sets a human readable name representing this participant. |
protected void |
setImage(byte[] image)
Sets the byte array containing an image representation (photo or picture) of the whiteboard participant. |
protected void |
setParticipantID(String participantID)
Sets the String that serves as a unique identifier of this WhiteboardParticipant. |
protected void |
setState(WhiteboardParticipantState newState)
Causes this WhiteboardParticipant to enter the specified state. |
protected void |
setState(WhiteboardParticipantState newState,
String reason)
Causes this WhiteboardParticipant to enter the specified state. |
protected void |
setWhiteboard(WhiteboardSessionJabberImpl whiteboard)
Sets the whiteboard containing this participant. |
void |
setWhiteboardSession(WhiteboardSessionJabberImpl session)
Sets the chat room that this member is participating in. |
String |
toString()
Returns a string representation of the participant in the form of Display Name ;status=WhiteboardParticipantStatus |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected WhiteboardParticipantState whiteboardParticipantState
protected Date currentStateStartDate
protected final List<WhiteboardParticipantListener> whiteboardParticipantListeners
| Constructor Detail |
|---|
public WhiteboardParticipantJabberImpl(ContactJabberImpl participant,
WhiteboardSessionJabberImpl owningWhiteboard)
participant - the JAIN SIP Address of the new whiteboard
participant.owningWhiteboard - the whiteboard that contains this whiteboard
participant.| Method Detail |
|---|
public String getContactAddress()
getContactAddress in interface WhiteboardParticipantpublic WhiteboardParticipantState getState()
getState in interface WhiteboardParticipant
protected void setState(WhiteboardParticipantState newState,
String reason)
newState - the state this whiteboard participant should enter.reason - a string that could be set to contain a human readable
explanation for the transition (particularly handy when moving
into a FAILED state).protected void setState(WhiteboardParticipantState newState)
newState - the state this whiteboard participant should enter.public Date getCurrentStateStartDate()
public String getDisplayName()
protected void setDisplayName(String displayName)
displayName - the participant's display namepublic byte[] getImage()
protected void setImage(byte[] image)
image - a byte array containing the imagepublic String getParticipantID()
protected void setParticipantID(String participantID)
participantID - the ID of this whiteboard participant.public WhiteboardSession getWhiteboardSession()
getWhiteboardSession in interface WhiteboardParticipantprotected void setWhiteboard(WhiteboardSessionJabberImpl whiteboard)
whiteboard - the whiteboard that this whiteboard participant is
partdicipating in.public ProtocolProviderService getProtocolProvider()
getProtocolProvider in interface WhiteboardParticipantpublic Contact getContact()
public void addWhiteboardParticipantListener(WhiteboardParticipantListener listener)
addWhiteboardParticipantListener in interface WhiteboardParticipantlistener - a listener instance to register with this participant.public void removeWhiteboardParticipantListener(WhiteboardParticipantListener listener)
removeWhiteboardParticipantListener in interface WhiteboardParticipantlistener - the listener to unregister.
protected void fireWhiteboardParticipantChangeEvent(String eventType,
Object oldValue,
Object newValue)
eventType - the type of the event to create and dispatch.oldValue - the value of the source property before it changed.newValue - the current value of the source property.
protected void fireWhiteboardParticipantChangeEvent(String eventType,
Object oldValue,
Object newValue,
String reason)
eventType - the type of the event to create and dispatch.oldValue - the value of the source property before it changed.newValue - the current value of the source property.reason - a string that could be set to contain a human readable
explanation for the transition (particularly handy when moving
into a FAILED state).public String toString()
toString in class Objectpublic String getName()
getName in interface WhiteboardParticipantpublic void setWhiteboardSession(WhiteboardSessionJabberImpl session)
session -
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||