public class FXRobotRemoteController extends Object implements RController, RRobot
| Constructor and Description |
|---|
FXRobotRemoteController(FXRobotRemoteController r) |
FXRobotRemoteController(javafx.scene.Scene scene) |
| Modifier and Type | Method and Description |
|---|---|
RController |
block(org.eclipse.fx.core.ThreadSynchronize.BlockCondition<Void> b)
Block program flow until the condition is released
|
<T extends javafx.scene.Node> |
css(Class<T> type,
String selector)
Query for all
Node nodes using a CSS-Selector using
Node.lookupAll(String) |
<T extends javafx.scene.Node> |
css(String selector)
Query for all
Node nodes using a CSS-Selector using
Node.lookupAll(String) |
<T extends javafx.scene.Node> |
cssFirst(Class<T> type,
String selector)
Query for the first
Node using a CSS-Selector using
Node.lookupAll(String) |
<T extends javafx.scene.Node> |
cssFirst(String selector)
Query for the first
Node using a CSS-Selector using
Node.lookupAll(String) |
RRobot |
eventGenerator() |
RController |
mouseMoveTo(int x,
int y)
Move the mouse to the provided position
|
int |
mouseX() |
int |
mouseY() |
RController |
press(javafx.scene.input.MouseButton button)
Press the button
|
RController |
release(javafx.scene.input.MouseButton button)
Release the button
|
RController |
run(Consumer<RController> c)
Run the provided code
|
<R> R |
run(Function<RController,R> f)
Run the provided code
|
RController |
run(Operation... ops)
Run the provided operations
|
RController |
run(Runnable r)
Run the provided code
|
RController |
sleep(Duration duration)
Sleep for the specified duration (without halting the event loop)
|
RController |
sleep(long millis)
Sleep for the provided milliseconds
|
RController |
text(String text)
Type the provided text
|
RController |
type(javafx.scene.input.KeyCode... codes)
Type the provided key codes
|
RController |
type(javafx.scene.input.KeyCodeCombination... combinations)
Type the provided key combinations
|
RController |
waitForRender()
Wait for the UI to render
|
public FXRobotRemoteController(javafx.scene.Scene scene)
public FXRobotRemoteController(FXRobotRemoteController r)
public RRobot eventGenerator()
eventGenerator in interface RControllerpublic final int mouseX()
public final int mouseY()
public final RController mouseMoveTo(int x, int y)
RRobotmouseMoveTo in interface RRobotx - the x coordinate of the cursor on screeny - the y coordinate of the cursor on screenpublic final RController press(javafx.scene.input.MouseButton button)
RRobotpublic final RController release(javafx.scene.input.MouseButton button)
RRobotpublic final RController block(org.eclipse.fx.core.ThreadSynchronize.BlockCondition<Void> b)
RRobotpublic RController run(Operation... ops)
RControllerrun in interface RControllerops - operations to runpublic RController waitForRender()
RControllerwaitForRender in interface RControllerpublic <T extends javafx.scene.Node> Stream<RNode<T>> css(String selector)
RControllerNode nodes using a CSS-Selector using
Node.lookupAll(String)css in interface RControllerselector - the selectorpublic <T extends javafx.scene.Node> Stream<RNode<T>> css(Class<T> type, String selector)
RControllerNode nodes using a CSS-Selector using
Node.lookupAll(String)css in interface RControllertype - the Node typeselector - the selectorpublic <T extends javafx.scene.Node> Optional<RNode<T>> cssFirst(String selector)
RControllerNode using a CSS-Selector using
Node.lookupAll(String)cssFirst in interface RControllerselector - the selectorpublic <T extends javafx.scene.Node> Optional<RNode<T>> cssFirst(Class<T> type, String selector)
RControllerNode using a CSS-Selector using
Node.lookupAll(String)cssFirst in interface RControllertype - the Node typeselector - the selectorpublic RController type(javafx.scene.input.KeyCode... codes)
RRobotpublic RController type(javafx.scene.input.KeyCodeCombination... combinations)
RRobotpublic RController text(String text)
RRobotpublic RController sleep(Duration duration)
RRobotpublic RController run(Consumer<RController> c)
RControllerrun in interface RControllerc - the consumerpublic <R> R run(Function<RController,R> f)
RControllerrun in interface RControllerf - the functionpublic RController run(Runnable r)
RControllerrun in interface RControllerr - the runnablepublic final RController sleep(long millis)
RRobotCopyright © 2017. All rights reserved.