|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mozilla.javascript.NativeJavaObject
helma.scripting.rhino.JavaObject
public class JavaObject
Field Summary |
---|
Fields inherited from class org.mozilla.javascript.NativeJavaObject |
---|
javaObject, members, parent, prototype, staticType |
Fields inherited from interface org.mozilla.javascript.Scriptable |
---|
NOT_FOUND |
Constructor Summary | |
---|---|
JavaObject(org.mozilla.javascript.Scriptable scope,
java.lang.Object obj,
java.lang.String protoName,
org.mozilla.javascript.Scriptable prototype,
RhinoCore core)
Creates a new JavaObject wrapper. |
Method Summary | |
---|---|
java.lang.Object |
get(java.lang.String name,
org.mozilla.javascript.Scriptable start)
Get a named property from this object. |
java.lang.Object |
getResource(java.lang.String resourceName)
Returns a prototype's resource of a given name. |
java.lang.Object |
getResources(java.lang.String resourceName)
Returns an array containing the prototype's resource with a given name. |
boolean |
has(java.lang.String name,
org.mozilla.javascript.Scriptable start)
Checks whether the given property is defined in this object. |
java.lang.Object |
href(java.lang.Object action,
java.lang.Object params)
Get the URL for this object with the application |
boolean |
renderSkin(java.lang.Object skinobj,
java.lang.Object paramobj)
|
java.lang.String |
renderSkinAsString(java.lang.Object skinobj,
java.lang.Object paramobj)
|
Methods inherited from class org.mozilla.javascript.NativeJavaObject |
---|
canConvert, coerceType, delete, delete, get, getClassName, getDefaultValue, getIds, getParentScope, getPrototype, has, hasInstance, initMembers, put, put, setParentScope, setPrototype, unwrap, wrap |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JavaObject(org.mozilla.javascript.Scriptable scope, java.lang.Object obj, java.lang.String protoName, org.mozilla.javascript.Scriptable prototype, RhinoCore core)
Method Detail |
---|
public boolean renderSkin(java.lang.Object skinobj, java.lang.Object paramobj) throws java.io.UnsupportedEncodingException, java.io.IOException
skinobj
- ...paramobj
- ...
java.io.UnsupportedEncodingException
java.io.IOException
public java.lang.String renderSkinAsString(java.lang.Object skinobj, java.lang.Object paramobj) throws java.io.UnsupportedEncodingException, java.io.IOException
skinobj
- ...paramobj
- ...
java.io.UnsupportedEncodingException
java.io.IOException
public java.lang.Object href(java.lang.Object action, java.lang.Object params) throws java.io.UnsupportedEncodingException, java.io.IOException
action
- optional action nameparams
- optional query parameters
java.io.UnsupportedEncodingException
- if the application's charset property
is not a valid encoding name
java.io.IOException
public boolean has(java.lang.String name, org.mozilla.javascript.Scriptable start)
has
in interface org.mozilla.javascript.Scriptable
has
in class org.mozilla.javascript.NativeJavaObject
public java.lang.Object get(java.lang.String name, org.mozilla.javascript.Scriptable start)
get
in interface org.mozilla.javascript.Scriptable
get
in class org.mozilla.javascript.NativeJavaObject
public java.lang.Object getResource(java.lang.String resourceName)
resourceName
- the name of the resource, e.g. "type.properties",
"messages.properties", "script.js", etc.
public java.lang.Object getResources(java.lang.String resourceName)
resourceName
- the name of the resource, e.g. "type.properties",
"messages.properties", "script.js", etc.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |