Provide recording support for component-specific user actions. Recorders
capture a raw event stream and turn it into a ComponentTester action method. This
group of classes is designed to recognize and capture a distinct semantic
event from basic OS events as they are generated by the system or the user.
For example, the
AbstractButtonRecorder
waits for button press, release, and click events in any class derived from
java.swing.AbstractButton in the tested GUI, saving them as a "Click" action
(which is provided by the base AbstractButtonTester class).
Each unique class of GUI component can have its own recorder class derived
from ComponentRecorder.
This class provides a framework for parsing basic input events into a
conception action on a given component class. For example,
JComboBoxRecorder
converts a user's combo selection into a script step encapsulating the
JComboBoxTester.actionSelectIndex
method to perform a combo box selection.
Recorders are only used within the script editor.