29 questions
Score of 0
1 answer
106 views
ReactFX: can't build EventStream from DoubleProperty
I'm trying to make an EventStream from a DoubleProperty in ReactFX (I've tried both 2.0M5 and 1.4.1 stable). I constantly get this error from IntelliJ:
I've tried using the sample code from the wiki:
...
Score of 0
1 answer
90 views
When to use "suppressWhen(...)" or "filter(...)"?
I have a question about the two methods "suppressWhen(...)" and "filter(...)" if it makes any difference to use them in a context e.g:
I have a boolean property like:
BooleanProperty bp = new ...
Score of 0
1 answer
241 views
Combining multiple change streams in ReactFX
Question
How do you correctly combine multiple property change streams in ReactFX for use in UndoFX (or any use case)?
Details
Here's a short explanation of what I'm trying to accomplish (full ...
Score of 0
1 answer
144 views
LiveList is called twice when updating
I'm using LiveList to bind the children of a group to a list containing the data of the children. here is an example:
public class Main extends Application {
@Override
public void start(...
Score of 0
1 answer
94 views
ReactFX Val, how do I get binding for null status?
In JavaFX's Property you can obtain a boolean binding for null or non null via val.isNull() and val.isNonNull().
What's the equivalence for this in ReactFX?
I've tried:
val.map(v -> v == null)
...
Score of 0
2 answers
99 views
How to reset the last accumulation value in EventStream?
I have a merged EventStream from N observable values. From this values I want the smallest one. For example:
Var<Integer> a = Var.newSimpleVar(2);
Var<Integer> b = Var....
Score of 0
1 answer
157 views
How to get the source of a property by subscribing to an event stream?
if I have a JavaFX property and I create an event stream from this property:
EventStreams.nonNullValuesOf(node.boundsInParentProperty())
Is there a possibility to set the source (in this case the "...
Score of 1
0 answers
162 views
Show confirm dialog in Flux architecture
I'm trying to understand Flux architecture. I'm using JavaFX and the FluxFX experimental framework.
I'm writing a program which allows user to schedule some task at a specific moment ("in 3 hours", "...
Score of 0
1 answer
1583 views
Bind a JavaFx property to more than one observable
I am writing a JavaFx control that consists of a sub-control that gets user input, e.g. a TextField. The main component holds a property which represents a parsed representation of the text, e.g. a ...
Score of 0
0 answers
92 views
Type-inference fails when binding ReactFx Var.mapBidirectional to JavaFx property
I am trying to bind a TextField.textProperty() to a ObjectProperty<LocalDateTime> in a custom control. The following code ompiles and runs in Eclipse:
package main.java
import java.time....
Score of 0
1 answer
176 views
How to bind to more than 1 ReactFX observable?
In regular JavaFX i would create a binding on 2 or more observables like this:
xxxProperty().bind(Bindings.createObjectBinding(() -> {...}, observable1, observable2, ...));
In ReactFx I was shown ...
Score of 0
1 answer
168 views
How to create multilevel composition binding?
I was shown how to create a dependency on the containing property of a property using something like Val.selectVar(property, propertyOfProperty). However, i want to know how to continue creating ...
Score of 0
1 answer
237 views
How to do a custom binding with ReactFX's Var?
In this question I was shown how to deal with the problem of having a property change by changing it's wrapping object and thus not sending updates that it changed. A solution was using ReactFX:
...
Score of 1
1 answer
367 views
Do properties of properties make sense?
Because this is a question about design I'll start by saying what i have and what i want.
I have a design that uses composition. A Cell object holds a Shape and a Background objects (custom made ones ...
Score of 2
3 answers
305 views
ReactFX - "lazy" real-time search text area
New to Reactive Programming here.
I'm trying to implement a "lazy" real-time search text area in JavaFX with ReactFX. By lazy here I mean it performs the search once the user stops typing for one ...