public class Form extends Object
Constructor and Description |
---|
Form()
Creates a new Form object with no associated fields.
|
Form(String name,
Collection<Field> fields)
Creates a new Form object having the given name and containing the given
fields.
|
Modifier and Type | Method and Description |
---|---|
Collection<Field> |
getFields()
Returns a mutable collection of the fields associated with this form.
|
String |
getName()
Returns the name of this form.
|
void |
setFields(Collection<Field> fields)
Sets the collection of fields associated with this form.
|
void |
setName(String name)
Sets the name of this form.
|
public Form()
public Form(String name, Collection<Field> fields)
name
- A name which uniquely identifies this form.fields
- The fields to provided within the new Form.public Collection<Field> getFields()
public void setFields(Collection<Field> fields)
fields
- The collection of fields to associate with this form.public String getName()
public void setName(String name)
name
- The name to assign to this form.Copyright © 2016. All rights reserved.