FindAndReplace
Performs find/replace on a StyledTextArea.
This has no GUI components, see FindBar and ReplaceBar to add GUI controls. However, you may write your own versions of these, and still use this FindAndReplace.
For keyboard shortcuts to work, you must attach commands to a suitable node in your scene graph. e.g.
myMatcher.commands.attachTo( myScene.root )
If you wish to change the keyboard shortcuts, change them in FindAndReplaceActions.
Note, multi-line find/replace is not supported.
Regular expressions are currently only supported on the find string. replace is plain text, not a regex replacement.
Properties
The text to search for. If matchRegex, then this should be a regular expression, otherwise it is plain text.
Is the find-bar visible? Bind the FindBar.visibleProperty to this.
When moving to the next/prev match, should we allow looping back round to the first/last match?
Is the matching case-sensitive?
Use regular expressions?
Match whole words only?
The replacement text.
Is the replace-bar visible? Bind the replace-bar
The StyledTextArea used to by this matcher.