Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.protocol.jabber
Class ChatRoomConfigurationFormJabberImpl

java.lang.Object
  extended by net.java.sip.communicator.impl.protocol.jabber.ChatRoomConfigurationFormJabberImpl
All Implemented Interfaces:
ChatRoomConfigurationForm

public class ChatRoomConfigurationFormJabberImpl
extends Object
implements ChatRoomConfigurationForm

The Jabber implementation of the ChatRoomConfigurationForm interface.

Author:
Yana Stamcheva

Constructor Summary
ChatRoomConfigurationFormJabberImpl(org.jivesoftware.smackx.muc.MultiUserChat multiUserChat, org.jivesoftware.smackx.Form smackConfigForm)
          Creates an instance of ChatRoomConfigurationFormJabberImpl by specifying the corresponding smack multi user chat and smack configuration form.
 
Method Summary
 Iterator<ChatRoomConfigurationFormField> getConfigurationSet()
          Returns an Iterator over a list of ChatRoomConfigurationFormFields.
 void submit()
          Sends the ready smack configuration form to the multi user chat.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChatRoomConfigurationFormJabberImpl

public ChatRoomConfigurationFormJabberImpl(org.jivesoftware.smackx.muc.MultiUserChat multiUserChat,
                                           org.jivesoftware.smackx.Form smackConfigForm)
Creates an instance of ChatRoomConfigurationFormJabberImpl by specifying the corresponding smack multi user chat and smack configuration form.

Parameters:
multiUserChat - the smack multi user chat, to which we'll send the configuration form once filled out
smackConfigForm - the smack configuration form
Method Detail

getConfigurationSet

public Iterator<ChatRoomConfigurationFormField> getConfigurationSet()
Returns an Iterator over a list of ChatRoomConfigurationFormFields.

Specified by:
getConfigurationSet in interface ChatRoomConfigurationForm
Returns:
an Iterator over a list of ChatRoomConfigurationFormFields

submit

public void submit()
            throws OperationFailedException
Sends the ready smack configuration form to the multi user chat.

Specified by:
submit in interface ChatRoomConfigurationForm
Throws:
OperationFailedException - if the submit opeation do not succeed for some reason (e.g. a wrong value is provided for a property)

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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