The IDispatch class is the abstract class that provides a superclass for all ActiveX control and automation interface classes created when you import an ActiveX control or automation type library into JADE.
A class is generated as a subclass of the IDispatch class for each required ActiveX interface. Each of these generated classes has properties and methods added to it that map to the properties and methods of the interface. The properties (using mapping methods) and methods call an external method that updates the object.
To use an event interface, you must register your interest in a specific event, which involves specifying the event method of the interface and the method that you want executed when the event is triggered. (For details, see the beginNotifyAutomationEvent method.)
When you create an instance (that is, a subclass) of the JADE ActiveXAutomation or
When you call JADE ActiveX class methods (as you do for any other JADE class), these method calls are passed by the default interface to the actual ActiveX object. If the ActiveX object returns a reference to another interface in response to a method call or the getting of a property, JADE creates an instance of the corresponding JADE interface class and returns a reference to that instance instead.
You can create neither transient nor persistent instances of the IDispatch class. Instances of this class are created by JADE at run time when an ActiveX object supplies an interface pointer and they are deleted when the ActiveX object that is using them is deleted.
Use the getInterface method defined in the ActiveXAutomation and
The IJadeAutoFont, IJadeAutoFontEvents, and IJadeAutoPicture standard interface classes were created as subclasses of the IDispatch class when the OLE Automation library that has been preloaded into the RootSchema was imported.
For details about:
The methods defined in the IDispatch class, see "IDispatch Methods", in the following subsection.
IUnknown class and the ActiveXInterface class, see "IUnknown Class" and "ActiveXInterface Class", elsewhere in this chapter.
Using ActiveX Control and Automation Server Libraries, see
The OLE_Automation object preloaded into JADE, see "ActiveXAutomation Class", earlier in this chapter.
The methods and properties defined in the OLE_Automation class and the IJadeAutoFont, IJadeAutoFontEvents, and IJadeAutoPicture subclasses, refer to your COM documentation.
IJadeAutoFont, IJadeAutoFontEvents, and IJadeAutoPicture classes preloaded into the RootSchema with the OLE_Automation object class, ActiveX control and automation object classes imported by developers