|
Openfire 3.8.1 Javadoc | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
FormField
@Deprecated public interface FormField
Represents a field of a form. The field could be used to represent a question to complete, a completed question or a data returned from a search. The exact interpretation of the field depends on the context where the field is used.
| Field Summary | |
|---|---|
static String |
TYPE_BOOLEAN
Deprecated. |
static String |
TYPE_FIXED
Deprecated. |
static String |
TYPE_HIDDEN
Deprecated. |
static String |
TYPE_JID_MULTI
Deprecated. |
static String |
TYPE_JID_SINGLE
Deprecated. |
static String |
TYPE_LIST_MULTI
Deprecated. |
static String |
TYPE_LIST_SINGLE
Deprecated. |
static String |
TYPE_TEXT_MULTI
Deprecated. |
static String |
TYPE_TEXT_PRIVATE
Deprecated. |
static String |
TYPE_TEXT_SINGLE
Deprecated. |
| Method Summary | |
|---|---|
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. |
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 |
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 |
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 |
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. |
| Field Detail |
|---|
static final String TYPE_BOOLEAN
static final String TYPE_FIXED
static final String TYPE_HIDDEN
static final String TYPE_JID_MULTI
static final String TYPE_JID_SINGLE
static final String TYPE_LIST_MULTI
static final String TYPE_LIST_SINGLE
static final String TYPE_TEXT_MULTI
static final String TYPE_TEXT_PRIVATE
static final String TYPE_TEXT_SINGLE
| Method Detail |
|---|
void addValue(String value)
value - a default value or an answered value of the question.void clearValues()
void addOption(String label,
String value)
label - a label that represents the option.value - the value of the option.void setType(String type)
type - an indicative of the format for the data to answer.void setRequired(boolean required)
required - if the question must be answered in order to complete the questionnaire.void setLabel(String label)
label - the label of the question.void setDescription(String description)
If the question is of type FIXED then the description should remain empty.
description - provides extra clarification about the question.boolean isRequired()
String getVariable()
Iterator<String> getValues()
String getType()
String getLabel()
String getDescription()
If the question is of type FIXED then the description should remain empty.
|
Openfire 3.8.1 Javadoc | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||