Unlike the standard APIs for EditLive! for XML, which are used in the webpage loading the applet, the advanced APIs are Java classes and interfaces specifying the default functionality of the EditLive! for XML applet. The advanced APIs are used to extend the core functionalities of the applet. The instationation APIs can then be used when the applet is loaded into a webpage to specify information such as the document and styles loaded into EditLive! for XML.
To use the advanced APIs developers must create a new Java class. In a webpage loading an instance of EditLive! for XML, the addJar instantiation property is used to specify this new class to load, instead of the default instance of EditLive! for XML. Any other values specified through the instantiation APIs (e.g. XML configuration file location, the HTML document to be loaded into the editor) are then sent to this newly defined class upon loading EditLive! for XML.
The following steps outline how the advanced APIs are used to customize EditLive! for XML. For more detailed information on these steps see the Examples chapter of this guide :
A Java class needs to be created that accepts an instance of the ELXBean class as it's only parameter in it's constructor. With-in this class the developer then uses the methods of ELXBean to define the appearence and functions of the EditLive! for XML applet.
This class is then compiled and packaged in a jar file.
To load this newly defined instance of EditLive! for XML instead of the default applet instance, use the AddJar instantiation API method. All other values defined in the instantiation APIs will also be passed to this new Java class. Fore more information see the instantiation APIs in the EditLive! for XML Developer's Guide packaged with this SDK.
Copyright 2001-2005 Ephox Corporation. All Rights Reserved.