Hello there,
is there a way to put up a java string property in a host object and let it
be handled like a js Array in the script context.
Iam at a starting point, but could sure use some help:
private String[] flags;
public Object jsGet_flags()
{
Scriptable scope = ScriptableObject.getTopLevelScope(this);
Context cx = Context.getCurrentContext();
return cx.newObject(scope, "Array", (Object[])this.flags);
}
//public void jsSet_flags(String[] flags) { this.flags=flags; }
Thanks alot for any help
Normen
_______________________________________________
dev-tech-js-engine-rhino mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino