Package org.jivesoftware.smackx.xdata
Class ListSingleFormField.Builder
java.lang.Object
org.jivesoftware.smackx.xdata.FormField.Builder<F,B>
org.jivesoftware.smackx.xdata.SingleValueFormField.Builder<F,B>
org.jivesoftware.smackx.xdata.AbstractSingleStringValueFormField.Builder<ListSingleFormField,ListSingleFormField.Builder>
org.jivesoftware.smackx.xdata.ListSingleFormField.Builder
- All Implemented Interfaces:
FormFieldWithOptions.Builder<ListSingleFormField.Builder>
- Enclosing class:
- ListSingleFormField
public static final class ListSingleFormField.Builder
extends AbstractSingleStringValueFormField.Builder<ListSingleFormField,ListSingleFormField.Builder>
implements FormFieldWithOptions.Builder<ListSingleFormField.Builder>
-
Field Summary
Fields inherited from class org.jivesoftware.smackx.xdata.SingleValueFormField.Builder
rawValue
-
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.build()
getThis()
Methods inherited from class org.jivesoftware.smackx.xdata.AbstractSingleStringValueFormField.Builder
addValue, resetInternal, setValue, setValue, setValue, setValue, setValue, setValue
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
-
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<ListSingleFormField.Builder>
- Parameters:
option
- a new available option for the question.- Returns:
- a reference to this builder.
-
build
- Specified by:
build
in classFormField.Builder<ListSingleFormField,
ListSingleFormField.Builder>
-
getThis
- Specified by:
getThis
in classFormField.Builder<ListSingleFormField,
ListSingleFormField.Builder>
-