@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()
Instantiates a dynamic form.
|
<T> Form<T> |
form(java.lang.Class<T> clazz)
Instantiates a new form that wraps the specified class.
|
<T> Form<T> |
form(java.lang.Class<T> clazz,
java.lang.Class<?> group)
Instantiates a new form that wraps the specified class.
|
<T> Form<T> |
form(java.lang.String name,
java.lang.Class<T> clazz)
Instantiates a new form that wraps the specified class.
|
<T> Form<T> |
form(java.lang.String name,
java.lang.Class<T> clazz,
java.lang.Class<?> group)
Instantiates a new form that wraps the specified class.
|
@Inject public FormFactory(MessagesApi messagesApi, Formatters formatters, javax.validation.Validator validator)
public DynamicForm form()
public <T> Form<T> form(java.lang.Class<T> clazz)
public <T> Form<T> form(java.lang.String name, java.lang.Class<T> clazz)
public <T> Form<T> form(java.lang.String name, java.lang.Class<T> clazz, java.lang.Class<?> group)
public <T> Form<T> form(java.lang.Class<T> clazz, java.lang.Class<?> group)