public class PostProcessing extends Object implements IPostEventProcessing
Constructor and Description |
---|
PostProcessing(GProp<?> initialDispatcher)
Constructor with initial dispatcher.
|
Modifier and Type | Method and Description |
---|---|
void |
addPostProcessor(EventListener postProcessor)
Adds a post-event processor that will be called when the event has completed its notification process.
|
void |
execute(GProp<?> dispatcher,
GEvent event)
Executes all post processors for a dispatcher.
|
EventListener[] |
getPostProcessors(GProp<?> dispatcher)
Gets the post-processors.
|
boolean |
hasPostProcessors(GProp<?> dispatcher)
Checks for presence of post processors.
|
void |
setInitialProperty(GProp<?> initialDispatcher)
Assigns the initial sender property that should perform post processing of events.
|
public PostProcessing(GProp<?> initialDispatcher)
initialDispatcher
- The initial dispatcher, can be null.public void setInitialProperty(GProp<?> initialDispatcher)
setInitialProperty
in interface IPostEventProcessing
initialDispatcher
- The initial dispatcher.public void addPostProcessor(EventListener postProcessor)
postProcessor
not be called.
Note: the post-processors are called no matter if the event has been canceled, so the processor may have to check the cancel state.
Calling this method with the same postProcessor
more than once does not add it again.
addPostProcessor
in interface IPostEventProcessing
postProcessor
- Processor to add.NullPointerException
- If the postProcessor
is null.public EventListener[] getPostProcessors(GProp<?> dispatcher)
getPostProcessors
in interface IPostEventProcessing
dispatcher
- The property retrieving the post-processors, null for none.public boolean hasPostProcessors(GProp<?> dispatcher)
dispatcher
- The property retrieving the post-processors, null for none.public void execute(GProp<?> dispatcher, GEvent event)
dispatcher
- The property retrieving the post-processors, null for none.event
- Event to dispatch to the post processors.NullPointerException
- if the dispatcher or event is null.iizi® is a registered trademark of Mindus SARL. © Copyright Mindus SARL, 2020. All rights reserved.