Package com._1c.g5.aef2.standard.events
Class ViewModelNotifyEvent
java.lang.Object
com._1c.g5.aef2.standard.events.ViewModelNotifyEvent
- All Implemented Interfaces:
IEvent
The view model notification event.
-
Constructor Summary
ConstructorsConstructorDescriptionViewModelNotifyEvent
(Runnable runnable, Model notifier) Creates a new event. -
Method Summary
Modifier and TypeMethodDescriptionReturns the runnable to execute according to receiver's logic.boolean
Returns if the event needs to be processed.
-
Constructor Details
-
ViewModelNotifyEvent
Creates a new event.- Parameters:
runnable
- the runnable to execute according to receiver's logic, cannot benull
.notifier
- the notifier model, cannot benull
.
-
-
Method Details
-
getRunnable
Returns the runnable to execute according to receiver's logic.- Returns:
- the runnable, never
null
.
-
needsProcessing
public boolean needsProcessing()Returns if the event needs to be processed.- Returns:
- if the event needs to be processed.
-