Share this page

com.hp.lft.sdk.web

## Class MouseEventInfo

- java.lang.Object
- - com.hp.lft.sdk.web.EventInfo
  - - com.hp.lft.sdk.web.MouseEventInfo

-     public class MouseEventInfo
      extends EventInfo

  The HTML mouse event info to be used for the FireEvent method.

- - ### Method Summary

    Modifier and Type | Method and Description
    --- | ---
    `MouseButton` | `getButton()` Returns the button of the mouse that is used with the event.
    `Location` | `getLocation()` Returns the location to be used by the event.
    `void` | `setButton(MouseButton button)` Sets the button of the mouse that is used with the event.
    `void` | `setLocation(Location location)` Sets the location to be used by the event.

    - ### Methods inherited from class com.hp.lft.sdk.web.EventInfo

      `getType, setType`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### getButton

          public MouseButton getButton()

      Returns the button of the mouse that is used with the event. Default value: LEFT
      Returns:
        the button of the mouse that is used with the event.

    - #### setButton

          public void setButton(MouseButton button)

      Sets the button of the mouse that is used with the event.
      Parameters:
        `button` - the button of the mouse that is used with the event.

    - #### getLocation

          public Location getLocation()

      Returns the location to be used by the event. Default value: CENTER
      Returns:
        the location to be used by the event.

    - #### setLocation

          public void setLocation(Location location)

      Sets the location to be used by the event.
      Parameters:
        `location` - the location to be used by the event.

Tips to improve your search results... UFT Developer Java SDK Reference Version 15.0-15.0.2 UFT Developer SDK Reference All View Local Help Center View Online Help Center back Go back in browser history forward Go forward in browser history Remove search highlights next topic Go to next topic previous topic Go to previous topic Print the current topic Version: