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 DataForm
getDataFormToSubmit()
FormField
getField(String fieldName)
void
setAnswer(String fieldName, boolean answer)
void
setAnswer(String fieldName, int answer)
void
setAnswer(String fieldName, CharSequence answer)
void
setAnswer(String fieldName, Collection<? extends CharSequence> answers)
protected void
write(String fieldName, int value)
protected void
write(String fieldName, Date date)
void
write(FormField filledFormField)
protected void
writeBoolean(String fieldName, boolean value)
protected void
writeListMulti(String fieldName, List<? extends CharSequence> values)
protected void
writeTextSingle(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:
getField
in interfaceFormReader
- Overrides:
getField
in classFilledForm
-
getDataFormToSubmit
public DataForm getDataFormToSubmit()
-
-