コード例 #1
0
  public Proxy getter_ownerElement() {
    Log.d(TAG, "get ownerElement", Log.DEBUG_MODE);
    AttrProxy proxy = (AttrProxy) getProxy();
    Scriptable thisObj = this;
    ti.modules.titanium.xml.ElementProxy javaResult = proxy.getOwnerElement();

    Proxy rhinoResult = (Proxy) TypeConverter.javaObjectToJsObject(javaResult, this);
    return rhinoResult;
  }
コード例 #2
0
  public Object getOwnerElement(Context context, Scriptable thisObj, Object[] args) {
    Log.d(TAG, "getOwnerElement()", Log.DEBUG_MODE);

    try {
      AttrProxy proxy = (AttrProxy) ((Proxy) thisObj).getProxy();

      ti.modules.titanium.xml.ElementProxy javaResult = proxy.getOwnerElement();

      Proxy rhinoResult = (Proxy) TypeConverter.javaObjectToJsObject(javaResult, this);

      return rhinoResult;

    } catch (Throwable throwable) {
      Context.throwAsScriptRuntimeEx(throwable);
      return Undefined.instance;
    }
  }