Open topic with navigation

com.hp.lft.sdk.web

## Class EventInfoFactory

- java.lang.Object
- - com.hp.lft.sdk.web.EventInfoFactory

-     public class EventInfoFactory
      extends java.lang.Object

  A factory for creating EventInfo to be passed to the fireEvent method of the Web test object.

- - ### Constructor Summary

    Constructor and Description
    `EventInfoFactory()`

  - ### Method Summary

    Modifier and Type | Method and Description
    --- | ---
    `static EventInfo` | `createEventInfo(java.lang.String type)` Creates an event info for the given event type.
    `static MouseEventInfo` | `createMouseEventInfo(MouseEventTypes type)` Creates a mouse event info for the given mouse event type.

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

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

- - ### Constructor Detail

    - #### EventInfoFactory

          public EventInfoFactory()

  - ### Method Detail

    - #### createEventInfo

          public static EventInfo createEventInfo(java.lang.String type)

      Creates an event info for the given event type.
      Parameters:
        `type` - the type of event. The event can be any HTML DOM event. For details, see http://www.w3schools.com/jsref/dom_obj_event.asp
      Returns:
        event info for the given event type.

    - #### createMouseEventInfo

          public static MouseEventInfo createMouseEventInfo(MouseEventTypes type)

      Creates a mouse event info for the given mouse event type.
      Parameters:
        `type` - the type of mouse event.
      Returns:
        a mouse event info for the given mouse event type.