tobiasdiez / EasyBind

Custom JavaFX bindings made easy with lambdas.
BSD 2-Clause "Simplified" License
31 stars 6 forks source link

Create wrapper around properties with convient helper methods #10

Open tobiasdiez opened 4 years ago

tobiasdiez commented 4 years ago

Similar to the EasyObservableValue there should be an EasyObservableProperty that exposes some of the methods (like selectProperty) so that they can be chained together.

For example, the interface could look like

Property<Boolean> binding = EasyBind.wrapProperty(control.sceneProperty()) 
                                    .select(s -> s.windowProperty()) 
                                    .select(w -> w.showingProperty());