com.sun.im.desktop
Interface MessengerConferenceContainer

All Superinterfaces:
MessengerContainer

public interface MessengerConferenceContainer
extends MessengerContainer

Container used when an extension is invoked in the context of a conference, i.e from the chat tab


Method Summary
 void addConferenceListener(MessengerConferenceListener listener)
          add a conference listener This allows the extension code to be notified when a new message is added to the conference or a participant leaves or joins the conference.
 void addTextMessage(java.lang.String text)
          add a text message ot the conference The message is sent to all participants of the current conference.
 void removeConferenceListener(MessengerConferenceListener listener)
          remove a conference listener
 
Methods inherited from interface com.sun.im.desktop.MessengerContainer
disable, getComponent, outputError, setServerArchive
 

Method Detail

addTextMessage

public void addTextMessage(java.lang.String text)
                    throws MessengerException
add a text message ot the conference The message is sent to all participants of the current conference.

Parameters:
text - text of the message, plain or HTML
Throws:
MessengerException - the message could not be posted. Note that no error dialog has been diplayed. To display an error dialog, call outputError.

addConferenceListener

public void addConferenceListener(MessengerConferenceListener listener)
add a conference listener This allows the extension code to be notified when a new message is added to the conference or a participant leaves or joins the conference.

Parameters:
listener - conference callback object

removeConferenceListener

public void removeConferenceListener(MessengerConferenceListener listener)
remove a conference listener

Parameters:
listener - conference callback object