Nick-The-Uncharted / tablefilter-swing

Automatically exported from code.google.com/p/tablefilter-swing
1 stars 1 forks source link

Autochoice and Table filtering does not occur for strings with newline characters in them. #20

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Steps to reproduce:
1. Initialize TableFilterHeaders for a jTable with AutoComplete and AutoChoice 
properties set to true for a particular column
2. This column cells are rendered by TextAreaRenderer which accepts newline 
characters. (eg string: "Test \n String")
3. Check for filtering with characters that occur after the newline.(eg: 
"*String*")

In the filter dropdown for this column, the characters appearing after the 
newline("\n") does not appear, nor in the wildcard search.

When "*\\n*String" is specified, the filters work as expected, but is 
inconsistent.

Could the mentioning of escape characters be avoided and made as default to 
search inclusive of characters occurring after the newline and other special 
characters?

Running v4.1.4 on WindowsXP.

Original issue reported on code.google.com by karthik...@gmail.com on 1 Nov 2011 at 10:58

GoogleCodeExporter commented 9 years ago

Original comment by coderazzi on 9 Nov 2011 at 11:33

GoogleCodeExporter commented 9 years ago
The issue is easily solved on the Parser class, based on regular expressions, 
including the Pattern.DOTALL flag (without side effects).

However, this raises other question: how the content appears on the filter 
editor with new lines (see attached image). This would normally need the user 
to setup a specific renderer (but then it would loose the opportunity to search 
text), or remove AutoChoices.Enabled for that column.

Original comment by coderazzi on 9 Nov 2011 at 4:17

Attachments:

GoogleCodeExporter commented 9 years ago
Fixed on 4.2.0

Original comment by coderazzi on 10 Nov 2011 at 4:20