Package com.altova.automation.XMLSpy
Class DocumentEventsDefaultHandler
java.lang.Object
com.altova.automation.XMLSpy.DocumentEventsDefaultHandler
- All Implemented Interfaces:
COMDispatchEvent,DocumentEvents
public class DocumentEventsDefaultHandler extends java.lang.Object implements DocumentEvents
-
Constructor Summary
Constructors Constructor Description DocumentEventsDefaultHandler() -
Method Summary
Modifier and Type Method Description booleanonBeforeCloseDocument(Document i_ipDoc)method OnBeforeCloseDocumentvoidonBeforeSaveDocument(Document i_ipDoc, FileSelectionDlg io_ipDlg)method OnBeforeSaveDocumentbooleanonBeforeValidate(Document i_ipDoc, boolean i_OnLoading, boolean i_bOnCommand)method OnBeforeValidatevoidonCloseDocument(Document i_ipDocument)method OnCloseDocumentJVariantonEvent(int methodID, JVariant[] pDispParams)Distribute the event - call the appropriate handler with the converted COM parameters.voidonViewActivation(Document i_ipDoc, Enums.SPYViewModes i_eViewType, boolean i_bActivated)method OnViewActivation
-
Constructor Details
-
DocumentEventsDefaultHandler
public DocumentEventsDefaultHandler()
-
-
Method Details
-
onViewActivation
public void onViewActivation(Document i_ipDoc, Enums.SPYViewModes i_eViewType, boolean i_bActivated) throws AutomationExceptionmethod OnViewActivation- Specified by:
onViewActivationin interfaceDocumentEvents- Throws:
AutomationException
-
onBeforeSaveDocument
public void onBeforeSaveDocument(Document i_ipDoc, FileSelectionDlg io_ipDlg) throws AutomationExceptionmethod OnBeforeSaveDocument- Specified by:
onBeforeSaveDocumentin interfaceDocumentEvents- Throws:
AutomationException
-
onBeforeCloseDocument
method OnBeforeCloseDocument- Specified by:
onBeforeCloseDocumentin interfaceDocumentEvents- Throws:
AutomationException
-
onCloseDocument
method OnCloseDocument- Specified by:
onCloseDocumentin interfaceDocumentEvents- Throws:
AutomationException
-
onBeforeValidate
public boolean onBeforeValidate(Document i_ipDoc, boolean i_OnLoading, boolean i_bOnCommand) throws AutomationExceptionmethod OnBeforeValidate- Specified by:
onBeforeValidatein interfaceDocumentEvents- Throws:
AutomationException
-
onEvent
Distribute the event - call the appropriate handler with the converted COM parameters.- Specified by:
onEventin interfaceCOMDispatchEvent- Parameters:
methodID- ID of the event method as defined in the COM event interface.pDispParams- parameters to the event- Returns:
- result value of the event call
- Throws:
AutomationException
-