-
Notifications
You must be signed in to change notification settings - Fork 496
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
8277000: Tree-/TableRowSkin: replace listener to fixedCellSize by live lookup #1645
base: master
Are you sure you want to change the base?
8277000: Tree-/TableRowSkin: replace listener to fixedCellSize by live lookup #1645
Conversation
👋 Welcome back mhanl! A progress list of the required criteria for merging this PR into |
❗ This change is not yet ready to be integrated. |
@@ -97,10 +97,6 @@ public TreeTableRowSkin(TreeTableRow<T> control) { | |||
|
|||
ListenerHelper lh = ListenerHelper.get(this); | |||
|
|||
lh.addChangeListener(control.indexProperty(), (ev) -> { |
There was a problem hiding this comment.
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.
Webrevs
|
/reviewers 2 |
@kevinrushforth |
There was a problem hiding this 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.
modules/javafx.controls/src/main/java/javafx/scene/control/skin/TableRowSkinBase.java
Outdated
Show resolved
Hide resolved
modules/javafx.controls/src/main/java/javafx/scene/control/skin/TableRowSkinBase.java
Show resolved
Hide resolved
…tree-table-row-skin-live-lookup
modules/javafx.controls/src/main/java/javafx/scene/control/skin/TableRowSkinBase.java
Outdated
Show resolved
Hide resolved
@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
@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 |
Now that #1644 has been merged, should this PR be re-opened? |
/open
Yes! I wanted to check everything first before I reopen it. Should be good now. |
@Maran23 This pull request is now open |
There was a problem hiding this 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.
This PR improves the
Tree-/TableRowSkin
code by doing a normal live lookup for thefixedCellSize
instead of adding listener just to update variables(fixedCellSizeEnabled
andfixedCellSize
) 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 theTableRowSkinBase
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
Issue
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