Class FillableForm
- java.lang.Object
-
- org.jivesoftware.smackx.xdata.form.FilledForm
-
- org.jivesoftware.smackx.xdata.form.FillableForm
-
- All Implemented Interfaces:
FormReader
- Direct Known Subclasses:
FillableConfigureForm,FillableSubscribeForm
public class FillableForm extends FilledForm
-
-
Field Summary
-
Fields inherited from class org.jivesoftware.smackx.xdata.form.FilledForm
formTypeFormField
-
-
Constructor Summary
Constructors Constructor Description FillableForm(DataForm dataForm)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DataFormgetDataFormToSubmit()FormFieldgetField(String fieldName)voidsetAnswer(String fieldName, boolean answer)voidsetAnswer(String fieldName, int answer)voidsetAnswer(String fieldName, CharSequence answer)voidsetAnswer(String fieldName, Collection<? extends CharSequence> answers)protected voidwrite(String fieldName, int value)protected voidwrite(String fieldName, Date date)voidwrite(FormField filledFormField)protected voidwriteBoolean(String fieldName, boolean value)protected voidwriteListMulti(String fieldName, List<? extends CharSequence> values)protected voidwriteTextSingle(String fieldName, CharSequence value)-
Methods inherited from class org.jivesoftware.smackx.xdata.form.FilledForm
ensureFormType, getDataForm, getFieldOrThrow, getFormType, getInstructions, getTitle, hasField
-
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.form.FormReader
readBoolean, readDate, readFirstValue, readInteger, readStringValues, readValues
-
-
-
-
Constructor Detail
-
FillableForm
public FillableForm(DataForm dataForm)
-
-
Method Detail
-
writeListMulti
protected void writeListMulti(String fieldName, List<? extends CharSequence> values)
-
writeTextSingle
protected void writeTextSingle(String fieldName, CharSequence value)
-
writeBoolean
protected void writeBoolean(String fieldName, boolean value)
-
setAnswer
public void setAnswer(String fieldName, Collection<? extends CharSequence> answers)
-
setAnswer
public void setAnswer(String fieldName, CharSequence answer)
-
getField
public FormField getField(String fieldName)
- Specified by:
getFieldin interfaceFormReader- Overrides:
getFieldin classFilledForm
-
getDataFormToSubmit
public DataForm getDataFormToSubmit()
-
-