|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.extensions.webscripts.ScriptBase
org.springframework.extensions.webscripts.ScriptRenderingInstance
public final class ScriptRenderingInstance
Wraps the renderer instance and provisions properties about the currently rendering item to the script writer. The following is valid: var object = instance.object; var objectId = instance.id; var user = instance.user; var renderingProperties = instance.properties;
| Field Summary |
|---|
| Fields inherited from class org.springframework.extensions.webscripts.ScriptBase |
|---|
context, properties |
| Constructor Summary | |
|---|---|
ScriptRenderingInstance(RenderContext context)
Instantiates a new script renderer instance. |
|
| Method Summary | |
|---|---|
protected ScriptableMap |
buildProperties()
|
String |
getHtmlId()
Gets the html id |
String |
getId()
Gets the id. |
ScriptModelObject |
getObject()
Gets the object. |
Object |
getParameter(String name)
Returns the value of a request parameter |
String[] |
getParameterNames()
Returns the names of request parameters |
org.mozilla.javascript.Scriptable |
getParameters()
Returns a scriptable map of name/value pairs |
| 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 ScriptRenderingInstance(RenderContext context)
context - the render context| Method Detail |
|---|
protected ScriptableMap buildProperties()
buildProperties in class ScriptBasepublic ScriptModelObject getObject()
public String getId()
public String getHtmlId()
public String[] getParameterNames()
public Object getParameter(String name)
name -
public org.mozilla.javascript.Scriptable getParameters()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||