FormField@Deprecated public class XFormFieldImpl extends Object implements FormField
TYPE_BOOLEAN, TYPE_FIXED, TYPE_HIDDEN, TYPE_JID_MULTI, TYPE_JID_SINGLE, TYPE_LIST_MULTI, TYPE_LIST_SINGLE, TYPE_TEXT_MULTI, TYPE_TEXT_PRIVATE, TYPE_TEXT_SINGLE| Constructor and Description |
|---|
XFormFieldImpl()
Deprecated.
|
XFormFieldImpl(String variable)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addOption(String label,
String value)
Deprecated.
Adds an available option to the question that the user has in order to answer
the question.
|
void |
addValue(String value)
Deprecated.
Adds a default value to the question if the question is part of a form to fill out.
|
org.dom4j.Element |
asXMLElement()
Deprecated.
|
void |
clearValues()
Deprecated.
Removes all the values of the field.
|
String |
getDescription()
Deprecated.
Returns a description that provides extra clarification about the question.
|
String |
getLabel()
Deprecated.
Returns the label of the question which should give enough information to the user to
fill out the form.
|
String |
getName()
Deprecated.
|
String |
getNamespace()
Deprecated.
|
String |
getType()
Deprecated.
Returns an indicative of the format for the data to answer.
|
Iterator<String> |
getValues()
Deprecated.
Returns an Iterator for the default values of the question if the question is part
of a form to fill out.
|
String |
getVariable()
Deprecated.
Returns the variable name that the question is filling out.
|
boolean |
isRequired()
Deprecated.
Returns true if the question must be answered in order to complete the questionnaire.
|
void |
parse(org.dom4j.Element formElement)
Deprecated.
|
void |
setDescription(String description)
Deprecated.
Sets a description that provides extra clarification about the question.
|
void |
setLabel(String label)
Deprecated.
Sets the label of the question which should give enough information to the user to
fill out the form.
|
void |
setName(String name)
Deprecated.
|
void |
setNamespace(String namespace)
Deprecated.
|
void |
setRequired(boolean required)
Deprecated.
Sets if the question must be answered in order to complete the questionnaire.
|
void |
setType(String type)
Deprecated.
Sets an indicative of the format for the data to answer.
|
String |
toString()
Deprecated.
|
public XFormFieldImpl()
public XFormFieldImpl(String variable)
public String getNamespace()
public void setNamespace(String namespace)
public String getName()
public void setName(String name)
public org.dom4j.Element asXMLElement()
public void addValue(String value)
FormFieldpublic void clearValues()
FormFieldclearValues in interface FormFieldpublic void addOption(String label, String value)
FormFieldpublic void setType(String type)
FormFieldpublic void setRequired(boolean required)
FormFieldsetRequired in interface FormFieldrequired - if the question must be answered in order to complete the questionnaire.public void setLabel(String label)
FormFieldpublic void setDescription(String description)
FormFieldIf the question is of type FIXED then the description should remain empty.
setDescription in interface FormFielddescription - provides extra clarification about the question.public boolean isRequired()
FormFieldisRequired in interface FormFieldpublic String getVariable()
FormFieldgetVariable in interface FormFieldpublic Iterator<String> getValues()
FormFieldpublic String getType()
FormFieldpublic String getLabel()
FormFieldpublic String getDescription()
FormFieldIf the question is of type FIXED then the description should remain empty.
getDescription in interface FormFieldpublic void parse(org.dom4j.Element formElement)
Copyright © 2003-2008 Jive Software.