iText 8.0.2 API
iText.Commons.Actions.EventManager Class Reference

Entry point for event handling mechanism. More...

Public Member Functions

void  OnEvent (IEvent @event)
  Handles the event. More...
 
void  Register (IEventHandler handler)
  Add new IEventHandler to the event handling process. More...
 
bool  IsRegistered (IEventHandler handler)
  Check if the handler was registered for event handling process. More...
 
bool  Unregister (IEventHandler handler)
  Removes handler from event handling process. More...
 

Static Public Member Functions

static iText.Commons.Actions.EventManager  GetInstance ()
  Allows an access to the instance of EventManager. More...
 
static void  AcknowledgeAgplUsageDisableWarningMessage ()
  Deliberately turns off the warning message about AGPL usage. More...
 

Detailed Description

Entry point for event handling mechanism.

Entry point for event handling mechanism. Class is a singleton, see GetInstance().

Member Function Documentation

◆ AcknowledgeAgplUsageDisableWarningMessage()

static void iText.Commons.Actions.EventManager.AcknowledgeAgplUsageDisableWarningMessage ( )
inlinestatic

Deliberately turns off the warning message about AGPL usage.

Deliberately turns off the warning message about AGPL usage.

Important note. Calling of this method means that the terms of AGPL license are met.

◆ GetInstance()

static iText.Commons.Actions.EventManager iText.Commons.Actions.EventManager.GetInstance ( )
inlinestatic

Allows an access to the instance of EventManager.

Returns
the instance of the class

◆ IsRegistered()

bool iText.Commons.Actions.EventManager.IsRegistered ( IEventHandler  handler )
inline

Check if the handler was registered for event handling process.

Parameters
handler is a handler to check
Returns
true if handler has been already registered and false otherwise

◆ OnEvent()

void iText.Commons.Actions.EventManager.OnEvent ( IEvent event )
inline

Handles the event.

Parameters
event to handle

◆ Register()

void iText.Commons.Actions.EventManager.Register ( IEventHandler  handler )
inline

Add new IEventHandler to the event handling process.

Parameters
handler is a handler to add

◆ Unregister()

bool iText.Commons.Actions.EventManager.Unregister ( IEventHandler  handler )
inline

Removes handler from event handling process.

Parameters
handler is a handle to remove
Returns
true if the handler had been registered previously and was removed. False if the handler was not found among registered handlers