Class UnknownContext
- java.lang.Object
-
- com.itextpdf.commons.actions.contexts.UnknownContext
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
allowEvents
static IContext
PERMISSIVE
TheIContext
that allows all events.static IContext
RESTRICTIVE
TheIContext
that 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 boolean
isAllowed(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)
-
-