public final class ScriptForm extends ScriptBase
| Modifier and Type | Class and Description |
|---|---|
class |
ScriptForm.FormBinding |
context, properties| Constructor and Description |
|---|
ScriptForm(RequestContext context,
ModelObject object)
Instantiates a new script form.
|
| Modifier and Type | Method and Description |
|---|---|
void |
bind(String title,
Object value)
Binds an element to this form.
|
ScriptForm.FormBinding |
bind(String id,
Object value,
Object nullValue)
Binds an element to this form.
|
protected org.springframework.extensions.webscripts.ScriptableMap |
buildProperties() |
ScriptForm.FormBinding |
getBinding(String id)
Gets an element form binding.
|
String[] |
getBindingIds()
Gets the ids of all element form bindings.
|
Object[] |
getBindings()
Gets the bindings.
|
protected static String |
getPrefix(RequestContext context,
ModelObject object) |
protected static String |
prefix(RequestContext context,
ModelObject object,
String id) |
protected static String |
unprefix(String prefixedId) |
getConfig, getObject, getObjectService, getProperties, getRequestContext, toStringpublic ScriptForm(RequestContext context, ModelObject object)
context - the request contextprotected org.springframework.extensions.webscripts.ScriptableMap buildProperties()
buildProperties in class ScriptBasepublic void bind(String title, Object value)
title - the titlevalue - the valuepublic ScriptForm.FormBinding bind(String id, Object value, Object nullValue)
id - the idvalue - the valuenullValue - the null valuepublic ScriptForm.FormBinding getBinding(String id)
id - the idpublic Object[] getBindings()
public String[] getBindingIds()
protected static String getPrefix(RequestContext context, ModelObject object)
protected static String prefix(RequestContext context, ModelObject object, String id)
Copyright © 2005–2016 Alfresco Software. All rights reserved.