|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface JSObjectFactory
Defines an interface for converting JavaScript objects to and from Java objects. It is optional to provide an implementation for converting JavaScript objects to Java objects.
WrapperFactory
Field Summary | |
---|---|
static java.lang.String |
CLASS_NAME
Deprecated. Constant for the JSObject property that holds the class name of the Java object the JSObject was converted from. |
Method Summary | |
---|---|
java.lang.Object |
createJavaObject(java.lang.String name,
FESI.jslib.JSObject o)
Deprecated. Create a Java object from the specified JavaScript object. |
FESI.jslib.JSObject |
createScriptObject(FESI.jslib.JSGlobalObject go,
FESI.jslib.JSObject parent,
java.lang.String name,
java.lang.Object item)
Deprecated. Create a named object that can be used in the client's script. |
Field Detail |
---|
static final java.lang.String CLASS_NAME
Method Detail |
---|
FESI.jslib.JSObject createScriptObject(FESI.jslib.JSGlobalObject go, FESI.jslib.JSObject parent, java.lang.String name, java.lang.Object item) throws FESI.jslib.JSException
go
- JSGlobalObject as calling context.parent
- JSObject to be registered as a member of. Same as go if
global.name
- Name of the object in the scripting environmentitem
- Object that will be made available as a script object
FESI.jslib.JSException
- when the object can not be converted into a format that can
be used within the script environmentjava.lang.Object createJavaObject(java.lang.String name, FESI.jslib.JSObject o) throws FESI.jslib.JSException
name
- Name of the JavaScript object. Can be empty.o
- JSObject to convert from.
FESI.jslib.JSException
- if the specified JSObject is malformed or not compatible with
this factory.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |