Top Constructors Methods
com.dlsc.gemsfx.util

public Class FocusUtil

extends Object
Class Inheritance
Imports
javafx.application.Platform, javafx.scene.Node, .Parent, one.jpro.platform.utils.TreeShowing, java.util.Objects

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static void
delegateFocus(Node receiver, Node delegate)

public static Node

Returns:

The first focusable node found, or null if no focusable node is found.
findFirstFocusableNode
(Node
The node to start the search from.
node
)

Finds the first FocusTraversable node in the tree hierarchy of a given node.

public static void
public static void
requestFocus(Node
The node to request focus on.
node
)

Requests focus on the specified node if the node is visible in the tree hierarchy.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

FocusUtilback to summary
private FocusUtil()

Method Detail

delegateFocusback to summary
public static void delegateFocus(Node receiver, Node delegate)
findFirstFocusableNodeback to summary
public static Node findFirstFocusableNode(Node node)

Finds the first FocusTraversable node in the tree hierarchy of a given node.

Parameters
node:Node

The node to start the search from.

Returns:Node

The first focusable node found, or null if no focusable node is found.

focusOnFirstFocusableNodeback to summary
public static void focusOnFirstFocusableNode(Node node)
requestFocusback to summary
public static void requestFocus(Node node)

Requests focus on the specified node if the node is visible in the tree hierarchy. The node will receive the keyboard focus if it is currently showing.

Parameters
node:Node

The node to request focus on.