Package org.jivesoftware.smackx.xdata
Class ListMultiFormField.Builder
java.lang.Object
org.jivesoftware.smackx.xdata.FormField.Builder<F,B>
org.jivesoftware.smackx.xdata.AbstractMultiFormField.Builder<ListMultiFormField,ListMultiFormField.Builder>
org.jivesoftware.smackx.xdata.ListMultiFormField.Builder
- All Implemented Interfaces:
FormFieldWithOptions.Builder<ListMultiFormField.Builder>
- Enclosing class:
- ListMultiFormField
public static final class ListMultiFormField.Builder
extends AbstractMultiFormField.Builder<ListMultiFormField,ListMultiFormField.Builder>
implements FormFieldWithOptions.Builder<ListMultiFormField.Builder>
-
Method Summary
Modifier and TypeMethodDescriptionaddOption
(FormField.Option option) Adds an available options to the question that the user has in order to answer the question.addValue
(CharSequence value) build()
getThis()
Methods inherited from class org.jivesoftware.smackx.xdata.AbstractMultiFormField.Builder
addValue, addValues, addValueVerbatim, addValueVerbatim, resetInternal
Methods inherited from class org.jivesoftware.smackx.xdata.FormField.Builder
addFormFieldChildElement, addFormFieldChildElements, getType, reset, setDescription, setLabel, setRequired, setRequired
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.jivesoftware.smackx.xdata.FormFieldWithOptions.Builder
addOption
-
Method Details
-
addValue
- Specified by:
addValue
in classAbstractMultiFormField.Builder<ListMultiFormField,
ListMultiFormField.Builder>
-
addOption
Description copied from interface:FormFieldWithOptions.Builder
Adds an available options to the question that the user has in order to answer the question.- Specified by:
addOption
in interfaceFormFieldWithOptions.Builder<ListMultiFormField.Builder>
- Parameters:
option
- a new available option for the question.- Returns:
- a reference to this builder.
-
build
- Specified by:
build
in classFormField.Builder<ListMultiFormField,
ListMultiFormField.Builder>
-
getThis
- Specified by:
getThis
in classFormField.Builder<ListMultiFormField,
ListMultiFormField.Builder>
-