Questions tagged [reactfx]

ReactFX is a Java library by Tomas Mikula that extends upon the JDK's JavaFX library. It uses reactive programming techniques in attempt to achieve more concise code, less side effects and less inversion of control, all of which improve the readability of code.

ReactFX is an exploration of (functional) reactive programming techniques for JavaFX. These techniques usually result in more concise code, less side effects and less inversion of control, all of which improve the readability of code.

For further information, refer to the GitHub page.

29 questions
16
votes
3 answers

Terminology: What is a "glitch" in Functional Reactive Programming / RX?

What is the definition of a "glitch" in the context of Functional Reactive Programming? I know that in some FRP frameworks "glitches" can occur while in others not. For example RX is not glitch free while ReactFX is glitch free [1]. Could someone…
jhegedus
  • 20,244
  • 16
  • 99
  • 167
4
votes
1 answer

ReactFX compared to Sodium

This book about Sodium is a good and clear intro to FRP. I expect that - because the book on Sodium is easy to understand - by comparing the two libraries (Sodium and ReactFX) people can leverage what they learn from the book and use that knowledge…
jhegedus
  • 20,244
  • 16
  • 99
  • 167
2
votes
3 answers

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 second. The code for that was pretty…
Taha
  • 1,592
  • 2
  • 18
  • 24
2
votes
1 answer

JavaFX and RxJava- TableView infinitely calling setCellValueFactory()

I am running into an issue with the TableView and using reactive bindings from ReactFX for the setCellValueFactory. The EventStream driving the bindings originates from an RxJava Observable however, and in the code below you will find a method that…
tmn
  • 11,121
  • 15
  • 56
  • 112
2
votes
1 answer

Live mapping of JavaFX ObservableList or ReactFX LiveList

/** * An observable analogue of {@code Stream.map}. The output list is updated * whenever the input list changes. */ public static ListBinding map( ObservableList list, Function mapper ); I wrote…
John Kugelman
  • 349,597
  • 67
  • 533
  • 578
1
vote
0 answers

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", "at 10 o'clock", and so on). The point is that only…
1
vote
1 answer

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 for this example). Each of these 2 have their own…
Mark
  • 2,167
  • 4
  • 32
  • 64
1
vote
1 answer

ReactFX EventStreams and Replay Behavior?

Is there any functionality for an EventStream in ReactFX to cache the last value so it can be replayed to new subscribers? The RxJava Observable has a lot of procedures to do these kinds of tasks. I was hoping the EventStream might have a similiar…
tmn
  • 11,121
  • 15
  • 56
  • 112
1
vote
1 answer

ReactFX- How do I create a stream for CTRL-C key combination event?

I'm new to ReactFX and I'm trying to capture the CTRL and C keys being pressed for a typical copy operation. How do I capture this effectively into a stream? This is all I could get so far but it is not even compiling... final EventStream
tmn
  • 11,121
  • 15
  • 56
  • 112
1
vote
1 answer

Add EventStream of dynamically created object changes to UndoManager

Using the UndoFX library, I create an UndoManger as follows: EventStream> changes = document.getChanges(); undoManager = UndoManagerFactory.unlimitedHistoryUndoManager( changes, c -> c.redo(), c -> c.undo(), (c1,…
merv
  • 67,214
  • 13
  • 180
  • 245
1
vote
1 answer

ReactFX Consumer listening to more than one EventStream

This question is perhaps aimed at the creator of ReactFX, but others are welcome to answer. I am currently starting to use ReactFX for data sharing and event handling within a JavaFX application. My question is how can a class subscribe to listen to…
0
votes
1 answer

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: Circle streamCircle = new…
Ian Competent
  • 93
  • 1
  • 1
  • 6
0
votes
1 answer

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 SimpleBooleanProperty(); and I have a stream of values…
schlegel11
  • 363
  • 4
  • 8
0
votes
1 answer

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 example code is posted at GitHub): There is an example…
0
votes
1 answer

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(Stage primaryStage) { ObservableList
Mark
  • 2,167
  • 4
  • 32
  • 64
1
2