< prev index next >
modules/javafx.base/src/main/java/javafx/beans/property/adapter/ReadOnlyJavaBeanDoubleProperty.java
Print this page
rev 10445 : [mq]: doc-v1-8177566-trampoline
*** 42,63 ****
* read only Java Bean property of type {@code double} or {@code Double} and a JavaFX
* {@code ReadOnlyDoubleProperty}. It cannot be created directly, but a
* {@link ReadOnlyJavaBeanDoublePropertyBuilder} has to be used.
* <p>
* As a minimum, the Java Bean class must implement a getter for the
! * property. If the getter of an instance of this class is called, the property of
* the Java Bean is returned. If the Java Bean property is bound (i.e. it supports
* PropertyChangeListeners), this {@code ReadOnlyJavaBeanDoubleProperty} will be
* aware of changes in the Java Bean. Otherwise it can be notified about
* changes by calling {@link #fireValueChangedEvent()}.
* </p>
* <p>
! * The Java Bean class must be declared public. If that class is in a named
! * module, then the module must {@link Module#isOpen(String,Module) open}
! * the containing package to at least the {@code javafx.base} module
! * (or {@link Module#isExported(String) export} the containing package
! * unconditionally).
* </p>
*
* @see javafx.beans.property.ReadOnlyDoubleProperty
* @see ReadOnlyJavaBeanDoublePropertyBuilder
* @since JavaFX 2.1
--- 42,81 ----
* read only Java Bean property of type {@code double} or {@code Double} and a JavaFX
* {@code ReadOnlyDoubleProperty}. It cannot be created directly, but a
* {@link ReadOnlyJavaBeanDoublePropertyBuilder} has to be used.
* <p>
* As a minimum, the Java Bean class must implement a getter for the
! * property.
! * The class, as well as the getter method, must be declared public.
! * If the getter of an instance of this class is called, the property of
* the Java Bean is returned. If the Java Bean property is bound (i.e. it supports
* PropertyChangeListeners), this {@code ReadOnlyJavaBeanDoubleProperty} will be
* aware of changes in the Java Bean. Otherwise it can be notified about
* changes by calling {@link #fireValueChangedEvent()}.
* </p>
+ * <p><b>Deploying an Application as a Module</b></p>
* <p>
! * If the Java Bean class is in a named module, then it must be reflectively
! * accessible to the {@code javafx.base} module.
! * A class is reflectively accessible if the module
! * {@link Module#isOpen(String,Module) opens} the containing package to at
! * least the {@code javafx.base} module.
! * </p>
! * <p>
! * For example, if {@code com.foo.MyBeanClass} is in the {@code foo.app} module,
! * the {@code module-info.java} might
! * look like this:
! * </p>
! *
! <pre>{@code module foo.app {
! opens com.foo to javafx.base;
! }}</pre>
! *
! * <p>
! * Alternatively, a class is reflectively accessible if the module
! * {@link Module#isExported(String) exports} the containing package
! * unconditionally.
* </p>
*
* @see javafx.beans.property.ReadOnlyDoubleProperty
* @see ReadOnlyJavaBeanDoublePropertyBuilder
* @since JavaFX 2.1
< prev index next >