Enum MouseEventType

    • Enum Constant Detail

      • CLICK

        public static final MouseEventType CLICK
        Triggers after mousedown and then mouseup over the same element if the left mouse button was used.
      • MOUSE_MOVE

        public static final MouseEventType MOUSE_MOVE
        Every mouse move over an element triggers that event.
      • MOUSE_UP

        public static final MouseEventType MOUSE_UP
        Mouse button is clicked over an element
      • MOUSE_DOWN

        public static final MouseEventType MOUSE_DOWN
        Mouse button is released over an element
      • MOUSE_ENTER

        public static final MouseEventType MOUSE_ENTER
        Mouse pointer entries in an element.
      • MOUSE_LEAVE

        public static final MouseEventType MOUSE_LEAVE
        Mouse pointer leaves from an element.
      • MOUSE_OVER

        public static final MouseEventType MOUSE_OVER
        Mouse pointer comes over from an element.
      • MOUSE_OUT

        public static final MouseEventType MOUSE_OUT
        Mouse pointer comes out from an element.
      • DOUBLE_CLICK

        public static final MouseEventType DOUBLE_CLICK
        Triggers after two clicks on the same element within a short timeframe.
      • CONTEXT_MENU

        public static final MouseEventType CONTEXT_MENU
        Triggers when the right mouse button is pressed.
        There are other ways to open a context menu, e.g. using a special keyboard key, it triggers in that case also, so it’s not exactly the mouse event.
    • Method Detail

      • values

        public static MouseEventType[] 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 (MouseEventType c : MouseEventType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static MouseEventType 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