Index
All Classes and Interfaces|All Packages|Constant Field Values
A
- advance(long) - Method in class org.inspirenxe.strata.testing.ScreenTester
-
Moves the clock forward, running the screen's repeating tasks it passes, and runs a
ScreenTester.frame(), so waiting tooltips show and toasts whose time ran out close.
B
- byId(String, Class) - Method in class org.inspirenxe.strata.testing.ScreenTester
-
Finds the one component of a type with the given id.
C
- CHAR_WIDTH - Static variable in class org.inspirenxe.strata.testing.ScreenTester
-
How wide the tester measures a code point, in UI units.
- click(Component) - Method in class org.inspirenxe.strata.testing.ScreenTester
-
Clicks a component with the left button: moves the pointer to its center, then presses and releases.
- close() - Method in class org.inspirenxe.strata.testing.ScreenTester
-
Closes the screen, so its
closed()runs and its tree detaches, and puts back the translator the process had before the tester opened.
D
- DEFAULT - Static variable in record class org.inspirenxe.strata.testing.TesterOptions
- DEFAULT_NOW - Static variable in record class org.inspirenxe.strata.testing.TesterOptions
-
What the wall clock reads unless a test sets another time: noon UTC on 15 January 2026.
- doubleClick(Component) - Method in class org.inspirenxe.strata.testing.ScreenTester
-
Double-clicks a component with the left button: two presses and releases at its center with no time between them.
- drag(Component, float, float) - Method in class org.inspirenxe.strata.testing.ScreenTester
-
Drags a component with the left button: presses at its center, moves halfway and then the whole way, and releases there.
- dragTo(Component, Component) - Method in class org.inspirenxe.strata.testing.ScreenTester
-
Drags one component onto another with the left button: presses at the source's center, moves past the drag threshold, then to the target's center, and releases there.
- drawnText() - Method in class org.inspirenxe.strata.testing.ScreenTester
-
Returns the text the last frame drew, one entry for each run of text drawn, in drawing order: the screen's tree, then each overlay, then the tooltip.
- drop(Component, Transfer) - Method in class org.inspirenxe.strata.testing.ScreenTester
-
Drops a transfer from another application on a component, as files dragged from the desktop: the drag enters at the component's center, allowing every effect, and drops there.
E
- enabled() - Static method in class org.inspirenxe.strata.testing.Matching
-
Matches a component that can take input: it and every component it is inside are enabled, as
Component.isEffectivelyEnabled()says. - equals(Object) - Method in record class org.inspirenxe.strata.testing.TesterOptions
-
Indicates whether some other object is "equal to" this one.
F
- factory() - Method in class org.inspirenxe.strata.testing.ScreenTester
-
Returns the factory of the host showing the screen, the one its
buildgot, for making components a test adds itself. - find(Class, Predicate) - Method in class org.inspirenxe.strata.testing.ScreenTester
-
Finds the one component of a type that matches a condition.
- findAll(Class, Predicate) - Method in class org.inspirenxe.strata.testing.ScreenTester
-
Finds every component of a type that matches a condition.
- Finding components - Section in class org.inspirenxe.strata.testing.ScreenTester
- focused() - Method in class org.inspirenxe.strata.testing.ScreenTester
-
Returns the component with keyboard focus.
- frame() - Method in class org.inspirenxe.strata.testing.ScreenTester
-
Runs a frame as an engine does: rebuilds the screen if it asked to be, brings bound components up to date, lays out and renders, which records the text
ScreenTester.drawnText()returns.
H
- hashCode() - Method in record class org.inspirenxe.strata.testing.TesterOptions
-
Returns a hash code value for this object.
- height() - Method in record class org.inspirenxe.strata.testing.TesterOptions
-
Returns the value of the
heightrecord component.
I
- Input - Section in class org.inspirenxe.strata.testing.ScreenTester
L
- LINE_HEIGHT - Static variable in class org.inspirenxe.strata.testing.ScreenTester
-
How tall the tester measures a line of text, in UI units.
M
- Matching - Class in org.inspirenxe.strata.testing
-
Common conditions for
ScreenTester.find(Class, Predicate)andScreenTester.findAll(Class, Predicate). - MONO_CHAR_WIDTH - Static variable in class org.inspirenxe.strata.testing.ScreenTester
-
How wide the tester measures a code point in a monospaced style, in UI units.
N
- now() - Method in record class org.inspirenxe.strata.testing.TesterOptions
-
Returns the value of the
nowrecord component.
O
- open(Screen) - Static method in class org.inspirenxe.strata.testing.ScreenTester
-
Opens a screen with the default options: 800 by 600 units in
Themes.flat(), and renders a first frame. - open(Screen, TesterOptions) - Static method in class org.inspirenxe.strata.testing.ScreenTester
-
Opens a screen with the given size, theme, translator and wall clock, and renders a first frame.
- org.inspirenxe.strata.testing - package org.inspirenxe.strata.testing
-
A test kit for applications: open a
Screenwithout an engine or a display, find its components, drive it with simulated input and check what it shows. - overlays() - Method in class org.inspirenxe.strata.testing.ScreenTester
-
Returns the open overlays: popups, dialogs, menus and toasts, bottom first.
P
- press(Key, Modifier...) - Method in class org.inspirenxe.strata.testing.ScreenTester
-
Presses and releases a key with modifiers held, such as
press(Key.A, Modifier.CONTROL).
R
- rightClick(Component) - Method in class org.inspirenxe.strata.testing.ScreenTester
-
Clicks a component with the right button, as
ScreenTester.click(Component)does with the left.
S
- ScreenTester - Class in org.inspirenxe.strata.testing
-
Opens a
Screenfor a test, without an engine or a display, and drives it as a person would. - scroll(Component, float) - Method in class org.inspirenxe.strata.testing.ScreenTester
-
Turns the wheel over a component: moves the pointer to its center and scrolls there.
- settle() - Method in class org.inspirenxe.strata.testing.ScreenTester
-
Runs frames 16L milliseconds apart until no animation of the screen runs, so motion a theme turns on, a toast's fade or the screen's own animations come to rest (design 4.51).
- SETTLE_LIMIT_MILLIS - Static variable in class org.inspirenxe.strata.testing.ScreenTester
-
How long
ScreenTester.settle()lets animations run before it fails, in milliseconds. - SETTLE_STEP_MILLIS - Static variable in class org.inspirenxe.strata.testing.ScreenTester
-
How far apart
ScreenTester.settle()runs its frames, in milliseconds: an animation's frame (design 4.47).
T
- TesterOptions - Record Class in org.inspirenxe.strata.testing
-
How a
ScreenTestershows its screen. - TesterOptions(float, float, Theme, Translator, ZonedDateTime) - Constructor for record class org.inspirenxe.strata.testing.TesterOptions
-
Checks the options.
- text(String) - Static method in class org.inspirenxe.strata.testing.Matching
-
Matches a component whose text reads exactly the given plain text, as
text().plain()returns it. - TEXT_SIZE - Static variable in class org.inspirenxe.strata.testing.ScreenTester
-
The size the tester measures text of size 0 at, in UI units.
- theme() - Method in record class org.inspirenxe.strata.testing.TesterOptions
-
Returns the value of the
themerecord component. - The platform - Section in class org.inspirenxe.strata.testing.ScreenTester
- title(String) - Static method in class org.inspirenxe.strata.testing.Matching
-
Matches a component whose title reads exactly the given plain text, as
title().plain()returns it. - toString() - Method in record class org.inspirenxe.strata.testing.TesterOptions
-
Returns a string representation of this record class.
- translator() - Method in record class org.inspirenxe.strata.testing.TesterOptions
-
Returns the value of the
translatorrecord component. - type(String) - Method in class org.inspirenxe.strata.testing.ScreenTester
-
Types text: one typed character for each code point, in order, to whatever has focus.
W
- width() - Method in record class org.inspirenxe.strata.testing.TesterOptions
-
Returns the value of the
widthrecord component. - withNow(ZonedDateTime) - Method in record class org.inspirenxe.strata.testing.TesterOptions
-
Returns these options with another time on the wall clock.
- withSize(float, float) - Method in record class org.inspirenxe.strata.testing.TesterOptions
-
Returns these options with another size.
- withTheme(Theme) - Method in record class org.inspirenxe.strata.testing.TesterOptions
-
Returns these options with another theme.
- withTranslator(Translator) - Method in record class org.inspirenxe.strata.testing.TesterOptions
-
Returns these options with another translator.
All Classes and Interfaces|All Packages|Constant Field Values