Class UnknownContext
- java.lang.Object
-
- com.itextpdf.commons.actions.contexts.UnknownContext
-
-
Field Summary
Fields Modifier and Type Field Description private booleanallowEventsstatic IContextPERMISSIVETheIContextthat allows all events.static IContextRESTRICTIVETheIContextthat forbids all events.
-
Constructor Summary
Constructors Constructor Description UnknownContext(boolean allowEvents)Creates a fallbackIContext.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisAllowed(AbstractContextBasedITextEvent event)Depending on its internal state allows or rejects all event.
-
-
-
Constructor Detail
-
UnknownContext
public UnknownContext(boolean allowEvents)
Creates a fallbackIContext.- Parameters:
allowEvents- defines whether the context allows all events or not
-
-
Method Detail
-
isAllowed
public boolean isAllowed(AbstractContextBasedITextEvent event)
Depending on its internal state allows or rejects all event. Behaviour is defined via constructorUnknownContext(boolean)
-
-