Introduction to the WebRenderer SDK API









The WebRenderer API is composed of three core packages:







com.webrenderer.* - WebRenderer core methods for creating and managing browser instances.
com.webrenderer.event.* - WebRenderer event classes to capture browser, network, DOM, JavaScript, prompt and other events.
com.webrenderer.dom.* - The WebRenderer DOM access and management package.













The main classes within the com.webrenderer package are centred around the BrowserFactory and IBrowserCanvas interfaces/classes.

The BrowserFactory class is based on the abstract factory design pattern and is used as a control class to set-up WebRenderer and spawn browser instances. After an instance (IBrowserCanvas) is spawned a browser has its own set of event listeners and works as a stand-alone Java Object. Multiple browser instances can be spawned from BrowserFactory.










The IBrowserCanvas and classes that inherit from the IBrowserCanvas (IIEBrowserCanvas, IMozillaBrowserCanvas and ISafariBrowserCanvas) provide browser control methods.













The WebRenderer Event package contains all browser-specific event handlers. Browser, Network, Prompt, Print, Protocol, JavaScript, Mouse and Key events make up the WebRenderer Event set. Specialty access methods are found in each event class.













The WebRenderer DOM package contains all the WebRenderer Document Object Model access and manipulation methods. The DOM package contains classes for top level DOM documents through the IDocumentClass. The IElement class contains public access methods for DOM Elements. The DOM package also contains classes for Cascading Style Sheet manipulation and TextRange access (Mozilla spawn only).






 Copyright JadeLiquid Software - www.jadeliquid.com