Package org.netbeans.jemmy.drivers.input
Class EventDriver
java.lang.Object
org.netbeans.jemmy.drivers.LightSupportiveDriver
org.netbeans.jemmy.drivers.input.EventDriver
- All Implemented Interfaces:
LightDriver
- Direct Known Subclasses:
KeyEventDriver
,MouseEventDriver
Superclass for all drivers using event dispatching.
- Author:
- Alexandre Iline(alexandre.iline@sun.com)
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected class
Class used fot execution of an event through the dispatching thread. -
Constructor Summary
ConstructorsConstructorDescriptionConstructs an EventDriver object suporting ComponentOperator.EventDriver
(String[] supported) Constructs an EventDriver object. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
checkVisibility
(Component component) Checks component visibility.void
dispatchEvent
(Component comp, AWTEvent event) Dispatches an event to the component.Methods inherited from class org.netbeans.jemmy.drivers.LightSupportiveDriver
checkSupported, getSupported
-
Constructor Details
-
EventDriver
Constructs an EventDriver object.- Parameters:
supported
- an array of supported class names
-
EventDriver
public EventDriver()Constructs an EventDriver object suporting ComponentOperator.
-
-
Method Details
-
dispatchEvent
Dispatches an event to the component.- Parameters:
comp
- Component to dispatch events to.event
- an event to dispatch.
-
checkVisibility
Checks component visibility.- Parameters:
component
- a component.
-