public class ChatRoomConfigurationFormFieldJabberImpl extends java.lang.Object implements ChatRoomConfigurationFormField
TYPE_BOOLEAN, TYPE_ID_MULTI, TYPE_ID_SINGLE, TYPE_LIST_MULTI, TYPE_LIST_SINGLE, TYPE_TEXT_FIXED, TYPE_TEXT_MULTI, TYPE_TEXT_PRIVATE, TYPE_TEXT_SINGLE, TYPE_UNDEFINED
Constructor and Description |
---|
ChatRoomConfigurationFormFieldJabberImpl(org.jivesoftware.smackx.FormField formField,
org.jivesoftware.smackx.Form submitForm)
Creates an instance of ChatRoomConfigurationFormFieldJabberImpl
by passing to it the smack form field and the smack submit form, which
are the base of this implementation.
|
Modifier and Type | Method and Description |
---|---|
void |
addValue(java.lang.Object value)
Adds the given value to the list of values of this field.
|
java.lang.String |
getDescription()
Returns the description of the corresponding smack property.
|
java.lang.String |
getLabel()
Returns the label of the corresponding smack property.
|
java.lang.String |
getName()
Returns the variable name of the corresponding smack property.
|
java.util.Iterator<java.lang.String> |
getOptions()
Returns the options of the corresponding smack property.
|
java.lang.String |
getType()
For each of the smack form field types returns the corresponding
ChatRoomConfigurationFormField type.
|
java.util.Iterator<?> |
getValues()
Returns an Iterator over the list of values of this field.
|
boolean |
isRequired()
Returns the isRequired property of the corresponding smack property.
|
void |
setValues(java.lang.Object[] newValues)
Sets the given list of values to this field.
|
public ChatRoomConfigurationFormFieldJabberImpl(org.jivesoftware.smackx.FormField formField, org.jivesoftware.smackx.Form submitForm)
formField
- the smack form fieldsubmitForm
- the smack submit formpublic java.lang.String getName()
getName
in interface ChatRoomConfigurationFormField
public java.lang.String getDescription()
getDescription
in interface ChatRoomConfigurationFormField
public java.lang.String getLabel()
getLabel
in interface ChatRoomConfigurationFormField
public java.util.Iterator<java.lang.String> getOptions()
getOptions
in interface ChatRoomConfigurationFormField
public boolean isRequired()
isRequired
in interface ChatRoomConfigurationFormField
public java.lang.String getType()
getType
in interface ChatRoomConfigurationFormField
public java.util.Iterator<?> getValues()
getValues
in interface ChatRoomConfigurationFormField
public void addValue(java.lang.Object value)
addValue
in interface ChatRoomConfigurationFormField
value
- the value to addpublic void setValues(java.lang.Object[] newValues)
setValues
in interface ChatRoomConfigurationFormField
newValues
- the list of values to set
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.