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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ListMultiFormField.Builder
addOption(FormField.Option option)
Adds an available options to the question that the user has in order to answer the question.ListMultiFormField.Builder
addValue(CharSequence value)
ListMultiFormField
build()
ListMultiFormField.Builder
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 Detail
-
addValue
public ListMultiFormField.Builder addValue(CharSequence value)
- Specified by:
addValue
in classAbstractMultiFormField.Builder<ListMultiFormField,ListMultiFormField.Builder>
-
addOption
public ListMultiFormField.Builder addOption(FormField.Option option)
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
public ListMultiFormField build()
- Specified by:
build
in classFormField.Builder<ListMultiFormField,ListMultiFormField.Builder>
-
getThis
public ListMultiFormField.Builder getThis()
- Specified by:
getThis
in classFormField.Builder<ListMultiFormField,ListMultiFormField.Builder>
-
-