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 a TextField to only accept decimal values.
    static void configureIntegerOnlyTextField​(javafx.scene.control.TextField textField)
    Configures a TextField to only accept integer values.
    static javafx.scene.control.TextField[] getAllTextFields​(javafx.scene.layout.Pane parent)
    Recursively returns all TextField nodes inside a given Pane.

    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 all TextField nodes inside a given Pane.
      Parameters:
      parent - Parent Pane which to scan.
      Returns:
      TextField[]
    • configureIntegerOnlyTextField

      public static void configureIntegerOnlyTextField​(javafx.scene.control.TextField textField)
      Configures a TextField to only accept integer values.
      Parameters:
      textField - TextField
    • configureDecimalOnlyTextField

      public static void configureDecimalOnlyTextField​(javafx.scene.control.TextField textField)
      Configures a TextField to only accept decimal values.
      Parameters:
      textField - TextField