Microsoft SDK for Java

EventInfo.addEventHandler

Adds a delegate to a component.

Syntax

public void addEventHandler( Object component, Delegate value )

Parameters

component

The component on which the delegate will receive events.

value

A com.ms.lang.Delegate object that encapsulates the handling method and object.

Remarks

This method invokes the component's addOn<EventName> method to add the specified delegate.

See Also   removeEventHandler

© 1999 Microsoft Corporation. All rights reserved. Terms of use.