1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-12-27 13:07:58 +01:00

Adds new constructor that makes the "variable" attribute required

git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2279 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Gaston Dombiak 2004-04-05 16:27:40 +00:00 committed by gdombiak
parent 06d225a337
commit 3223d0f290

View file

@ -81,6 +81,16 @@ public class FormField {
private List options = new ArrayList();
private List values = new ArrayList();
/**
* Creates a new FormField with the variable name that uniquely identifies the field
* in the context of the form.
*
* @param variable the variable name of the question.
*/
public FormField(String variable) {
this.variable = variable;
}
/**
* Returns a description that provides extra clarification about the question. This information
* could be presented to the user either in tool-tip, help button, or as a section of text
@ -229,15 +239,6 @@ public class FormField {
this.type = type;
}
/**
* Returns the variable name that the question is filling out.
*
* @param variable the variable name of the question.
*/
public void setVariable(String variable) {
this.variable = variable;
}
/**
* Adds a default value to the question if the question is part of a form to fill out.
* Otherwise, adds an answered value to the question.