[jfx21] RFR: 8312058: Documentation improvements for subscription based listeners

2023-08-21 Thread John Hendrikx
Backport of https://bugs.openjdk.org/browse/JDK-8312058 - Commit messages: - Backport be2c7aea20c7752f069e526d2c3f9bea11bc1634 Changes: https://git.openjdk.org/jfx/pull/1218/files Webrev: https://webrevs.openjdk.org/?repo=jfx&pr=1218&range=00 Issue: https://bugs.openjdk.org/brows

Re: RFR: JDK-8290310: ChangeListener events are incorrect or misleading when a nested change occurs [v11]

2023-08-21 Thread John Hendrikx
On Fri, 9 Jun 2023 12:00:06 GMT, John Hendrikx wrote: >> This provides and uses a new implementation of `ExpressionHelper`, called >> `ListenerManager` with improved semantics. >> >> # Behavior >> >> |Listener...|ExpressionHelper|ListenerManager| >> |---|---|---| >> |Invocation Order|In order

Re: RFR: 8313650: Add hasProperties method to MenuItem and Toggle [v3]

2023-08-21 Thread John Hendrikx
On Mon, 21 Aug 2023 15:56:59 GMT, Andy Goryachev wrote: >> 1. Creating a new `javafx.scene.ContainsProperties` interface that declares >> two methods: >> - public ObservableMap getProperties(); >> - public boolean hasProperties(); >> >> 2. Node, MenuItem, and Toggle now extend ContainsPropertie

Re: RFR: 8313651: Add 'final' keyword to public property methods in controls [v4]

2023-08-21 Thread John Hendrikx
On Mon, 21 Aug 2023 23:11:49 GMT, Andy Goryachev wrote: >> In the Control hierarchy, all property accessor methods must be declared >> `final`. >> >> Added a test to check for missing `final` keyword and added the said keyword >> where required. > > Andy Goryachev has updated the pull request

Re: RFR: 8313651: Add 'final' keyword to public property methods in controls [v2]

2023-08-21 Thread Andy Goryachev
On Mon, 21 Aug 2023 22:16:12 GMT, Nir Lisker wrote: >> Thank you for suggestions! >> >> Frankly, I don't see much value in rewriting of this method. A more >> interesting problem is how to enumerate all descendants of the Control class >> using the package name, in such a way that will relia

Re: RFR: 8313651: Add 'final' keyword to public property methods in controls [v4]

2023-08-21 Thread Andy Goryachev
> In the Control hierarchy, all property accessor methods must be declared > `final`. > > Added a test to check for missing `final` keyword and added the said keyword > where required. Andy Goryachev has updated the pull request incrementally with one additional commit since the last revision:

Re: RFR: 8313651: Add 'final' keyword to public property methods in controls [v2]

2023-08-21 Thread Nir Lisker
On Mon, 21 Aug 2023 22:16:50 GMT, Andy Goryachev wrote: >>> these classes (in javafx.scene.control.cell) are public and in the Control >>> hierarchy, so are subject of the 'final' limitation. >> >> I'm confused. Which classes should appear in this list exactly (what are the >> rules to determi

Re: RFR: 8313651: Add 'final' keyword to public property methods in controls [v2]

2023-08-21 Thread Andy Goryachev
On Mon, 21 Aug 2023 22:14:28 GMT, Nir Lisker wrote: > Which classes should appear in this list exactly subclasses of javafx.scene.control.Control - PR Review Comment: https://git.openjdk.org/jfx/pull/1213#discussion_r1300705312

Re: RFR: 8313651: Add 'final' keyword to public property methods in controls [v2]

2023-08-21 Thread Nir Lisker
On Mon, 21 Aug 2023 15:27:44 GMT, Andy Goryachev wrote: > these classes (in javafx.scene.control.cell) are public and in the Control > hierarchy, so are subject of the 'final' limitation. I'm confused. Which classes should appear in this list exactly (what are the rules to determine that)? >

Re: RFR: 8090267: JFXPanel Input Problem

2023-08-21 Thread Andy Goryachev
On Mon, 21 Aug 2023 20:52:51 GMT, Martin Fox wrote: > behavior is erratic thank you for testing and the insights, @beldenfox ! this is exactly my experience, esp. re: exact steps to reproduce. which makes me think that the issue might be in the way we call either swing or fx from the wrong t

Re: RFR: 8090267: JFXPanel Input Problem

2023-08-21 Thread Martin Fox
On Mon, 21 Aug 2023 16:19:55 GMT, Andy Goryachev wrote: >> When Japanse (IME on) is inputted to the TextFIeld, which is on JFXPanel, >> small window for inputting appears on top-left side of screen >> >> ![image](https://github.com/openjdk/jfx/assets/43534309/65833d59-528e-4087-9992-9f86b8b8c47

Re: RFR: 8283675: Line not removed from LineChart when series cleared

2023-08-21 Thread Andy Goryachev
On Fri, 18 Aug 2023 07:25:28 GMT, Karthik P K wrote: > The issue is present in AreaChart along with the LineChart. Issue is fixed in > both the charts as part of this PR. > The line elements in case of Line chart and both line element and fill > element in the case of Area charts were not clear

Re: RFR: 8306083: Text.hitTest is incorrect when Text node is present in TextFlow [v7]

2023-08-21 Thread Andy Goryachev
On Mon, 21 Aug 2023 18:20:17 GMT, Karthik P K wrote: >> The text run selected in `PrismTextLayout::getHitInfo()` method for >> character index calculation was not correct when Text node was embedded in >> TextFlow. Hence wrong character index value was calculated for the same. >> >> Since only

Re: RFR: 8306083: Text.hitTest is incorrect when Text node is present in TextFlow [v6]

2023-08-21 Thread Karthik P K
On Mon, 21 Aug 2023 14:40:09 GMT, Andy Goryachev wrote: >> Karthik P K has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Review comments > > modules/javafx.graphics/src/main/java/com/sun/javafx/text/PrismTextLayout.java > line 782: > >>

Re: RFR: 8306083: Text.hitTest is incorrect when Text node is present in TextFlow [v7]

2023-08-21 Thread Karthik P K
> The text run selected in `PrismTextLayout::getHitInfo()` method for character > index calculation was not correct when Text node was embedded in TextFlow. > Hence wrong character index value was calculated for the same. > > Since only x, y coordinates were available in the above mentioned meth

Re: RFR: 8090267: JFXPanel Input Problem

2023-08-21 Thread Andy Goryachev
On Tue, 4 Jul 2023 05:54:54 GMT, Prasanta Sadhukhan wrote: > When Japanse (IME on) is inputted to the TextFIeld, which is on JFXPanel, > small window for inputting appears on top-left side of screen > > ![image](https://github.com/openjdk/jfx/assets/43534309/65833d59-528e-4087-9992-9f86b8b8c47

Re: RFR: 8313650: Add hasProperties method to MenuItem and Toggle [v3]

2023-08-21 Thread Andy Goryachev
> 1. Creating a new `javafx.scene.ContainsProperties` interface that declares > two methods: > - public ObservableMap getProperties(); > - public boolean hasProperties(); > > 2. Node, MenuItem, and Toggle now extend ContainsProperties interface. > > 3. Making implemented methods in Node, MenuIte

Re: RFR: 8313651: Add 'final' keyword to public property methods in controls [v2]

2023-08-21 Thread Andy Goryachev
On Sun, 20 Aug 2023 06:16:06 GMT, Nir Lisker wrote: >> Andy Goryachev has updated the pull request incrementally with one >> additional commit since the last revision: >> >> review comments > > modules/javafx.controls/src/test/java/test/javafx/scene/control/ControlPropertiesTest.java > line

Re: RFR: 8313651: Add 'final' keyword to public property methods in controls [v3]

2023-08-21 Thread Andy Goryachev
> In the Control hierarchy, all property accessor methods must be declared > `final`. > > Added a test to check for missing `final` keyword and added the said keyword > where required. Andy Goryachev has updated the pull request with a new target base due to a merge or a rebase. The incrementa

Re: RFR: 8313651: Add 'final' keyword to public property methods in controls [v2]

2023-08-21 Thread Andy Goryachev
On Sun, 20 Aug 2023 21:17:18 GMT, Nir Lisker wrote: >> Andy Goryachev has updated the pull request incrementally with one >> additional commit since the last revision: >> >> review comments > > modules/javafx.controls/src/test/java/test/javafx/scene/control/ControlPropertiesTest.java > line

Re: RFR: 8306083: Text.hitTest is incorrect when Text node is present in TextFlow [v6]

2023-08-21 Thread Andy Goryachev
On Mon, 21 Aug 2023 14:01:06 GMT, Karthik P K wrote: >> The text run selected in `PrismTextLayout::getHitInfo()` method for >> character index calculation was not correct when Text node was embedded in >> TextFlow. Hence wrong character index value was calculated for the same. >> >> Since only

Re: RFR: 8306083: Text.hitTest is incorrect when Text node is present in TextFlow [v6]

2023-08-21 Thread Andy Goryachev
On Mon, 21 Aug 2023 14:01:06 GMT, Karthik P K wrote: >> The text run selected in `PrismTextLayout::getHitInfo()` method for >> character index calculation was not correct when Text node was embedded in >> TextFlow. Hence wrong character index value was calculated for the same. >> >> Since only

Re: RFR: 8306083: Text.hitTest is incorrect when Text node is present in TextFlow [v5]

2023-08-21 Thread Karthik P K
On Wed, 16 Aug 2023 20:32:54 GMT, Andy Goryachev wrote: >> Karthik P K has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Fix character index calculation issue when Text node content is wrapped > > modules/javafx.graphics/src/main/java/com/

Re: RFR: 8306083: Text.hitTest is incorrect when Text node is present in TextFlow [v5]

2023-08-21 Thread Karthik P K
On Wed, 16 Aug 2023 20:15:05 GMT, Andy Goryachev wrote: >> Karthik P K has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Fix character index calculation issue when Text node content is wrapped > > modules/javafx.graphics/src/main/java/com/

Re: RFR: 8306083: Text.hitTest is incorrect when Text node is present in TextFlow [v6]

2023-08-21 Thread Karthik P K
> The text run selected in `PrismTextLayout::getHitInfo()` method for character > index calculation was not correct when Text node was embedded in TextFlow. > Hence wrong character index value was calculated for the same. > > Since only x, y coordinates were available in the above mentioned meth

Integrated: JDK-8312058: Documentation improvements for subscription based listeners

2023-08-21 Thread John Hendrikx
On Thu, 13 Jul 2023 21:13:06 GMT, John Hendrikx wrote: > Incorporates documentation review comments from #1069. > > This PR should be kept minimal so it can be backported to JFX21; it should > only contain documentation changes. This pull request has now been integrated. Changeset: be2c7aea A

Re: RFR: JDK-8312058: Documentation improvements for subscription based listeners [v6]

2023-08-21 Thread Nir Lisker
On Fri, 11 Aug 2023 22:03:28 GMT, John Hendrikx wrote: >> Incorporates documentation review comments from #1069. >> >> This PR should be kept minimal so it can be backported to JFX21; it should >> only contain documentation changes. > > John Hendrikx has updated the pull request incrementally w

Integrated: 8274932: Render scales in EmbeddedWindow are not properly updated

2023-08-21 Thread Prasanta Sadhukhan
On Thu, 6 Jul 2023 13:10:44 GMT, Prasanta Sadhukhan wrote: > When the JavaFX scene is set before it is really shown, then the scale > factors are not properly propagated to the EmbeddedWindow, resulting in > showing wrong scales. > Fix is made to update scales to EmbeddedWindow This pull requ