Skip to content

Conversation

@Maran23
Copy link
Member

@Maran23 Maran23 commented Nov 22, 2024

This PR improves the Tree-/TableRowSkin code by doing a normal live lookup for the fixedCellSize instead of adding listener just to update variables(fixedCellSizeEnabled and fixedCellSize) which can otherwise be also just lookup'd without the hassle of listeners.

While this is mostly a cleanup, it does improve the state of the Tree-/TableRow, as when the TableRowSkinBase constructor is called, the variables are not yet set.

It is also consistent with the other cells, see also JDK-8246745.
Helps a bit with JDK-8185887 (#1644), but as written above, not required as there is no (visible) effect.


Progress

  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue
  • Change must be properly reviewed (2 reviews required, with at least 1 Reviewer, 1 Author)

Issue

  • JDK-8277000: Tree-/TableRowSkin: replace listener to fixedCellSize by live lookup (Bug - P4)

Reviewers

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jfx.git pull/1645/head:pull/1645
$ git checkout pull/1645

Update a local copy of the PR:
$ git checkout pull/1645
$ git pull https://git.openjdk.org/jfx.git pull/1645/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 1645

View PR using the GUI difftool:
$ git pr show -t 1645

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jfx/pull/1645.diff

Using Webrev

Link to Webrev Comment

@bridgekeeper
Copy link

bridgekeeper bot commented Nov 22, 2024

👋 Welcome back mhanl! A progress list of the required criteria for merging this PR into master will be added to the body of your pull request. There are additional pull request commands available for use with this pull request.

@openjdk
Copy link

openjdk bot commented Nov 22, 2024

@Maran23 This change now passes all automated pre-integration checks.

ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details.

After integration, the commit message for the final commit will be:

8277000: Tree-/TableRowSkin: replace listener to fixedCellSize by live lookup

Reviewed-by: angorya, mstrauss

You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed.

At the time when this comment was updated there had been 60 new commits pushed to the master branch:

As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details.

➡️ To integrate this PR with the above commit message to the master branch, type /integrate in a new comment.

@openjdk openjdk bot added the rfr Ready for review label Nov 22, 2024

ListenerHelper lh = ListenerHelper.get(this);

lh.addChangeListener(control.indexProperty(), (ev) -> {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since #1635 got merged, this is not needed as TableRowSkinBase does that already:
registerChangeListener(control.indexProperty(), e -> requestCellUpdate());. So this is basically a noop.

@mlbridge
Copy link

mlbridge bot commented Nov 22, 2024

Webrevs

@kevinrushforth
Copy link
Member

/reviewers 2

@openjdk
Copy link

openjdk bot commented Nov 22, 2024

@kevinrushforth
The total number of required reviews for this PR (including the jcheck configuration and the last /reviewers command) is now set to 2 (with at least 1 Reviewer, 1 Author).

Copy link
Contributor

@andy-goryachev-oracle andy-goryachev-oracle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested with the Monkey Tester, both TreeTableView and TableView - looks good, responds to fixed cell size changes.

Left a few minor comments.

@bridgekeeper
Copy link

bridgekeeper bot commented Jan 16, 2025

@Maran23 This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply add a new comment to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration!

…tree-table-row-skin-live-lookup

# Conflicts:
#	modules/javafx.controls/src/main/java/javafx/scene/control/skin/TableRowSkin.java
#	modules/javafx.controls/src/main/java/javafx/scene/control/skin/TableRowSkinBase.java
#	modules/javafx.controls/src/main/java/javafx/scene/control/skin/TreeTableRowSkin.java
@bridgekeeper
Copy link

bridgekeeper bot commented Feb 13, 2025

@Maran23 This pull request has been inactive for more than 8 weeks and will now be automatically closed. If you would like to continue working on this pull request in the future, feel free to reopen it! This can be done using the /open pull request command.

@bridgekeeper bridgekeeper bot closed this Feb 13, 2025
@andy-goryachev-oracle
Copy link
Contributor

Now that #1644 has been merged, should this PR be re-opened?

@Maran23
Copy link
Member Author

Maran23 commented Feb 17, 2025

/open

Now that #1644 has been merged, should this PR be re-opened?

Yes! I wanted to check everything first before I reopen it. Should be good now.

@openjdk openjdk bot reopened this Feb 17, 2025
@openjdk
Copy link

openjdk bot commented Feb 17, 2025

@Maran23 This pull request is now open

Copy link
Contributor

@andy-goryachev-oracle andy-goryachev-oracle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A good improvement!
The testing on macOS 15.3.1 M1 looks good.

@kevinrushforth
Copy link
Member

@arapte Can you be the second reviewer?

@bridgekeeper
Copy link

bridgekeeper bot commented Apr 4, 2025

@Maran23 This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply add a new comment to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration!

Copy link
Collaborator

@mstr2 mstr2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good and works as expected.

@openjdk openjdk bot added the ready Ready to be integrated label Apr 11, 2025
@Maran23
Copy link
Member Author

Maran23 commented Apr 11, 2025

/integrate

@openjdk
Copy link

openjdk bot commented Apr 11, 2025

Going to push as commit fcdccd9.
Since your change was applied there have been 62 commits pushed to the master branch:

Your commit was automatically rebased without conflicts.

@openjdk openjdk bot added the integrated Pull request has been integrated label Apr 11, 2025
@openjdk openjdk bot closed this Apr 11, 2025
@openjdk openjdk bot removed ready Ready to be integrated rfr Ready for review labels Apr 11, 2025
@openjdk
Copy link

openjdk bot commented Apr 11, 2025

@Maran23 Pushed as commit fcdccd9.

💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored.

@Maran23 Maran23 deleted the 8277000-tree-table-row-skin-live-lookup branch April 30, 2025 19:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

integrated Pull request has been integrated

Development

Successfully merging this pull request may close these issues.

4 participants