@Singleton
public class FormFactory
extends java.lang.Object
| Constructor and Description |
|---|
FormFactory(MessagesApi messagesApi,
Formatters formatters,
javax.validation.Validator validator) |
| Modifier and Type | Method and Description |
|---|---|
DynamicForm |
form() |
<T> Form<T> |
form(java.lang.Class<T> clazz) |
<T> Form<T> |
form(java.lang.Class<T> clazz,
java.lang.Class<?>... groups) |
<T> Form<T> |
form(java.lang.String name,
java.lang.Class<T> clazz) |
<T> Form<T> |
form(java.lang.String name,
java.lang.Class<T> clazz,
java.lang.Class<?>... groups) |
@Inject public FormFactory(MessagesApi messagesApi, Formatters formatters, javax.validation.Validator validator)
public DynamicForm form()
public <T> Form<T> form(java.lang.Class<T> clazz)
T - the type of value in the form.clazz - the class to map to a form.public <T> Form<T> form(java.lang.String name, java.lang.Class<T> clazz)
T - the type of value in the form.name - the form's name.clazz - the class to map to a form.public <T> Form<T> form(java.lang.String name, java.lang.Class<T> clazz, java.lang.Class<?>... groups)
T - the type of value in the form.name - the form's nameclazz - the class to map to a form.groups - the classes of groups.public <T> Form<T> form(java.lang.Class<T> clazz, java.lang.Class<?>... groups)
T - the type of value in the form.clazz - the class to map to a form.groups - the classes of groups.