Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

New api to enable auto clean all column filters if table model row count is 0 #74

Merged
merged 3 commits into from
Feb 3, 2021

Conversation

blasferna
Copy link
Contributor

Sometimes it is required to clean the data of the table to reload it, if there are active column filters it is necessary to clean them so that it does not interfere with the new load, for this reason I added a new functionality to activate a self-cleaning if the table is cleaned.

Currently when cleaning the table the view is as follows:

image

When activating the autoclean, the filters disappear when cleaning the table.

Example:

JTable table = TableRowFilterSupport
                  .forTable(new JTable())
                  .autoclean(true)
                  .apply();

Copy link
Owner

@eugener eugener 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!

@eugener eugener merged commit 6117cd8 into eugener:master Feb 3, 2021
akuhtz pushed a commit to akuhtz/oxbow that referenced this pull request Nov 22, 2023
…unt is 0 (eugener#74)

* New api to enable auto clean of column filters

* add autoclean test

* code cleanup

(cherry picked from commit 6117cd8)
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants