Package com._1c.g5.aef2.standard.events
Class ValidationRequiredEvent
java.lang.Object
com._1c.g5.aef2.events.ViewModelEvent
com._1c.g5.aef2.standard.events.ValidationRequiredEvent
- All Implemented Interfaces:
IEvent
-
Constructor Summary
ConstructorsConstructorDescriptionValidationRequiredEvent
(IViewModel viewModel, Object target, boolean discardModelChanges) Creates a new event. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns value indicating that component should discard changes.Returns the target object to validate.Methods inherited from class com._1c.g5.aef2.events.ViewModelEvent
getViewModel
-
Constructor Details
-
ValidationRequiredEvent
Creates a new event.- Parameters:
viewModel
- the view model.target
- the target object to validate.discardModelChanges
- the value indicating that component should discard changes.
-
-
Method Details
-
getTarget
Returns the target object to validate.- Returns:
- the target object to validate.
-
discardModelChanges
public boolean discardModelChanges()Returns value indicating that component should discard changes.- Returns:
true
if it is needed to discard model changes.
-