public class StringBindings extends Object
This class contains custom binding implementations for Strings.
| Constructor and Description |
|---|
StringBindings() |
| Modifier and Type | Method and Description |
|---|---|
static BooleanBinding |
matches(ObservableStringValue text,
ObservableStringValue pattern)
Creates a boolean binding that is
true when the given observable string matches the given RegExp pattern (also given as observable string). |
static BooleanBinding |
matches(ObservableStringValue text,
String pattern)
Creates a boolean binding that is
true when the given observable string matches the given RegExp pattern. |
public static BooleanBinding matches(ObservableStringValue text, String pattern)
Creates a boolean binding that is true when the given observable string matches the given RegExp pattern.
text - the observable string that is verified.pattern - the RegExp pattern that is used.public static BooleanBinding matches(ObservableStringValue text, ObservableStringValue pattern)
Creates a boolean binding that is true when the given observable string matches the given RegExp pattern (also given as observable string).
text - the observable string that is verified.pattern - the observable string with the RegExp pattern that is used.