Class EventInfoFactory
A factory for creating EventInfo to be passed to the FireEvent method of Java test objects.
Inherited Members
Namespace: HP.LFT.SDK.Java
Assembly: HP.LFT.SDK.dll
Syntax
public class EventInfoFactory
Constructors
EventInfoFactory()
Declaration
public EventInfoFactory()
Methods
CreateJavaEventInfo(string, string, params object[])
Creates a JavaEventInfo with the given parameters.
Declaration
public static JavaEventInfo CreateJavaEventInfo(string className, string eventId, params object[] args)
Parameters
| Type | Name | Description |
|---|---|---|
| string | className | The name of the Java class representing the event to be activated. |
| string | eventId | The event ID number or the final field string that represents the event ID. |
| object[] | args | Any parameters of the event's constructor except for the source and EventID. |
Returns
| Type | Description |
|---|---|
| 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.
Declaration
public static KeyboardEventInfo CreateKeyboardEventInfo(KeyboardEvent keyboardEvent, long when, int modifiers, int keyCode, char keyChar)
Parameters
| Type | Name | Description |
|---|---|---|
| KeyboardEvent | keyboardEvent | The KeyboardEvent to create the KeyboardEventInfo for. |
| long | when | The time the event occurred. |
| int | modifiers | A mask of values of KeyModifier representing the modifier keys down during event. |
| int | keyCode | The key pressed. |
| char | keyChar | The Unicode character generated by this event. |
Returns
| Type | Description |
|---|---|
| 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.
Declaration
public static KeyboardEventInfo CreateKeyboardEventInfo(KeyboardEvent keyboardEvent, long when, int modifiers, int keyCode, char keyChar, int keyLocation)
Parameters
| Type | Name | Description |
|---|---|---|
| KeyboardEvent | keyboardEvent | The KeyboardEvent to create the KeyboardEventInfo for. |
| long | when | The time the event occurred. |
| int | modifiers | A mask of values of KeyModifier representing the modifier keys down during event. |
| int | keyCode | The key pressed. |
| char | keyChar | the Unicode character generated by this event. |
| int | keyLocation | The location of the key that originated this key event. |
Returns
| Type | Description |
|---|---|
| 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.
Declaration
public static MouseEventInfo CreateMouseEventInfo(MouseEvent mouseEvent, long when, int modifiers, int x, int y, int clickCount, bool popupTrigger)
Parameters
| Type | Name | Description |
|---|---|---|
| MouseEvent | mouseEvent | The MouseEvent to create the MouseEventInfo for. |
| long | when | The time the event occurred. |
| int | modifiers | A mask of values of KeyModifier representing the modifier keys down during event. |
| int | x | In pixels relative to the parent window. |
| int | y | In pixels relative to the parent window. |
| int | clickCount | The number of mouse clicks associated with event. |
| bool | popupTrigger | True if this event is a trigger for a popup menu. |
Returns
| Type | Description |
|---|---|
| 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.
Declaration
public static MouseEventInfo CreateMouseEventInfo(MouseEvent mouseEvent, long when, int modifiers, int x, int y, int clickCount, bool popupTrigger, int button)
Parameters
| Type | Name | Description |
|---|---|---|
| MouseEvent | mouseEvent | the MouseEvent to create the MouseEventInfo for. |
| long | when | The time the event occurred. |
| int | modifiers | A mask of values of KeyModifier representing the modifier keys down during event. |
| int | x | In pixels relative to the parent window. |
| int | y | In pixels relative to the parent window. |
| int | clickCount | The number of mouse clicks associated with event. |
| bool | popupTrigger | True if this event is a trigger for a popup menu. |
| int | button | The MouseButton that changed state. |
Returns
| Type | Description |
|---|---|
| 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.
Declaration
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
| Type | Name | Description |
|---|---|---|
| MouseEvent | mouseEvent | the MouseEvent to create the MouseEventInfo for. |
| long | when | The time the event occurred. |
| int | modifiers | A mask of values of KeyModifier representing the modifier keys down during event. |
| int | x | In pixels relative to the parent window. |
| int | y | In pixels relative to the parent window. |
| int | xAbs | In pixels relative to the screen. |
| int | yAbs | In pixels relative to the screen. |
| int | clickCount | The number of mouse clicks associated with event. |
| bool | popupTrigger | True if this event is a trigger for a popup menu. |
| int | button | The MouseButton that changed state. |
Returns
| Type | Description |
|---|---|
| MouseEventInfo | A new instance of MouseEventInfo with the given parameters. |
CreateUiEventInfo(UiEvent)
Creates a UiEventInfo for the give UiEvent.
Declaration
public static UiEventInfo CreateUiEventInfo(UiEvent uiEvent)
Parameters
| Type | Name | Description |
|---|---|---|
| UiEvent | uiEvent | The UiEvent to create the UiEventInfo for. |
Returns
| Type | Description |
|---|---|
| UiEventInfo | A new instance of UiEventInfo for the UiEvent. |