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
public class ValidationRequiredEvent extends ViewModelEvent
-
-
Constructor Summary
Constructors Constructor Description ValidationRequiredEvent(IViewModel viewModel, Object target, boolean discardModelChanges)
Creates a new event.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
discardModelChanges()
Returns value indicating that component should discard changes.Object
getTarget()
Returns the target object to validate.-
Methods inherited from class com._1c.g5.aef2.events.ViewModelEvent
getViewModel
-
-
-
-
Constructor Detail
-
ValidationRequiredEvent
public ValidationRequiredEvent(IViewModel viewModel, Object target, boolean discardModelChanges)
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 Detail
-
getTarget
public Object 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.
-
-