22
33import static org .fxmisc .richtext .PopupAlignment .*;
44import static org .fxmisc .richtext .TwoDimensional .Bias .*;
5- import static org .reactfx .EventStreams .invalidationsOf ;
6- import static org .reactfx .EventStreams .merge ;
7- import static org .reactfx .EventStreams .valuesOf ;
5+ import static org .reactfx .EventStreams .*;
86import static org .reactfx .util .Tuples .*;
97
108import java .time .Duration ;
4543import javafx .scene .layout .Region ;
4644import javafx .scene .paint .Color ;
4745import javafx .scene .paint .Paint ;
48- import javafx .scene .text .Font ;
4946import javafx .scene .text .Text ;
5047import javafx .scene .text .TextFlow ;
5148import javafx .stage .PopupWindow ;
5653import org .fxmisc .flowless .Virtualized ;
5754import org .fxmisc .flowless .VirtualizedScrollPane ;
5855import org .fxmisc .richtext .CssProperties .EditableProperty ;
59- import org .fxmisc .richtext .CssProperties .FontProperty ;
6056import org .fxmisc .undo .UndoManager ;
6157import org .fxmisc .undo .UndoManagerFactory ;
6258import org .reactfx .EventStream ;
@@ -290,6 +286,7 @@ public Optional<Tuple2<Codec<S>, Codec<PS>>> getStyleCodecs() {
290286 * Value is only accurate when area does not wrap lines and uses the same font size
291287 * throughout the entire area.
292288 */
289+ @ Override
293290 public Var <Double > estimatedScrollXProperty () { return virtualFlow .estimatedScrollXProperty (); }
294291 public double getEstimatedScrollX () { return virtualFlow .estimatedScrollXProperty ().getValue (); }
295292 public void setEstimatedScrollX (double value ) { virtualFlow .estimatedScrollXProperty ().setValue (value ); }
@@ -299,6 +296,7 @@ public Optional<Tuple2<Codec<S>, Codec<PS>>> getStyleCodecs() {
299296 * Value is only accurate when area does not wrap lines and uses the same font size
300297 * throughout the entire area.
301298 */
299+ @ Override
302300 public Var <Double > estimatedScrollYProperty () { return virtualFlow .estimatedScrollYProperty (); }
303301 public double getEstimatedScrollY () { return virtualFlow .estimatedScrollYProperty ().getValue (); }
304302 public void setEstimatedScrollY (double value ) { virtualFlow .estimatedScrollYProperty ().setValue (value ); }
@@ -376,6 +374,7 @@ public Optional<Tuple2<Codec<S>, Codec<PS>>> getStyleCodecs() {
376374 * uses the same font size throughout the entire area. Value is only supposed to be <em>set</em> by
377375 * the skin, not the user.
378376 */
377+ @ Override
379378 public Val <Double > totalWidthEstimateProperty () { return virtualFlow .totalWidthEstimateProperty (); }
380379 public double getTotalWidthEstimate () { return virtualFlow .totalWidthEstimateProperty ().getValue (); }
381380
@@ -385,6 +384,7 @@ public Optional<Tuple2<Codec<S>, Codec<PS>>> getStyleCodecs() {
385384 * uses the same font size throughout the entire area. Value is only supposed to be <em>set</em> by
386385 * the skin, not the user.
387386 */
387+ @ Override
388388 public Val <Double > totalHeightEstimateProperty () { return virtualFlow .totalHeightEstimateProperty (); }
389389 public double getTotalHeightEstimate () { return virtualFlow .totalHeightEstimateProperty ().getValue (); }
390390
@@ -596,7 +596,7 @@ public <C> StyledTextArea(S initialStyle, BiConsumer<? super TextExt, S> applySt
596596 caretVisible = EventStreams .valuesOf (blinkCaret )
597597 .flatMap (blink -> blink
598598 ? booleanPulse (Duration .ofMillis (500 ))
599- : valuesOf (Val .constant (false )))
599+ : EventStreams . valuesOf (Val .constant (false )))
600600 .toBinding (false );
601601
602602 // Adjust popup anchor by either a user-provided function,
0 commit comments