Download

TableFilter is open source, under MIT license. Its latest version, 5.2.1, has been released the 18th October 2015. The changelog is available below

License

TableFilter is available under the MIT license.

Copyright (c) 2007-2015 Luis M. Pena  - lu@coderazzi.net

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

The source distribution contains, in addition to the library's source code, some tests. These tests make usage of a general icon library (FamFamFam), and, in case of the Java 1.5 version, of a open source class called TableSorter.java, which retains the original copyright.

As of version 1.2.0, there are also icons in the library, to facilitate its usage under Gui editors. These icons come from the FamFamFam silk icon library, licensed under a Creative Commons Attribution 2.5 License.

History

Version 5.2.1 ( 18th October 2015 )

Solved issue 41: Exception when a new model is assigned to a table already associated to a table filter.

Version 5.2.0 ( 12th September 2015 )

Initial support for right to left orientation support: Issue 40. This release only adjusts automatically the filter header to the orientation setup in the underlying table; without any additional configuration, the filter header changes its own configuration to adapt to the orientation specified for the table.

Solved issue 39: Wrong filter value when AutoChoices is enabled, which happened, in fact, when instant filtering was enabled.

Version 5.1.5 ( 5th August 2015 )

Solved issue 39: Wrong filter value when AutoChoices is enabled, which happened, in fact, when instant filtering was enabled.

Version 5.1.3 ( 5th May 2015 )

This release is purely to update documentation related to the move to Bitbucket; this release is functionally equivalent to version 5.1.2.

Version 5.1.2 ( 18th March 2015 )

Solved issue 37: when a developer adds a custom filter to the table filter header, an exception can be raised if not all the columns of the model are visible.

Solved issue 38: an exception raised in a very uncommon scenario, where a user would attach a table with configured table model to a table filter header, and before making visible the table, the table model would be changed.

Version 5.1.1 ( 29th June 2013 )

This is a very minor release, although it affects to the global API: it solves issue 33: not possible to turn off auto-selection at filter header level.

Version 5.0.0 ( 12th March 2013 )

Stopped the development of the release compatible with Java 5. Note that Java 5 entered its end-of-life on April 8, 2008 and is no longer supported as of November 3, 2009.

Solved issue 31: setComparator did not refresh PopUp. In previous releases, choices in the filter editors were displayed alphabetically sorted. With this release, choices are sorted with the registered comparator for the given class / editor.

Solved issue 32: allow different sorting on choices box. A new method is included on the IFilterEditor interface -setChoicesOperator- that the user can invoke to change the sort operator. In special, by invoking this method with a null operator, the user can return to the original behaviour -sort choices alphabetically-

Version 4.5.0 ( 17th November 2012 )

Extended TableFilterHeader constructors, to enable setting up directly the AutoChoices mode.

Solved issue 28: Cells with HTML <img> tags do not appear in filter choices. This issue is solved by creating a new ChoiceRenderer, the HtmlChoiceRenderer, that must be explicitly set on that column.

Provided additional documentation, to cover issue 29, on the method to remove a filter header.

Included new example on the distribution.

Version 4.4.1 ( 2nd September 2012 )

Solved issue 25, where the library would not use the background / foreground colors provided by CustomChoice instances.

Solved issue 26: if one CustomChoice' text representation was a substring (from the beginning) of other CustomChoice's representation, selecting the shorter CustomChoice would filter out all rows in the table.

Improved the performance of the library; an internal bug implied that any filter applied on the table would be evaluated up to 3 times.

Version 4.4.0 ( 23rd August 2012 )

Extended the IFilterEditor interface with two new methods to handle the history on each editor: getHistory / setHistory. These methods allow the user to add custom functionality to preserve the status of the headers across runs. In addition, the CustomChoice class implements now the Serializable interface, and all the CustomChoice implementations in the library can be now safely serialized.

Solved issue 24, which adds a check to avoid a rare exception occurrence.

Version 4.3.0 ( 17th January 2012 )

Solved issue 22, related to CustomChoices not working with wildcards. Its implementation has had impact on the CustomChoice interface, extended with several setters.

Solved minor bug related to parsing expressions. If the expression started with an operand (such as >), some inner spaces could be removed from the expression.

Solved issue 23; the table filter library would not handle properly tables with HTML content. The filter editor choices would be rendered incorrectly and the filtering would not work in many cases.

Version 4.2.0 ( 15th November 2011 )

Extended the IFilterEditor interface with two new methods to handle the user interaction with the editor; the added functionality, as requested -issue 19-, allows the programmer to disable the interaction with the editor without disabling the filter set.

Solved issue 16, related to missing custom choices on enumeration columns.

Solved issue 20, to properly filter content with embedded newlines.

Solved issue 21, a bug associated to instant filtering.

Version 4.1.4 ( 26th May 2011 )

Solved issue 15, where exceptions are raised when the user selects a choice in the filter editor's combobox if a Format class is associated to that editor.

Extended the CustomChoice class with several static methods to facilitate the creation of CustomChoice instances.

Version 4.1.3 ( 7th April 2011 )

Solved inconsistency on filter expressions containing spaces or tabs: spaces on any side of the filter expression are now dismissed; side spaces on the table contents are likewise dismissed. Note that this was already the behaviour on previous releases (before 4.1.x).

Solved issue 13 that would cause a null pointer exception when pasting a string with embedded new lines on a filter editor.

Bug solved: a choice selection -from the editor popup- caused no changes on the editor history -shown on the very same popup-.

Bug solved: the editor popup is displayed below its editor, but, if the editor position or size changed the popup would only change its position and size when reopened.

Solved issue 14 where the usage of AutoChoices.ENUMS was inconsistent or wrong.

Version 4.1.2 ( 23rd March 2011 )

Solved bug where enabled adaptive choices cause ArrayIndexOutOfBoundsException when table model is changed: see issue.

Solved bug on slow progress with instant filtering + adaptive choices, resulting in performance degradation: see issue.

Solved bug where wildcard expressions, if case insensitive, fail on Unicode characters: see issue.

Collators comparisons have been removed from the library: collators were never used on regular expressions or wildcard expressions, resulting in inconsistent behaviour.

Added document on library's performance.

Version 4.1.1 ( 15th March 2011 )

Solved bug: previous version would fail to set the content on a non editable filter editor if invoked before the editor' choices were made available.

Source reformatted.

Version 4.1.0 ( 14th March 2011 )

Instant filtering: filtering happens as the user inputs text; implemented after requirement.

Auto completion on editable filter editors: So far was only provided, and required, for non editable editors. Now, it can be setup (it is by default) on editable editors.

Warning feedback color: added special color to signal that the filters are hiding the table's rows. This functionality is not available on the Java 5 version.

Added method setFilterOnUpdates to trigger or not filter updates when the underlying table model changes. Not available on the Java5 version.

Possibility to define the height of a filter row (by delta over the default value), functionality implemented after requirement.

Solved bug where the model is added after attaching the filter header: see issue.

Solved bug where autochoices on booleans or enums would be incomplete

Solved bug on adaptive choices: updating the table would not correctly setup the choices of editors with filters

Version 4.0.0 ( 16th February 2011 )

The version 4.x presents, mostly, the same GUI as on version 3.1. However, there are many changes under the hood, and the library API presents many incompatibilities with respect to previous versions.

Although most changes relate to new functionality, the old API is also impacted. The most basic changes breaking compatibility are:

In addition to the removal of some bugs, the changes on 4.x have focused on the choices shown to the user on each filter editor:

The changes have also tried to make the whole API more consistent and homogeneous. For example, the previous class FilterTextParser and its interface have been replaced by the classes ParserModel and Parser, together with its own interfaces, and it is this ParserModel where most generic parsing structures must be set, including case ignoring, string formatters and comparators.

Version 3.1.2 ( 24th May 2010 )

Version 3.1.1 ( 13th May 2010 )

Version 3.1.0 ( 10th May 2010 )

Version 3.0.1 ( 5th May 2010 )

Version 3.0.0 ( 28th April 2010 )

Version 2.2.0 ( 12th April 2010 )

Version 2.1.2 ( 26th January 2010 )

Version 2.0.1 ( 13th November 2009 )

Version 2.0.0 ( 1st September 2009 )

Version 1.5.0 ( 7th August 2009 )

Version 1.4.1 ( 4th July 2009 )

Version 1.4.0 ( 10th June 2009 )

Version 1.3.0 ( 17th February 2009 )

Support, issues, forums

Issues, or bugs, can be reported at the BitBucket host site.

Discussions can be carried at the associated Google group forum.

Would you require commercial support on this library, or specific customizations, please contact lu@coderazzi.net