iText 8.0.2 API
iText.Commons.Actions.Contexts.IContext Interface Reference

The class that determines weather event should be processed or not. More...

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

Public Member Functions

bool  IsAllowed (AbstractContextBasedITextEvent @event)
  Determines weather event should be processed or not. More...
 

Detailed Description

The class that determines weather event should be processed or not.

The class that determines weather event should be processed or not. Is calculated by the ContextManager

Member Function Documentation

◆ IsAllowed()

bool iText.Commons.Actions.Contexts.IContext.IsAllowed ( AbstractContextBasedITextEvent event )

Determines weather event should be processed or not.

Parameters
event is an event to test
Returns
true if event is allowed by the actual context and false otherwise

Implemented in iText.Commons.Actions.Contexts.UnknownContext, and iText.Commons.Actions.Contexts.GenericContext.