< prev index next >

modules/base/src/main/java/javafx/beans/property/ReadOnlyFloatWrapper.java

Print this page
rev 9213 : 8089557: bindBidirection works for ReadOnly*Wrapper incorrectly

*** 23,35 **** * questions. */ package javafx.beans.property; - import javafx.beans.InvalidationListener; - import javafx.beans.value.ChangeListener; - /** * This class provides a convenient class to define read-only properties. It * creates two properties that are synchronized. One property is read-only * and can be passed to external users. The other property is read- and * writable and should be used internally only. --- 23,32 ----
*** 97,143 **** /** * {@inheritDoc} */ @Override - public void addListener(InvalidationListener listener) { - getReadOnlyProperty().addListener(listener); - } - - /** - * {@inheritDoc} - */ - @Override - public void removeListener(InvalidationListener listener) { - if (readOnlyProperty != null) { - readOnlyProperty.removeListener(listener); - } - } - - /** - * {@inheritDoc} - */ - @Override - public void addListener(ChangeListener<? super Number> listener) { - getReadOnlyProperty().addListener(listener); - } - - /** - * {@inheritDoc} - */ - @Override - public void removeListener(ChangeListener<? super Number> listener) { - if (readOnlyProperty != null) { - readOnlyProperty.removeListener(listener); - } - } - - /** - * {@inheritDoc} - */ - @Override protected void fireValueChangedEvent() { if (readOnlyProperty != null) { readOnlyProperty.fireValueChangedEvent(); } } --- 94,105 ---- /** * {@inheritDoc} */ @Override protected void fireValueChangedEvent() { + super.fireValueChangedEvent(); if (readOnlyProperty != null) { readOnlyProperty.fireValueChangedEvent(); } }
< prev index next >