public final class ScriptFormData extends ScriptBase
| Modifier and Type | Class and Description |
|---|---|
class |
ScriptFormData.FormField |
context, properties| Constructor and Description |
|---|
ScriptFormData(RequestContext context,
ModelObject object)
Instantiates a new script form.
|
| Modifier and Type | Method and Description |
|---|---|
protected org.springframework.extensions.webscripts.ScriptableMap |
buildProperties() |
ScriptFormData.FormField |
getField(String id)
Gets an element form field.
|
String[] |
getFieldIds()
Gets the ids of all element form fields.
|
Object[] |
getFields()
Gets the fields.
|
void |
load(String prefix)
Populates the object with form bindings for the given namespace
|
protected void |
processMapIntoFields(Map map,
String prefix)
Converts a map of name/value pairs into fields if they match
the specified prefix
|
getConfig, getObject, getObjectService, getProperties, getRequestContext, toStringpublic ScriptFormData(RequestContext context, ModelObject object)
context - the request contextobject - ModelObjectprotected org.springframework.extensions.webscripts.ScriptableMap buildProperties()
buildProperties in class ScriptBasepublic ScriptFormData.FormField getField(String id)
id - the idpublic Object[] getFields()
public String[] getFieldIds()
public void load(String prefix)
Copyright © 2005–2016 Alfresco Software. All rights reserved.