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