Table of Contents

Class EventDispatcher

Namespace
iText.Kernel.Events
Assembly
itext.kernel.dll

IEventDispatcher implementation that forwards Events to registered IEventHandler implementations.

public class EventDispatcher : IEventDispatcher
Inheritance
EventDispatcher
Implements
Inherited Members

Constructors

EventDispatcher()

public EventDispatcher()

Fields

eventHandlers

protected IDictionary<string, IList<IEventHandler>> eventHandlers

Field Value

IDictionary<string, IList<IEventHandler>>

Methods

AddEventHandler(string, IEventHandler)

public virtual void AddEventHandler(string type, IEventHandler handler)

Parameters

type string
handler IEventHandler

DispatchEvent(Event)

public virtual void DispatchEvent(Event @event)

Parameters

event Event

DispatchEvent(Event, bool)

public virtual void DispatchEvent(Event @event, bool delayed)

Parameters

event Event
delayed bool

HasEventHandler(string)

public virtual bool HasEventHandler(string type)

Parameters

type string

Returns

bool

RemoveAllHandlers()

Remove all event handlers.

public virtual void RemoveAllHandlers()

RemoveEventHandler(string, IEventHandler)

public virtual void RemoveEventHandler(string type, IEventHandler handler)

Parameters

type string
handler IEventHandler