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
The IEvent that is sent from a IView to its component and notifies that validation is required.
  • Constructor Details

    • 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 Details

    • 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.