public class FormManager extends Object implements InvocationHandler, Form
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() |
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 static <T> T newProxy(Class<T> type)
public void flushCache()
Copyright © 2015 Nuxeo SA. All rights reserved.