- 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 Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description 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.static javafx.scene.control.TextFormatter<String>
getSimpleTextFormatter()
Formatter that cleans string from tab and new line characters.static void
setContent(javafx.scene.control.TextField pTextField, Set<String> pVals)
-
-
-
Method Detail
-
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>".
-
-