Integrated: 8290765: Remove parent disabled/treeVisible listeners

Michael Strauß mstrauss at openjdk.org
Tue Feb 7 15:12:09 UTC 2023


On Thu, 21 Jul 2022 04:43:15 GMT, Michael Strauß <mstrauss at openjdk.org> wrote:

> `Node` adds InvalidationListeners to its parent's `disabled` and `treeVisible` properties and calls its own `updateDisabled()` and `updateTreeVisible(boolean)` methods when the property values change.
> 
> These listeners are not required, since `Node` can easily call the `updateDisabled()` and `updateTreeVisible(boolean)` methods on its children, saving the memory cost of maintaining listeners and bindings.

This pull request has now been integrated.

Changeset: 44b8c620
Author:    Michael Strauß <mstrauss at openjdk.org>
URL:       https://git.openjdk.org/jfx/commit/44b8c620082e26a23c48b3c0feb96c17e7aa7d5a
Stats:     79 lines in 3 files changed: 54 ins; 19 del; 6 mod

8290765: Remove parent disabled/treeVisible listeners

Reviewed-by: arapte, jhendrikx, nlisker

-------------

PR: https://git.openjdk.org/jfx/pull/841


More information about the openjfx-dev mailing list