Table of Contents

Class EventInfoFactory

Namespace
HP.LFT.SDK.Java
Assembly
HP.LFT.SDK.dll

A factory for creating EventInfo to be passed to the FireEvent method of Java test objects.

public class EventInfoFactory
Inheritance
EventInfoFactory
Inherited Members

Constructors

EventInfoFactory()

public EventInfoFactory()

Methods

CreateJavaEventInfo(string, string, params object[])

Creates a JavaEventInfo with the given parameters.

public static JavaEventInfo CreateJavaEventInfo(string className, string eventId, params object[] args)

Parameters

className string

The name of the Java class representing the event to be activated.

eventId string

The event ID number or the final field string that represents the event ID.

args object[]

Any parameters of the event's constructor except for the source and EventID.

Returns

JavaEventInfo

A new instance of JavaEventInfo with the given parameters.

CreateKeyboardEventInfo(KeyboardEvent, long, int, int, char)

Creates a KeyboardEventInfo with parameters: newEditBox, when, modifiers,keyCode, and keyChar.

public static KeyboardEventInfo CreateKeyboardEventInfo(KeyboardEvent keyboardEvent, long when, int modifiers, int keyCode, char keyChar)

Parameters

keyboardEvent KeyboardEvent

The KeyboardEvent to create the KeyboardEventInfo for.

when long

The time the event occurred.

modifiers int

A mask of values of KeyModifier representing the modifier keys down during event.

keyCode int

The key pressed.

keyChar char

The Unicode character generated by this event.

Returns

KeyboardEventInfo

a new instance of KeyboardEventInfo with the given parameters.

CreateKeyboardEventInfo(KeyboardEvent, long, int, int, char, int)

Creates a KeyboardEventInfo with parameters: newEditBox, when, modifiers,keyCode, keyChar, and keyLocation.

public static KeyboardEventInfo CreateKeyboardEventInfo(KeyboardEvent keyboardEvent, long when, int modifiers, int keyCode, char keyChar, int keyLocation)

Parameters

keyboardEvent KeyboardEvent

The KeyboardEvent to create the KeyboardEventInfo for.

when long

The time the event occurred.

modifiers int

A mask of values of KeyModifier representing the modifier keys down during event.

keyCode int

The key pressed.

keyChar char

the Unicode character generated by this event.

keyLocation int

The location of the key that originated this key event.

Returns

KeyboardEventInfo

A new instance of KeyboardEventInfo with the given parameters.

CreateMouseEventInfo(MouseEvent, long, int, int, int, int, bool)

Creates a MouseEventInfo with parameters: mouseEvent, when, modifiers, x, y, clickCount, and popupTrigger.

public static MouseEventInfo CreateMouseEventInfo(MouseEvent mouseEvent, long when, int modifiers, int x, int y, int clickCount, bool popupTrigger)

Parameters

mouseEvent MouseEvent

The MouseEvent to create the MouseEventInfo for.

when long

The time the event occurred.

modifiers int

A mask of values of KeyModifier representing the modifier keys down during event.

x int

In pixels relative to the parent window.

y int

In pixels relative to the parent window.

clickCount int

The number of mouse clicks associated with event.

popupTrigger bool

True if this event is a trigger for a popup menu.

Returns

MouseEventInfo

A new instance of MouseEventInfo with the given parameters.

CreateMouseEventInfo(MouseEvent, long, int, int, int, int, bool, int)

Creates a MouseEventInfo with parameters: mouseEvent, when, modifiers, x, y, clickCount, popupTrigger and button.

public static MouseEventInfo CreateMouseEventInfo(MouseEvent mouseEvent, long when, int modifiers, int x, int y, int clickCount, bool popupTrigger, int button)

Parameters

mouseEvent MouseEvent

the MouseEvent to create the MouseEventInfo for.

when long

The time the event occurred.

modifiers int

A mask of values of KeyModifier representing the modifier keys down during event.

x int

In pixels relative to the parent window.

y int

In pixels relative to the parent window.

clickCount int

The number of mouse clicks associated with event.

popupTrigger bool

True if this event is a trigger for a popup menu.

button int

The MouseButton that changed state.

Returns

MouseEventInfo

A new instance of MouseEventInfo with the given parameters.

CreateMouseEventInfo(MouseEvent, long, int, int, int, int, int, int, bool, int)

Creates a MouseEventInfo with the given parameters.

public static MouseEventInfo CreateMouseEventInfo(MouseEvent mouseEvent, long when, int modifiers, int x, int y, int xAbs, int yAbs, int clickCount, bool popupTrigger, int button)

Parameters

mouseEvent MouseEvent

the MouseEvent to create the MouseEventInfo for.

when long

The time the event occurred.

modifiers int

A mask of values of KeyModifier representing the modifier keys down during event.

x int

In pixels relative to the parent window.

y int

In pixels relative to the parent window.

xAbs int

In pixels relative to the screen.

yAbs int

In pixels relative to the screen.

clickCount int

The number of mouse clicks associated with event.

popupTrigger bool

True if this event is a trigger for a popup menu.

button int

The MouseButton that changed state.

Returns

MouseEventInfo

A new instance of MouseEventInfo with the given parameters.

CreateUiEventInfo(UiEvent)

Creates a UiEventInfo for the give UiEvent.

public static UiEventInfo CreateUiEventInfo(UiEvent uiEvent)

Parameters

uiEvent UiEvent

The UiEvent to create the UiEventInfo for.

Returns

UiEventInfo

A new instance of UiEventInfo for the UiEvent.