mdarifmustafa / xswingx

Automatically exported from code.google.com/p/xswingx
0 stars 1 forks source link

Wrong instant search delay behavior #3

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The instant search delay should be bypassed only when clearing the whole
search text.
This works as expected, but the delay is also bypassed when the whole
search text ist replaced by some other text.

Solution:
When bypassing, distinguish between changedUpdate and removeUpdate
DocumentEvents.

Original issue reported on code.google.com by petw2...@gmail.com on 24 May 2007 at 12:21

GoogleCodeExporter commented 8 years ago
Beware: setText normally fires 2 different events: remove and insert. this could
cause some different problems....

Original comment by petw2...@gmail.com on 24 May 2007 at 1:49

GoogleCodeExporter commented 8 years ago
Won't fix. 
Bypassing cannot work, because when the whole text is replaced a remove event 
is always fired and it's not 
possible to determine if a insert event will follow.

Original comment by petw2...@gmail.com on 28 Jun 2007 at 12:00