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.
    • Method Summary

      Modifier and TypeMethod and Description
      static EventInfocreateEventInfo(java.lang.String type)
      Creates an event info for the given event type.
      static MouseEventInfocreateMouseEventInfo(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.