Uses of Class
org.jivesoftware.smackx.xdata.packet.DataForm.Builder
-
Uses of DataForm.Builder in org.jivesoftware.smackx.xdata.packet
Modifier and TypeMethodDescriptionDataForm.Builder.addExtensionElement
(Element element) Adds a new field as part of the form.DataForm.Builder.addFields
(Collection<? extends FormField> fieldsToAdd) Add the given fields to this form.DataForm.Builder.addInstruction
(String instruction) Adds a new instruction to the list of instructions that explain how to fill out the form and what the form is about.DataForm.Builder.addItem
(DataForm.Item item) Adds a new item returned from a search.DataForm.asBuilder()
static DataForm.Builder
DataForm.builder()
Get a new data form builder with the form type set toDataForm.Type.submit
.static DataForm.Builder
DataForm.builder
(DataForm.Type type) DataForm.Builder.removeField
(String fieldName) DataForm.Builder.setFormType
(String formType) DataForm.Builder.setInstructions
(String instructions) DataForm.Builder.setInstructions
(List<String> instructions) Sets the list of instructions that explain how to fill out the form and what the form is about.DataForm.Builder.setReportedData
(DataForm.ReportedData reportedData) Sets the fields that will be returned from a search.Sets the description of the data.