Skip to content
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

Tree: support wide cell renderer #935

Merged
merged 1 commit into from
Dec 11, 2024
Merged

Tree: support wide cell renderer #935

merged 1 commit into from
Dec 11, 2024

Conversation

DevCharly
Copy link
Collaborator

This PR adds support for wide tree cell renderers, which occupy (nearly) full width of tree.

image image

Left screenshot shows bounds of wide cells renderers (red rectangles).
Right screenshot shows default (non-wide) cell bounds.

This gives you more flexibility and you can use whole row width to show some extra information. (see issue #922)
E.g. an icon for some rows:

image

How to enable

For a single tree:

tree.putClientProperty( FlatClientProperties.TREE_WIDE_CELL_RENDERER, true );

For all trees in app use properties file:

Tree.wideCellRenderer = true

@DevCharly DevCharly merged commit 7bdfd49 into main Dec 11, 2024
8 checks passed
@DevCharly DevCharly added this to the 3.6 milestone Dec 11, 2024
@DevCharly DevCharly deleted the tree-wide-cell-renderer branch December 11, 2024 15:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant