Class EventInfoFactory
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
classNamestringThe name of the Java class representing the event to be activated.
eventIdstringThe event ID number or the final field string that represents the event ID.
argsobject[]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
keyboardEventKeyboardEventThe KeyboardEvent to create the KeyboardEventInfo for.
whenlongThe time the event occurred.
modifiersintA mask of values of KeyModifier representing the modifier keys down during event.
keyCodeintThe key pressed.
keyCharcharThe 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
keyboardEventKeyboardEventThe KeyboardEvent to create the KeyboardEventInfo for.
whenlongThe time the event occurred.
modifiersintA mask of values of KeyModifier representing the modifier keys down during event.
keyCodeintThe key pressed.
keyCharcharthe Unicode character generated by this event.
keyLocationintThe 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
mouseEventMouseEventThe MouseEvent to create the MouseEventInfo for.
whenlongThe time the event occurred.
modifiersintA mask of values of KeyModifier representing the modifier keys down during event.
xintIn pixels relative to the parent window.
yintIn pixels relative to the parent window.
clickCountintThe number of mouse clicks associated with event.
popupTriggerboolTrue 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
mouseEventMouseEventthe MouseEvent to create the MouseEventInfo for.
whenlongThe time the event occurred.
modifiersintA mask of values of KeyModifier representing the modifier keys down during event.
xintIn pixels relative to the parent window.
yintIn pixels relative to the parent window.
clickCountintThe number of mouse clicks associated with event.
popupTriggerboolTrue if this event is a trigger for a popup menu.
buttonintThe 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
mouseEventMouseEventthe MouseEvent to create the MouseEventInfo for.
whenlongThe time the event occurred.
modifiersintA mask of values of KeyModifier representing the modifier keys down during event.
xintIn pixels relative to the parent window.
yintIn pixels relative to the parent window.
xAbsintIn pixels relative to the screen.
yAbsintIn pixels relative to the screen.
clickCountintThe number of mouse clicks associated with event.
popupTriggerboolTrue if this event is a trigger for a popup menu.
buttonintThe 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
uiEventUiEventThe UiEvent to create the UiEventInfo for.
Returns
- UiEventInfo
A new instance of UiEventInfo for the UiEvent.