|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.cocoon.components.flow.FlowHelper org.apache.cocoon.components.flow.javascript.JavaScriptFlowHelper org.apache.cocoon.components.flow.javascript.fom.FOM_JavaScriptFlowHelper
public class FOM_JavaScriptFlowHelper
Provides the interface between the JavaScript flow controller layer and the view layer. A view can obtain the JavaScript "live connect" objects (that allow access to Java constructors) through this interface, as well as the FOM objects.
Constructor Summary | |
---|---|
FOM_JavaScriptFlowHelper()
|
Method Summary | |
---|---|
static org.mozilla.javascript.Scriptable |
getFOM_Context(Map objectModel)
|
static org.mozilla.javascript.Scriptable |
getFOM_FlowScope(Map objectModel)
Get the flowscript scope, usable by JS snippets part of the control layer, such as forms event listeners. |
static org.mozilla.javascript.Scriptable |
getFOM_Request(Map objectModel)
|
static org.mozilla.javascript.Scriptable |
getFOM_Response(Map objectModel)
|
static org.mozilla.javascript.Scriptable |
getFOM_Session(Map objectModel)
|
static org.mozilla.javascript.Scriptable |
getFOM_WebContinuation(Map objectModel)
|
static org.mozilla.javascript.Scriptable |
getJavaPackage(Map objectModel)
Return the JS "java" property (that gives access to the "java" package) for use by the view layer |
static org.mozilla.javascript.Scriptable |
getPackages(Map objectModel)
Return the JS "Packages" property (that gives access to Java packages) for use by the view layer |
static void |
setFOM_Context(Map objectModel,
org.mozilla.javascript.Scriptable fom_context)
|
static void |
setFOM_FlowScope(Map objectModel,
org.mozilla.javascript.Scriptable fom_scope)
Set the flowscript scope usable by JS snippets. |
static void |
setFOM_Request(Map objectModel,
org.mozilla.javascript.Scriptable fom_request)
|
static void |
setFOM_Response(Map objectModel,
org.mozilla.javascript.Scriptable fom_response)
|
static void |
setFOM_Session(Map objectModel,
org.mozilla.javascript.Scriptable fom_session)
|
static void |
setFOM_WebContinuation(Map objectModel,
org.mozilla.javascript.Scriptable fom_webContinuation)
|
static void |
setJavaPackage(Map objectModel,
org.mozilla.javascript.Scriptable javaPkg)
Set the JS "java" property in the current request |
static void |
setPackages(Map objectModel,
org.mozilla.javascript.Scriptable pkgs)
Set the JS "Packages" property in the current request |
Methods inherited from class org.apache.cocoon.components.flow.javascript.JavaScriptFlowHelper |
---|
unwrap |
Methods inherited from class org.apache.cocoon.components.flow.FlowHelper |
---|
getContextObject, getWebContinuation, setContextObject, setWebContinuation |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FOM_JavaScriptFlowHelper()
Method Detail |
---|
public static org.mozilla.javascript.Scriptable getPackages(Map objectModel)
objectModel
- The Cocoon Environment's object model
public static void setPackages(Map objectModel, org.mozilla.javascript.Scriptable pkgs)
objectModel
- The Cocoon Environment's object modelpublic static org.mozilla.javascript.Scriptable getJavaPackage(Map objectModel)
objectModel
- The Cocoon Environment's object model
public static void setJavaPackage(Map objectModel, org.mozilla.javascript.Scriptable javaPkg)
objectModel
- The Cocoon Environment's object modelpublic static org.mozilla.javascript.Scriptable getFOM_Request(Map objectModel)
public static void setFOM_Request(Map objectModel, org.mozilla.javascript.Scriptable fom_request)
public static org.mozilla.javascript.Scriptable getFOM_Response(Map objectModel)
public static void setFOM_Response(Map objectModel, org.mozilla.javascript.Scriptable fom_response)
public static org.mozilla.javascript.Scriptable getFOM_Session(Map objectModel)
public static void setFOM_Session(Map objectModel, org.mozilla.javascript.Scriptable fom_session)
public static org.mozilla.javascript.Scriptable getFOM_Context(Map objectModel)
public static void setFOM_Context(Map objectModel, org.mozilla.javascript.Scriptable fom_context)
public static org.mozilla.javascript.Scriptable getFOM_WebContinuation(Map objectModel)
public static void setFOM_WebContinuation(Map objectModel, org.mozilla.javascript.Scriptable fom_webContinuation)
public static org.mozilla.javascript.Scriptable getFOM_FlowScope(Map objectModel)
objectModel
- the object model where the scope is stored
public static void setFOM_FlowScope(Map objectModel, org.mozilla.javascript.Scriptable fom_scope)
objectModel
- fom_scope
- getFOM_FlowScope(Map)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |