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