|
Openfire 3.3.2 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DataForm
Represents a form that could be use for gathering data as well as for reporting data returned from a search.
The form could be of the following types:addReportedField(FormField)
to set the columns of the report whilst the report's rows
can be configured using addItemFields(ArrayList)
.
Field Summary | |
---|---|
static String |
TYPE_CANCEL
|
static String |
TYPE_FORM
|
static String |
TYPE_RESULT
|
static String |
TYPE_SUBMIT
|
Method Summary | |
---|---|
void |
addField(FormField field)
Adds a new field as part of the form. |
void |
addInstruction(String instruction)
Adds a new instruction to the list of instructions that explain how to fill out the form and what the form is about. |
void |
addItemFields(ArrayList itemFields)
Adds a new row of items of reported data. |
void |
addReportedField(FormField field)
Adds a field to the list of fields that will be returned from a search. |
FormField |
getField(String variable)
Returns the field of the form whose variable matches the specified variable. |
Iterator |
getFields()
Returns an Iterator for the fields that are part of the form. |
int |
getFieldsSize()
Returns the number of fields included in the form. |
Iterator |
getInstructions()
Returns an Iterator for the list of instructions that explain how to fill out the form and what the form is about. |
String |
getTitle()
Returns the description of the data. |
String |
getType()
Returns the meaning of the data within the context. |
void |
setInstructions(List instructions)
Sets the list of instructions that explain how to fill out the form and what the form is about. |
void |
setTitle(String title)
Sets the description of the data. |
Field Detail |
---|
static final String TYPE_FORM
static final String TYPE_SUBMIT
static final String TYPE_CANCEL
static final String TYPE_RESULT
Method Detail |
---|
void setTitle(String title)
title
- description of the data.void setInstructions(List instructions)
instructions
- list of instructions that explain how to fill out the form.String getType()
Possible form types are:
String getTitle()
Iterator getInstructions()
FormField getField(String variable)
variable
- the variable to look for in the form fields.
Iterator getFields()
int getFieldsSize()
void addInstruction(String instruction)
instruction
- the new instruction that explain how to fill out the form.void addField(FormField field)
field
- the field to add to the form.void addReportedField(FormField field)
field
- the field to add to the list of fields that will be returned from a search.void addItemFields(ArrayList itemFields)
itemFields
- list of FormFields to add as a row in the report.
|
Openfire 3.3.2 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |