Class TextFieldUtil

java.lang.Object
com.iamsoft.util.ui.javafx.TextFieldUtil

public final class TextFieldUtil extends Object
Miscellaneous utility methods related to TextField.
See Also:
  • TextField
  • Method Details

    • getSimpleTextFormatter

      public static javafx.scene.control.TextFormatter<String> getSimpleTextFormatter()
      Formatter that cleans string from tab and new line characters.
    • bindContent

      public static void bindContent(javafx.scene.control.TextField pTextField, javafx.collections.ObservableList<javafx.beans.value.ObservableValue<String>> pValues)
      If there is no data, clear field and prompt text. If there is exactly one unique value, set field content to that and clear prompt text. If there is more than one unique value, clear field set prompt text to "<n values>".
    • setContent

      public static void setContent(javafx.scene.control.TextField pTextField, Set<String> pVals)