org.directwebremoting.io
Interface JavascriptFunction

All Known Implementing Classes:
DefaultJavascriptFunction

public interface JavascriptFunction

Represents a callback function, passed in from a client for later execution.

A JavascriptFunction is tied to a specific function in a specific browser page. In this way the eval of a JavascriptFunction 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.Object... params)
          Execute the function.
 void executeAndClose(java.lang.Object... params)
          Execute the function, and clear it's data from the client.
 

Method Detail

execute

void execute(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

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.


executeAndClose

void executeAndClose(java.lang.Object... params)
Execute the function, and clear it's data from the client.

Parameters:
params - The data to pass to the server
See Also:
execute(java.lang.Object...), close()

Copyright 2008