Re: RFR: 8091153: Customize the Table Button Menu [v5]

2023-08-04 Thread Marius Hanl
On Wed, 24 May 2023 16:55:11 GMT, Marius Hanl wrote: >> This PR implements a way to override the table column menu. >> When the `cornerRegion` is pressed, it will now call the `showColumnMenu` >> method. This new method is protected and therefore can be overidden by >> developers. If not overr

Re: RFR: 8091153: Customize the Table Button Menu [v5]

2023-05-25 Thread Marius Hanl
On Thu, 25 May 2023 16:49:10 GMT, Kevin Rushforth wrote: > This looks good. If you haven't already done so, can you change `@link` to > `@code` in the CSR to match? I'll review that next. done. Thanks for the reminder! - PR Comment: https://git.openjdk.org/jfx/pull/1135#issuecomme

Re: RFR: 8091153: Customize the Table Button Menu [v5]

2023-05-25 Thread Kevin Rushforth
On Thu, 25 May 2023 13:06:00 GMT, Nir Lisker wrote: > Do you think that the "Size all columns to fit" option should be added here? Added where? In his example custom menu? Maybe, but it isn't directly relevant to the PR. Or did you mean something else? - PR Comment: https://git.op

Re: RFR: 8091153: Customize the Table Button Menu [v5]

2023-05-25 Thread Kevin Rushforth
On Wed, 24 May 2023 16:55:11 GMT, Marius Hanl wrote: >> This PR implements a way to override the table column menu. >> When the `cornerRegion` is pressed, it will now call the `showColumnMenu` >> method. This new method is protected and therefore can be overidden by >> developers. If not overr

Re: RFR: 8091153: Customize the Table Button Menu [v5]

2023-05-25 Thread Nir Lisker
On Wed, 24 May 2023 16:55:11 GMT, Marius Hanl wrote: >> This PR implements a way to override the table column menu. >> When the `cornerRegion` is pressed, it will now call the `showColumnMenu` >> method. This new method is protected and therefore can be overidden by >> developers. If not overr

Re: RFR: 8091153: Customize the Table Button Menu [v5]

2023-05-25 Thread Marius Hanl
On Wed, 24 May 2023 20:09:37 GMT, Nir Lisker wrote: > For comparison, this is the Win 10 menu: This one is the 'extended' menu (which funny enough looks like my example above) (it's in german): ![image](https://github.com/openjdk/jfx/assets/66004280/fd30f9e3-73be-4ac9-98d8-3bff5642764d) --

Re: RFR: 8091153: Customize the Table Button Menu [v5]

2023-05-24 Thread Nir Lisker
On Wed, 24 May 2023 16:55:11 GMT, Marius Hanl wrote: >> This PR implements a way to override the table column menu. >> When the `cornerRegion` is pressed, it will now call the `showColumnMenu` >> method. This new method is protected and therefore can be overidden by >> developers. If not overr

Re: RFR: 8091153: Customize the Table Button Menu [v4]

2023-05-24 Thread Marius Hanl
On Wed, 24 May 2023 12:11:33 GMT, Kevin Rushforth wrote: > Do you have an example application that overrides this new method? That would > help ensure that this new API is sufficient to allow an app to create a > custom menu. The main reason I ask is that the default implementation uses > inte

Re: RFR: 8091153: Customize the Table Button Menu [v5]

2023-05-24 Thread Marius Hanl
> This PR implements a way to override the table column menu. > When the `cornerRegion` is pressed, it will now call the `showColumnMenu` > method. This new method is protected and therefore can be overidden by > developers. If not overridden, the known default column 'ContextMenu' is > created

Re: RFR: 8091153: Customize the Table Button Menu [v5]

2023-05-24 Thread Andy Goryachev
On Wed, 24 May 2023 16:49:54 GMT, Marius Hanl wrote: >> This PR implements a way to override the table column menu. >> When the `cornerRegion` is pressed, it will now call the `showColumnMenu` >> method. This new method is protected and therefore can be overidden by >> developers. If not overr

Re: RFR: 8091153: Customize the Table Button Menu [v4]

2023-05-24 Thread Marius Hanl
On Wed, 24 May 2023 13:23:46 GMT, Nir Lisker wrote: >> Marius Hanl has updated the pull request incrementally with one additional >> commit since the last revision: >> >> JDK-8091153: Added period to @implNote > > modules/javafx.controls/src/main/java/javafx/scene/control/skin/TableHeaderRow.

Re: RFR: 8091153: Customize the Table Button Menu [v4]

2023-05-24 Thread Nir Lisker
On Wed, 17 May 2023 19:29:13 GMT, Marius Hanl wrote: >> This PR implements a way to override the table column menu. >> When the `cornerRegion` is pressed, it will now call the `showColumnMenu` >> method. This new method is protected and therefore can be overidden by >> developers. If not overr

Re: RFR: 8091153: Customize the Table Button Menu [v4]

2023-05-24 Thread Kevin Rushforth
On Wed, 17 May 2023 19:29:13 GMT, Marius Hanl wrote: >> This PR implements a way to override the table column menu. >> When the `cornerRegion` is pressed, it will now call the `showColumnMenu` >> method. This new method is protected and therefore can be overidden by >> developers. If not overr

Re: RFR: 8091153: Customize the Table Button Menu [v4]

2023-05-17 Thread Marius Hanl
On Wed, 17 May 2023 19:35:41 GMT, Andy Goryachev wrote: > I wish the default implementation did not hide the popup on mouse click, to > allow for toggling multiple columns, but it is out of scope for this PR. I agree that this behavior is rather uncomfortable. The problem is that we are changin

Re: RFR: 8091153: Customize the Table Button Menu [v4]

2023-05-17 Thread Andy Goryachev
On Wed, 17 May 2023 19:29:13 GMT, Marius Hanl wrote: >> This PR implements a way to override the table column menu. >> When the `cornerRegion` is pressed, it will now call the `showColumnMenu` >> method. This new method is protected and therefore can be overidden by >> developers. If not overr

Re: RFR: 8091153: Customize the Table Button Menu [v2]

2023-05-17 Thread Marius Hanl
On Wed, 17 May 2023 13:09:09 GMT, Kevin Rushforth wrote: >> Marius Hanl has updated the pull request incrementally with one additional >> commit since the last revision: >> >> JDK-8091153: Improve javadoc to match the CSR > > modules/javafx.controls/src/main/java/javafx/scene/control/skin/Tab

Re: RFR: 8091153: Customize the Table Button Menu [v4]

2023-05-17 Thread Marius Hanl
> This PR implements a way to override the table column menu. > When the `cornerRegion` is pressed, it will now call the `showColumnMenu` > method. This new method is protected and therefore can be overidden by > developers. If not overridden, the known default column 'ContextMenu' is > created

Re: RFR: 8091153: Customize the Table Button Menu [v3]

2023-05-17 Thread Marius Hanl
> This PR implements a way to override the table column menu. > When the `cornerRegion` is pressed, it will now call the `showColumnMenu` > method. This new method is protected and therefore can be overidden by > developers. If not overridden, the known default column 'ContextMenu' is > created

Re: RFR: 8091153: Customize the Table Button Menu [v2]

2023-05-17 Thread Kevin Rushforth
On Mon, 15 May 2023 22:39:52 GMT, Marius Hanl wrote: >> This PR implements a way to override the table column menu. >> When the `cornerRegion` is pressed, it will now call the `showColumnMenu` >> method. This new method is protected and therefore can be overidden by >> developers. If not overr

Re: RFR: 8091153: Customize the Table Button Menu [v2]

2023-05-15 Thread Marius Hanl
> This PR implements a way to override the table column menu. > When the `cornerRegion` is pressed, it will now call the `showColumnMenu` > method. This new method is protected and therefore can be overidden by > developers. If not overridden, the known default column 'ContextMenu' is > created

Re: RFR: 8091153: Customize the Table Button Menu

2023-05-15 Thread Andy Goryachev
On Sat, 13 May 2023 19:11:26 GMT, Marius Hanl wrote: > This PR implements a way to override the table column menu. > When the `cornerRegion` is pressed, it will now call the `showColumnMenu` > method. This new method is protected and therefore can be overidden by > developers. If not overridde

Re: RFR: 8091153: Customize the Table Button Menu

2023-05-15 Thread Kevin Rushforth
On Sat, 13 May 2023 19:11:26 GMT, Marius Hanl wrote: > This PR implements a way to override the table column menu. > When the `cornerRegion` is pressed, it will now call the `showColumnMenu` > method. This new method is protected and therefore can be overidden by > developers. If not overridde

RFR: 8091153: Customize the Table Button Menu

2023-05-13 Thread Marius Hanl
This PR implements a way to override the table column menu. When the `cornerRegion` is pressed, it will now call the `showColumnMenu` method. This new method is protected and therefore can be overidden by developers. If not overridden, the known default column 'ContextMenu' is created and shown