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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ListSingleFormField.Builder
addOption(FormField.Option option)
Adds an available options to the question that the user has in order to answer the question.ListSingleFormField
build()
ListSingleFormField.Builder
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 Detail
-
addOption
public ListSingleFormField.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<ListSingleFormField.Builder>
- Parameters:
option
- a new available option for the question.- Returns:
- a reference to this builder.
-
build
public ListSingleFormField build()
- Specified by:
build
in classFormField.Builder<ListSingleFormField,ListSingleFormField.Builder>
-
getThis
public ListSingleFormField.Builder getThis()
- Specified by:
getThis
in classFormField.Builder<ListSingleFormField,ListSingleFormField.Builder>
-
-