Enum TouchEventType

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      TOUCH_CANCEL
      Sent when a touch point has been disrupted in some way.
      There are several possible reasons why this might happen (and the exact reasons will vary from device to device, as well as browser to browser).
      TOUCH_END
      Sent when the user removes a touch point from the surface; that is, when they lift a finger or stylus from the surface.
      This is also sent if the touch point moves off the edge of the surface; for example, if the user's finger slides off the edge of the screen.
      TOUCH_MOVE
      Sent when the user moves a touch point along the surface.
      The event's target is the same element that received the TOUCH_START event corresponding to the touch point, even if the touch point has moved outside that element.
      TOUCH_START
      Sent when the user places a touch point on the touch surface.
      The event's target will be the element in which the touch occurred.
    • Enum Constant Detail

      • TOUCH_START

        public static final TouchEventType TOUCH_START
        Sent when the user places a touch point on the touch surface.
        The event's target will be the element in which the touch occurred.
      • TOUCH_MOVE

        public static final TouchEventType TOUCH_MOVE
        Sent when the user moves a touch point along the surface.
        The event's target is the same element that received the TOUCH_START event corresponding to the touch point, even if the touch point has moved outside that element.
      • TOUCH_END

        public static final TouchEventType TOUCH_END
        Sent when the user removes a touch point from the surface; that is, when they lift a finger or stylus from the surface.
        This is also sent if the touch point moves off the edge of the surface; for example, if the user's finger slides off the edge of the screen.
      • TOUCH_CANCEL

        public static final TouchEventType TOUCH_CANCEL
        Sent when a touch point has been disrupted in some way.
        There are several possible reasons why this might happen (and the exact reasons will vary from device to device, as well as browser to browser).
    • Method Detail

      • values

        public static TouchEventType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (TouchEventType c : TouchEventType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static TouchEventType valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • value

        public String value()
        Description copied from interface: Key
        Returns the name value of property
        Specified by:
        value in interface Key
        Returns:
        the name value of property