Class EventInit

    • Constructor Detail

      • EventInit

        public EventInit()
        Creates an empty object
      • EventInit

        public EventInit​(boolean bubbles)
        Creates an initialization object, setting the bubbles value.
        Parameters:
        bubbles - bubbles initialization property.
      • EventInit

        public EventInit​(boolean bubbles,
                         boolean cancelable)
        Creates an initialization object, setting the bubbles and cancelable values.
        Parameters:
        bubbles - bubbles initialization property.
        cancelable - cancelable initialization property.
      • EventInit

        public EventInit​(NativeBaseEvent source)
        Creates an initialization object, cloning all source event data
        Parameters:
        source - source event to clone.
    • Method Detail

      • isBubbles

        public final boolean isBubbles()
        Returns true indicates whether the event bubbles up through the DOM tree or not.
        Returns:
        true indicates whether the event bubbles up through the DOM tree or not
      • setBubbles

        public final void setBubbles​(boolean bubbles)
        Sets true indicates whether the event bubbles up through the DOM tree or not
        Parameters:
        bubbles - true indicates whether the event bubbles up through the DOM tree or not
      • isCancelable

        public final boolean isCancelable()
        Returns true indicates whether the event can be canceled, and therefore prevented as if the event never happened.
        If the event is not cancelable, then its cancelable property will be false and the event listener cannot stop the event from occurring.
        Returns:
        true indicates whether the event can be canceled, and therefore prevented as if the event never happened
      • setCancelable

        public final void setCancelable​(boolean cancelable)
        Sets true indicates whether the event can be canceled, and therefore prevented as if the event never happened.
        If the event is not cancelable, then its cancelable property will be false and the event listener cannot stop the event from occurring.
        Parameters:
        cancelable - true indicates whether the event can be canceled, and therefore prevented as if the event never happened