Package com.assemblyrobot.ui.utils
Class TextFieldUtils
java.lang.Object
com.assemblyrobot.ui.utils.TextFieldUtils
public abstract class TextFieldUtils
extends java.lang.Object
Generic
TextField
utilities.-
Constructor Summary
Constructors Constructor Description TextFieldUtils()
-
Method Summary
Modifier and Type Method Description static void
configureDecimalOnlyTextField(javafx.scene.control.TextField textField)
Configures aTextField
to only accept decimal values.static void
configureIntegerOnlyTextField(javafx.scene.control.TextField textField)
Configures aTextField
to only accept integer values.static javafx.scene.control.TextField[]
getAllTextFields(javafx.scene.layout.Pane parent)
Recursively returns allTextField
nodes inside a givenPane
.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
TextFieldUtils
public TextFieldUtils()
-
-
Method Details
-
getAllTextFields
public static javafx.scene.control.TextField[] getAllTextFields(javafx.scene.layout.Pane parent)Recursively returns allTextField
nodes inside a givenPane
.- Parameters:
parent
- ParentPane
which to scan.- Returns:
TextField
[]
-
configureIntegerOnlyTextField
public static void configureIntegerOnlyTextField(javafx.scene.control.TextField textField)Configures aTextField
to only accept integer values.- Parameters:
textField
-TextField
-
configureDecimalOnlyTextField
public static void configureDecimalOnlyTextField(javafx.scene.control.TextField textField)Configures aTextField
to only accept decimal values.- Parameters:
textField
-TextField
-