public class FormManager extends Object implements InvocationHandler, Form
Modifier and Type | Field and Description |
---|---|
protected FormDescriptor |
fd |
protected Map<String,String[]> |
fields |
protected static Map<Class<?>,FormDescriptor> |
forms |
protected Map<String,Object> |
map |
protected List<String> |
unknownKeys |
Constructor and Description |
---|
FormManager(FormDescriptor fd) |
Modifier and Type | Method and Description |
---|---|
Map<String,String[]> |
fields()
Get the form fields as submitted by the client.
|
void |
flushCache() |
Object |
invoke(Object proxy,
Method method,
Object[] args) |
void |
load(FormDataProvider data,
Form proxy)
Before using the form, implementors must ensure this method is called to initialize form data, otherwise NPE will
be thrown.
|
static <T> T |
newProxy(Class<T> type) |
Collection<String> |
unknownKeys() |
protected List<String> unknownKeys
protected FormDescriptor fd
protected static Map<Class<?>,FormDescriptor> forms
public FormManager(FormDescriptor fd)
public Collection<String> unknownKeys()
unknownKeys
in interface Form
public Map<String,String[]> fields()
Form
public void load(FormDataProvider data, Form proxy) throws ValidationException
Form
load
in interface Form
data
- the form data sourceproxy
- the proxy to the user formValidationException
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable
invoke
in interface InvocationHandler
Throwable
public void flushCache()
Copyright © 2015 Nuxeo SA. All rights reserved.