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

The fallback IContext. More...

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

Public Member Functions

  UnknownContext (bool allowEvents)
  Creates a fallback IContext. More...
 
virtual bool  IsAllowed (AbstractContextBasedITextEvent @event)
  Depending on its internal state allows or rejects all event. More...
 

Static Public Attributes

static readonly IContext  RESTRICTIVE = new iText.Commons.Actions.Contexts.UnknownContext(false)
  The IContext that forbids all events. More...
 
static readonly IContext  PERMISSIVE = new iText.Commons.Actions.Contexts.UnknownContext(true)
  The IContext that allows all events. More...
 

Detailed Description

The fallback IContext.

Constructor & Destructor Documentation

◆ UnknownContext()

iText.Commons.Actions.Contexts.UnknownContext.UnknownContext ( bool  allowEvents )
inline

Creates a fallback IContext.

Parameters
allowEvents defines whether the context allows all events or not

Member Function Documentation

◆ IsAllowed()

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

Depending on its internal state allows or rejects all event.

Depending on its internal state allows or rejects all event. Behaviour is defined via constructor UnknownContext(bool)

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.

Member Data Documentation

◆ PERMISSIVE

readonly IContext iText.Commons.Actions.Contexts.UnknownContext.PERMISSIVE = new iText.Commons.Actions.Contexts.UnknownContext(true)
static

The IContext that allows all events.

◆ RESTRICTIVE

readonly IContext iText.Commons.Actions.Contexts.UnknownContext.RESTRICTIVE = new iText.Commons.Actions.Contexts.UnknownContext(false)
static

The IContext that forbids all events.