- All Implemented Interfaces:
- Observable,- ObservableObjectValue<String>,- ObservableStringValue,- ObservableValue<String>
- Direct Known Subclasses:
- ReadOnlyStringProperty,- StringBinding
StringExpression is an
 ObservableStringValue plus additional convenience
 methods to generate bindings in a fluent style.
 
 A concrete sub-class of StringExpression has to implement the method
 ObservableObjectValue.get(), which provides the
 actual value of this expression.
 
 Note: all implementation of BooleanBinding
 returned by the comparisons in this class consider a String that is
 null equal to an empty String.
- Since:
- JavaFX 2.0
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionReturns aStringExpressionthat holds the value of thisStringExpressionconcatenated with anotherObject.getValue()Returns the current value of thisObservableValuefinal StringReturns usually the value of thisStringExpression.greaterThan(String other) Creates a newBooleanBindingthat holdstrueif thisStringExpressionis greater than a constant value.greaterThan(ObservableStringValue other) Creates a newBooleanBindingthat holdstrueif thisStringExpressionis greater than anotherObservableStringValue.greaterThanOrEqualTo(String other) Creates a newBooleanBindingthat holdstrueif thisStringExpressionis greater than or equal to a constant value.Creates a newBooleanBindingthat holdstrueif thisStringExpressionis greater than or equal to anotherObservableStringValue.isEmpty()isEqualTo(ObservableStringValue other) isEqualToIgnoreCase(String other) Creates a newBooleanBindingthat holdstrueif thisStringExpressionis equal to a constant value ignoring case.Creates a newBooleanBindingthat holdstrueif this and anotherObservableStringValueare equal ignoring case.isNotEqualTo(String other) Creates a newBooleanBindingthat holdstrueif thisStringExpressionis not equal to a constant value.Creates a newBooleanBindingthat holdstrueif this and anotherObservableStringValueare not equal.isNotEqualToIgnoreCase(String other) Creates a newBooleanBindingthat holdstrueif thisStringExpressionis not equal to a constant value ignoring case.Creates a newBooleanBindingthat holdstrueif this and anotherObservableStringValueare not equal ignoring case.isNull()length()Creates a newIntegerBindingthat holds the length of thisStringExpression.Creates a newBooleanBindingthat holdstrueif thisStringExpressionis less than a constant value.lessThan(ObservableStringValue other) Creates a newBooleanBindingthat holdstrueif thisStringExpressionis less than anotherObservableStringValue.lessThanOrEqualTo(String other) Creates a newBooleanBindingthat holdstrueif thisStringExpressionis less than or equal to a constant value.Creates a newBooleanBindingthat holdstrueif thisStringExpressionis less than or equal to anotherObservableStringValue.static StringExpressionstringExpression(ObservableValue<?> value) Returns aStringExpressionthat wraps aObservableValue.Methods declared in class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods declared in interface javafx.beans.ObservableaddListener, removeListener, subscribeMethods declared in interface javafx.beans.value.ObservableObjectValuegetMethods declared in interface javafx.beans.value.ObservableValueaddListener, flatMap, map, orElse, removeListener, subscribe, subscribe, when
- 
Constructor Details- 
StringExpressionpublic StringExpression()Creates a defaultStringExpression.
 
- 
- 
Method Details- 
getValueDescription copied from interface:ObservableValueReturns the current value of thisObservableValue- Specified by:
- getValuein interface- ObservableValue<String>
- Returns:
- The current value
 
- 
getValueSafeReturns usually the value of thisStringExpression. Only if the value isnullan emptyStringis returned instead.- Returns:
- the value of this StringExpressionor the emptyString
 
- 
stringExpressionReturns aStringExpressionthat wraps aObservableValue. If theObservableValueis already aStringExpression, it will be returned. Otherwise a newStringBindingis created that holds the value of theObservableValueconverted to aString.- Parameters:
- value- The source- ObservableValue
- Returns:
- A StringExpressionthat wraps theObservableValueif necessary
- Throws:
- NullPointerException- if- valueis- null
 
- 
concatReturns aStringExpressionthat holds the value of thisStringExpressionconcatenated with anotherObject.If the value of this StringExpressionchanges, the value of the resultingStringExpressionis updated automatically. Also if the otherObjectis an implementation ofObservableValue, changes in the otherObjectare reflected automatically in the resultingStringExpression.- Parameters:
- other- the other- Object
- Returns:
- the new StringExpression
 
- 
isEqualToCreates a newBooleanBindingthat holdstrueif this and anotherObservableStringValueare equal.Note: In this comparison a Stringthat isnullis considered equal to an emptyString.- Parameters:
- other- the constant value
- Returns:
- the new BooleanBinding
 
- 
isEqualToCreates a newBooleanBindingthat holdstrueif thisStringExpressionis equal to a constant value.Note: In this comparison a Stringthat isnullis considered equal to an emptyString.- Parameters:
- other- the constant value
- Returns:
- the new BooleanBinding
 
- 
isNotEqualToCreates a newBooleanBindingthat holdstrueif this and anotherObservableStringValueare not equal.Note: In this comparison a Stringthat isnullis considered equal to an emptyString.- Parameters:
- other- the constant value
- Returns:
- the new BooleanBinding
 
- 
isNotEqualToCreates a newBooleanBindingthat holdstrueif thisStringExpressionis not equal to a constant value.Note: In this comparison a Stringthat isnullis considered equal to an emptyString.- Parameters:
- other- the constant value
- Returns:
- the new BooleanBinding
 
- 
isEqualToIgnoreCaseCreates a newBooleanBindingthat holdstrueif this and anotherObservableStringValueare equal ignoring case.Note: In this comparison a Stringthat isnullis considered equal to an emptyString.- Parameters:
- other- the second- ObservableStringValue
- Returns:
- the new BooleanBinding
 
- 
isEqualToIgnoreCaseCreates a newBooleanBindingthat holdstrueif thisStringExpressionis equal to a constant value ignoring case.Note: In this comparison a Stringthat isnullis considered equal to an emptyString.- Parameters:
- other- the constant value
- Returns:
- the new BooleanBinding
 
- 
isNotEqualToIgnoreCaseCreates a newBooleanBindingthat holdstrueif this and anotherObservableStringValueare not equal ignoring case.Note: In this comparison a Stringthat isnullis considered equal to an emptyString.- Parameters:
- other- the second- ObservableStringValue
- Returns:
- the new BooleanBinding
 
- 
isNotEqualToIgnoreCaseCreates a newBooleanBindingthat holdstrueif thisStringExpressionis not equal to a constant value ignoring case.Note: In this comparison a Stringthat isnullis considered equal to an emptyString.- Parameters:
- other- the constant value
- Returns:
- the new BooleanBinding
 
- 
greaterThanCreates a newBooleanBindingthat holdstrueif thisStringExpressionis greater than anotherObservableStringValue.Note: In this comparison a Stringthat isnullis considered equal to an emptyString.- Parameters:
- other- the second- ObservableStringValue
- Returns:
- the new BooleanBinding
 
- 
greaterThanCreates a newBooleanBindingthat holdstrueif thisStringExpressionis greater than a constant value.Note: In this comparison a Stringthat isnullis considered equal to an emptyString.- Parameters:
- other- the constant value
- Returns:
- the new BooleanBinding
 
- 
lessThanCreates a newBooleanBindingthat holdstrueif thisStringExpressionis less than anotherObservableStringValue.Note: In this comparison a Stringthat isnullis considered equal to an emptyString.- Parameters:
- other- the second- ObservableStringValue
- Returns:
- the new BooleanBinding
 
- 
lessThanCreates a newBooleanBindingthat holdstrueif thisStringExpressionis less than a constant value.Note: In this comparison a Stringthat isnullis considered equal to an emptyString.- Parameters:
- other- the constant value
- Returns:
- the new BooleanBinding
 
- 
greaterThanOrEqualToCreates a newBooleanBindingthat holdstrueif thisStringExpressionis greater than or equal to anotherObservableStringValue.Note: In this comparison a Stringthat isnullis considered equal to an emptyString.- Parameters:
- other- the second- ObservableStringValue
- Returns:
- the new BooleanBinding
 
- 
greaterThanOrEqualToCreates a newBooleanBindingthat holdstrueif thisStringExpressionis greater than or equal to a constant value.Note: In this comparison a Stringthat isnullis considered equal to an emptyString.- Parameters:
- other- the constant value
- Returns:
- the new BooleanBinding
 
- 
lessThanOrEqualToCreates a newBooleanBindingthat holdstrueif thisStringExpressionis less than or equal to anotherObservableStringValue.Note: In this comparison a Stringthat isnullis considered equal to an emptyString.- Parameters:
- other- the second- ObservableStringValue
- Returns:
- the new BooleanBinding
 
- 
lessThanOrEqualToCreates a newBooleanBindingthat holdstrueif thisStringExpressionis less than or equal to a constant value.Note: In this comparison a Stringthat isnullis considered equal to an emptyString.- Parameters:
- other- the constant value
- Returns:
- the new BooleanBinding
 
- 
isNull- Returns:
- the new BooleanBinding
 
- 
isNotNull- Returns:
- the new BooleanBinding
 
- 
lengthCreates a newIntegerBindingthat holds the length of thisStringExpression.Note: If the value of this StringExpressionisnull, the length is considered to be0.- Returns:
- the new IntegerBinding
- Since:
- JavaFX 8.0
 
- 
isEmptyCreates a newBooleanBindingthat holdstrueif thisStringExpressionis empty.Note: If the value of this StringExpressionisnull, it is considered to be empty.- Returns:
- the new BooleanBinding
- Since:
- JavaFX 8.0
 
- 
isNotEmptyCreates a newBooleanBindingthat holdstrueif thisStringExpressionis not empty.Note: If the value of this StringExpressionisnull, it is considered to be empty.- Returns:
- the new BooleanBinding
- Since:
- JavaFX 8.0
 
 
-