RFR: 8293119: Alternative CONSTRAINED_RESIZE_POLICY
Andy Goryachev
angorya at openjdk.org
Wed Oct 12 15:33:56 UTC 2022
On Wed, 14 Sep 2022 15:25:16 GMT, Andy Goryachev <angorya at openjdk.org> wrote:
>> modules/javafx.controls/src/main/java/javafx/scene/control/TableView.java line 440:
>>
>>> 438:
>>> 439: // TODO to be renamed to CONSTRAINED_RESIZE_POLICY
>>> 440: public static final Callback<TableView.ResizeFeatures, Boolean> CONSTRAINED_RESIZE_POLICY_SUBSEQUENT_COLUMNS =
>>
>> Instead of renaming we can also deprecate the 'old' `CONSTRAINED_RESIZE_POLICY` ?
>
> Good question.
>
> We could deprecate the old policy, although leaving it as is also leaves all its issues in place (see JDK-8292810). There is a subtle behavioral difference between the old CONSTRAINED_RESIZE_POLICY and CONSTRAINED_RESIZE_POLICY_SUBSEQUENT_COLUMNS that people might notice and may not like. The difference is that the old policy works similar to CONSTRAINED_RESIZE_POLICY_LAST_COLUMN until the last column cannot be resized, then it resizes one before it.
>
> Another option is that we could add another policy which will work exactly (minus bugs) as the old one. What do you think?
Try tests/manual/controls/ATableViewResizeTester.java to see the behavior.
-------------
PR: https://git.openjdk.org/jfx/pull/897
More information about the openjfx-dev
mailing list