|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.extensions.webscripts.ScriptBase org.springframework.extensions.webscripts.ScriptForm
public final class ScriptForm
Describes a Form that can be bound for the currently rendering component.
Nested Class Summary | |
---|---|
class |
ScriptForm.FormBinding
|
Field Summary |
---|
Fields inherited from class org.springframework.extensions.webscripts.ScriptBase |
---|
context, properties |
Constructor Summary | |
---|---|
ScriptForm(RenderContext context)
Instantiates a new script form. |
Method Summary | |
---|---|
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 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(RenderContext context)
|
protected static String |
prefix(RenderContext context,
String id)
|
protected static String |
unprefix(String prefixedId)
|
Methods inherited from class org.springframework.extensions.webscripts.ScriptBase |
---|
getConfig, getModel, getObject, getProperties, getRequestContext, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ScriptForm(RenderContext context)
context
- the request contextMethod Detail |
---|
protected ScriptableMap buildProperties()
buildProperties
in class ScriptBase
public void bind(String title, Object value)
title
- the titlevalue
- the valuepublic ScriptForm.FormBinding bind(String id, Object value, Object nullValue)
title
- the titlevalue
- the valuenullValue
- the null value
public ScriptForm.FormBinding getBinding(String id)
id
- the id
public Object[] getBindings()
public String[] getBindingIds()
protected static String getPrefix(RenderContext context)
protected static String prefix(RenderContext context, String id)
protected static String unprefix(String prefixedId)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |