com.sun.im.desktop
Interface MessengerContainer

All Known Subinterfaces:
MessengerConferenceContainer

public interface MessengerContainer

Base interface for all local contexts in which extensions may be invoked. Allows the extension code to interact with the container in which it is activated.


Method Summary
 void disable()
          causes the functionality of the extension to be disabled for the life time of this container.
 java.awt.Component getComponent()
          get the component from which the extension is invoked.
 void outputError(java.lang.String errorText)
          causes the application to display an error dialog with the specified error message.
 void setServerArchive(boolean b)
          enable server archive for the content exhanged using this container.
 

Method Detail

outputError

public void outputError(java.lang.String errorText)
causes the application to display an error dialog with the specified error message.

Parameters:
errorText - text to be displayed in the error dialog

disable

public void disable()
causes the functionality of the extension to be disabled for the life time of this container.


getComponent

public java.awt.Component getComponent()
get the component from which the extension is invoked. This can be used in order to create modal dialogs from the container component, such as confirmation dialogs and so on. It should not be used to affect the component.


setServerArchive

public void setServerArchive(boolean b)
enable server archive for the content exhanged using this container. for instance, if the container is the chat window, this will tell the server to archive the chat transcript.

Parameters:
b - whether to enable server archive. true means the content is archived.