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, setValueMethods inherited from class org.jivesoftware.smackx.xdata.FormField.Builder
addFormFieldChildElement, addFormFieldChildElements, getType, reset, setDescription, setLabel, setRequired, setRequiredMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jivesoftware.smackx.xdata.FormFieldWithOptions.Builder
addOption
-
Method Details
-
addOption
Description copied from interface:FormFieldWithOptions.BuilderAdds an available options to the question that the user has in order to answer the question.- Specified by:
addOptionin interfaceFormFieldWithOptions.Builder<ListSingleFormField.Builder>- Parameters:
option- a new available option for the question.- Returns:
- a reference to this builder.
-
build
- Specified by:
buildin classFormField.Builder<ListSingleFormField,ListSingleFormField.Builder>
-
getThis
- Specified by:
getThisin classFormField.Builder<ListSingleFormField,ListSingleFormField.Builder>
-