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

Custom ContextMenu for SpreadsheetView RowHeader/ColumnHeader #1543

Open
JakobTernes opened this issue Mar 28, 2024 · 0 comments
Open

Custom ContextMenu for SpreadsheetView RowHeader/ColumnHeader #1543

JakobTernes opened this issue Mar 28, 2024 · 0 comments

Comments

@JakobTernes
Copy link

Hi!
I would like to use the SpreadsheetView as an Editor for a CSV file.
It's really convenient that it is possible to override getSpreadsheetViewContextMenu s.t. custom options can be defined:
https://github.com/controlsfx/controlsfx/blob/f6f990b581be630eebed0f056ef3032436b80891/controlsfx/src/main/java/org/controlsfx/control/spreadsheet/SpreadsheetView.java#L2137C4-L2143C57

I would like to do the same for the RowHeader/ColumnHeader. However I found no methods to modify the ContextMenu of the headers and after further inspection I came to the conclusion that these ContextMenus are probably not accessible. Is that correct?
Is there a way to customize the ContextMenus for the headers? To clarify, it would be really nice to be able to add options to the ContextMenus of the Headers to have options like in Google Sheets for example, especially for deleting and adding columns/rows.
example

Cheers

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

No branches or pull requests

1 participant