Package com.sun.javafx.binding
Class BidirectionalBinding.StringConversionBidirectionalBinding<T>
java.lang.Object
com.sun.javafx.binding.BidirectionalBinding<Object>
com.sun.javafx.binding.BidirectionalBinding.StringConversionBidirectionalBinding<T>
- All Implemented Interfaces:
ChangeListener<Object>
,WeakListener
- Enclosing class:
BidirectionalBinding<T>
public abstract static class BidirectionalBinding.StringConversionBidirectionalBinding<T>
extends BidirectionalBinding<Object>
-
Nested Class Summary
Nested classes/interfaces inherited from class com.sun.javafx.binding.BidirectionalBinding
BidirectionalBinding.StringConversionBidirectionalBinding<T>
-
Constructor Summary
ConstructorDescriptionStringConversionBidirectionalBinding
(Property<String> stringProperty, Property<T> otherProperty) -
Method Summary
Modifier and TypeMethodDescriptionvoid
changed
(ObservableValue<? extends Object> observable, Object oldValue, Object newValue) This method needs to be provided by an implementation ofChangeListener
.protected abstract T
fromString
(String value) protected Object
protected Object
protected abstract String
Methods inherited from class com.sun.javafx.binding.BidirectionalBinding
bind, bind, equals, hashCode, unbind, unbind, wasGarbageCollected
-
Constructor Details
-
StringConversionBidirectionalBinding
-
-
Method Details
-
toString
-
fromString
- Throws:
ParseException
-
getProperty1
- Specified by:
getProperty1
in classBidirectionalBinding<Object>
-
getProperty2
- Specified by:
getProperty2
in classBidirectionalBinding<Object>
-
changed
Description copied from interface:ChangeListener
This method needs to be provided by an implementation ofChangeListener
. It is called if the value of anObservableValue
changes.In general is is considered bad practice to modify the observed value in this method.
- Parameters:
observable
- TheObservableValue
which value changedoldValue
- The old valuenewValue
- The new value
-