fi.hut.tml.xsmiles.ecma
Interface ECMAScripter

All Known Implementing Classes:
DummyECMAScripter, RhinoScripter

public interface ECMAScripter

EcmaScript interface that all ecma script engines must implement. A stub implementation of the ECMAScripter.

Version:
$Revision: 6512 $
Author:
Mikko Honkala, Jukka Heinonen

Method Summary
 void deleteExposedObject(java.lang.String name, java.lang.Object theObject)
          Remove a previously exposed object
 void destroy()
           
 void eval(java.lang.String scriptText)
           
 void exposeToScriptEngine(java.lang.String name, java.lang.Object theObject)
          Expose a java object to javascript as javascript object
 ESEventBroker getESEventBroker()
           
 void initialize(org.w3c.dom.Document doc)
          Resets the ECMAScript interpreter.
 boolean isInitialized()
           
 void setBrowserWindow(BrowserWindow browser)
           
 

Method Detail

setBrowserWindow

public void setBrowserWindow(BrowserWindow browser)

getESEventBroker

public ESEventBroker getESEventBroker()

initialize

public void initialize(org.w3c.dom.Document doc)
Resets the ECMAScript interpreter. The funtion is called from the class XMLDocument. It creates a new DOMHandler instance, which is not yet given a document. It also creates a new ecma interpreter


isInitialized

public boolean isInitialized()

destroy

public void destroy()

eval

public void eval(java.lang.String scriptText)

exposeToScriptEngine

public void exposeToScriptEngine(java.lang.String name,
                                 java.lang.Object theObject)
Expose a java object to javascript as javascript object


deleteExposedObject

public void deleteExposedObject(java.lang.String name,
                                java.lang.Object theObject)
Remove a previously exposed object



X-Smiles 1.2