java.lang.Object
is.codion.tools.swing.robot.Interaction
The result of a verified keyboard interaction: what was requested, and what the JVM's key event
stream shows actually happened. Observed via a
KeyEventPostProcessor, so
Interaction.Delivery reflects whether a component actually consumed the event.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe observed outcome of an interaction. -
Constructor Summary
ConstructorsConstructorDescriptionInteraction(String keyStroke, Interaction.Delivery delivery, @Nullable String component, @Nullable String action) -
Method Summary
-
Constructor Details
-
Interaction
public Interaction(String keyStroke, Interaction.Delivery delivery, @Nullable String component, @Nullable String action) - Parameters:
keyStroke- the requested keystroke, or the typed textdelivery- whether the interaction was observed and consumedcomponent- the component that received the event, if observedaction- the action the keystroke resolves to in the receiving component's input maps, null if none
-
-
Method Details
-
keyStroke
- Returns:
- the requested keystroke, or the typed text
-
delivery
- Returns:
- whether the interaction was observed and consumed
-
component
- Returns:
- the component that received the event, if observed
-
action
- Returns:
- the action the keystroke resolves to in the receiving component's input maps, null if none
-