org.directwebremoting.io
Interface JavascriptObject

All Known Implementing Classes:
DefaultJavascriptObject

public interface JavascriptObject

Represents a JavaScript object, passed in from a client for later use.

A JavascriptObject is tied to a specific object in a specific browser page. In this way the eval of a JavascriptObject is outside of the normal execution scoping provided by Browser.

Author:
Joe Walker [joe at getahead dot ltd dot uk]

Method Summary
 void close()
          A small amount of data is stored on the client to track the remotely.
 void execute(java.lang.String methodName, java.lang.Object... params)
          Execute the function.
 void set(java.lang.String propertyName, java.lang.Object data)
          Add a property to a JavaScript object.
 

Method Detail

execute

void execute(java.lang.String methodName,
             java.lang.Object... params)
Execute the function. TODO: At some stage it would be good to allow the final parameter to be a Callback....

Parameters:
params - The data to pass to the server

set

void set(java.lang.String propertyName,
         java.lang.Object data)
Add a property to a JavaScript object. The type of the data must be convertible by DWR.


close

void close()
A small amount of data is stored on the client to track the remotely. accessible objects. To clear this data, the function needs to be cleared on the server.


Copyright ยจ 2008