iText 8.0.2 API
iText.Commons.Actions.Contexts.GenericContext Class Reference

Generic context that allows iText.Commons.Actions.AbstractContextBasedITextEvent based on the whitelist of supported events. More...

Inheritance diagram for iText.Commons.Actions.Contexts.GenericContext:
iText.Commons.Actions.Contexts.IContext

Public Member Functions

  GenericContext (ICollection< String > supportedProducts)
  Creates a Generic Context instance with support of provided namespaces and products. More...
 
virtual bool  IsAllowed (AbstractContextBasedITextEvent @event)
  Checks if the source product of the event is supported by the context. More...
 

Detailed Description

Generic context that allows iText.Commons.Actions.AbstractContextBasedITextEvent based on the whitelist of supported events.

Constructor & Destructor Documentation

◆ GenericContext()

iText.Commons.Actions.Contexts.GenericContext.GenericContext ( ICollection< String >  supportedProducts )
inline

Creates a Generic Context instance with support of provided namespaces and products.

Parameters
supportedProducts is a collection of supported products

Member Function Documentation

◆ IsAllowed()

virtual bool iText.Commons.Actions.Contexts.GenericContext.IsAllowed ( AbstractContextBasedITextEvent event )
inlinevirtual

Checks if the source product of the event is supported by the context.

Parameters
event

Determines weather event should be processed or not.

Returns

Determines weather event should be processed or not.

Implements iText.Commons.Actions.Contexts.IContext.