|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FormDataProviderEnvironment
Environment, provided at FormDataProvider.init(FormDataProviderEnvironment)
.
Method Summary | |
---|---|
IdProvidingFormData |
createEmpty(GomEditorProvider form)
Create an empty IdProvidingFormData instance for the specified form. |
GomEditorProvider |
createGomEditorProvider(String xml)
Create a GomEditorProvider for the specified form definition. |
Map<String,String> |
getParams()
Delivers the generic paramters defined in the form. |
SpecialistsBroker |
getSpecialistsBroker()
Starting point for requesting services or providers. |
Method Detail |
---|
@NotNull SpecialistsBroker getSpecialistsBroker()
@NotNull Map<String,String> getParams()
@NotNull GomEditorProvider createGomEditorProvider(String xml)
GomEditorProvider
for the specified form definition.
You can use this to create an empty FormData
instance: env.createEmpty(env.createGomEditorProvider(xml))
.
You should cache the instance for repeated FormDataProviderEnvironment.createEmpty(GomEditorProvider)
calls.
xml
- Form definition.
FormDataProviderEnvironment.createEmpty(GomEditorProvider)
@NotNull IdProvidingFormData createEmpty(GomEditorProvider form)
IdProvidingFormData
instance for the specified form. The instance could be manipulated
without further restrictions (despite the restrictions provided by the form itself).
The caller is responsible to set the unique id
on the returned instance before the returned instance is exposed by
FormDataProvider.get(java.util.List)
.
form
- the newly created empty formFormDataProviderEnvironment.createGomEditorProvider(String)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |