Class ViewModelNotifyEvent

  • All Implemented Interfaces:
    IEvent

    public class ViewModelNotifyEvent
    extends Object
    implements IEvent
    The view model notification event.
    • Constructor Detail

      • ViewModelNotifyEvent

        public ViewModelNotifyEvent​(Runnable runnable,
                                    Model notifier)
        Creates a new event.
        Parameters:
        runnable - the runnable to execute according to receiver's logic, cannot be null.
        notifier - the notifier model, cannot be null.
    • Method Detail

      • getRunnable

        public Runnable 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.