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 voidconfigureDecimalOnlyTextField(javafx.scene.control.TextField textField)Configures aTextFieldto only accept decimal values.static voidconfigureIntegerOnlyTextField(javafx.scene.control.TextField textField)Configures aTextFieldto only accept integer values.static javafx.scene.control.TextField[]getAllTextFields(javafx.scene.layout.Pane parent)Recursively returns allTextFieldnodes 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 allTextFieldnodes inside a givenPane.- Parameters:
parent- ParentPanewhich to scan.- Returns:
TextField[]
-
configureIntegerOnlyTextField
public static void configureIntegerOnlyTextField(javafx.scene.control.TextField textField)Configures aTextFieldto only accept integer values.- Parameters:
textField-TextField
-
configureDecimalOnlyTextField
public static void configureDecimalOnlyTextField(javafx.scene.control.TextField textField)Configures aTextFieldto only accept decimal values.- Parameters:
textField-TextField
-