I have created a class "TableViewFilter" which takes a TableView filled from a database using DBUtils and draws text fields above the TableView columns, where the user can input filter expressions which are then applied to the TableView on-the-fly as the filter texts are input. Numeric columns can be filtered using expressions (">10" and so forth), while text columns are filtered using the input text followed by a "%" wildcard (which is appended by the class of course).
This is my first attempt at creating a class, so there is probably room for improvement, and I am grateful for any hints. In fact, this may be a totally awkward idea, but it seems to work .
Attached to this post is a complete project which demonstrates the class.
This is my first attempt at creating a class, so there is probably room for improvement, and I am grateful for any hints. In fact, this may be a totally awkward idea, but it seems to work .
Attached to this post is a complete project which demonstrates the class.