Observable objects in non-GUI logic code.
GUI code should use BindingsHelper from jabgui instead.
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static < The type of the closable resource, which must implement T extends AutoCloseable> ObjectBindingAutoCloseable. | Returns: AnObjectBinding<T> that automatically closes previous instances upon recalculation or disposal.The factory func, final Observable... Callable used to compute the new resource.The observables that this binding should listen to for invalidation. dependencies)Creates an |
| public static <T extends AutoCloseable> ObjectBinding | |
| public static <T> ObjectBinding | |
| public static <T> void |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| ObservablesHelper | back to summary |
|---|---|
| private ObservablesHelper() | |
| createClosableObjectBinding | back to summary |
|---|---|
| public static <T extends AutoCloseable> ObjectBinding Creates an Standard JavaFX bindings are lazy and stateless, which can lead to resource leaks when
binding to heavy or stateful objects (like file streams, external processes, or specialized
internal components). This utility creates a binding that retains a reference to its
previously calculated value and guarantees that Lifecycle & Memory Management:
Note Exceptions thrown during the closing of old resources or the computation of
new ones are caught and logged to prevent crashing the JavaFX application thread.
If computation fails, the binding will evaluate to
| |
| createClosableObjectBinding | back to summary |
|---|---|
| public static <T extends AutoCloseable> ObjectBinding | |
| createObjectBinding | back to summary |
|---|---|
| public static <T> ObjectBinding | |
| onChange | back to summary |
|---|---|
| public static <T> void onChange(List<? extends Observable> observables, Runnable... actions) | |