Package javafx.beans.binding
Class StringExpression
java.lang.Object
javafx.beans.binding.StringExpression
- All Implemented Interfaces:
Observable
,ObservableObjectValue<String>
,ObservableStringValue
,ObservableValue<String>
- Direct Known Subclasses:
ReadOnlyStringProperty
,StringBinding
,StringConstant
A
StringExpression
is a
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 Summary
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface javafx.beans.Observable
addListener, removeListener
Methods inherited from interface javafx.beans.value.ObservableObjectValue
get
Methods inherited from interface javafx.beans.value.ObservableValue
addListener, removeListener
-
Constructor Details
-
StringExpression
public StringExpression()
-
-
Method Details
-
getValue
Description copied from interface:ObservableValue
Returns the current value of thisObservableValue
- Specified by:
getValue
in interfaceObservableValue<String>
- Returns:
- The current value
-
getValueSafe
Returns usually the value of thisStringExpression
. Only if the value isnull
an emptyString
is returned instead.- Returns:
- the value of this
StringExpression
or the emptyString
-