Dynamically update search results as the user types
USE CASE: WHAT DO YOU WANT TO DO?
See search results update as I type.
STEPS TO REPRODUCE AN ISSUE (OR TRIGGER A NEW FEATURE)
- Type a term into either the row or column search box
CURRENT BEHAVIOR
Results are not highlighted until the user hits return
EXPECTED BEHAVIOR
Highlight all results that match from the first character to the typed (or deleted) characters (basically to wherever the cursor is). Highlighted results will not include the auto-completed portion of the text, though hitting enter will select the entire auto-completed text. If the cursor is repositioned with the mouse, the entire text content will be used for the search. once they start typing, anything past the cursor is not used.
DEVELOPERS ONLY SECTION
SUGGESTED CHANGE (Pseudocode optional)
call seekAll when the contents of the search box change or the cursor is repositioned or when text is pasted/cut. Will have to address issue #211 first because my testing shows that calling seekAll initiates a focus change.
FILES AFFECTED (where the changes will be implemented) - developers only
HeaderFinderBox.java
LEVEL OF EFFORT - developers only
minor
COMMENTS
Comments (7)
-
reporter -
reporter Chris and I were discussing this issue and I think I have an idea of how to make this work. I suspect that putting the seekAll call inside the keyTyped method was not working because findSelected() is accessing the contents of the editor in the combo box at the same moment that the KeyListener is manipulating the editor. If that's true, then if we simply send the search term as a parameter to seekAll (and subsequently findSelected()), then this interference should be eliminated.
-
reporter - changed component to Search
-
reporter - removed milestone
Removing milestone: Search (automated comment)
-
reporter - changed milestone to R - 08
-
reporter - changed milestone to R - 09
-
assigned issue to
-
reporter - removed responsible
- Log in to comment
Issue
#309was marked as a duplicate of this issue.