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.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The text to search for. If matchRegex, then this should be a regular expression, otherwise it is plain text.

Link copied to clipboard

Is the find-bar visible? Bind the FindBar.visibleProperty to this.

Link copied to clipboard

Are there more matches after the current match? Used to enable/disable the "next" button.

Link copied to clipboard
Link copied to clipboard

Are there more matches before the current match? Used to enable/disable the "previous" button.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

When moving to the next/prev match, should we allow looping back round to the first/last match?

Link copied to clipboard
Link copied to clipboard

Is the matching case-sensitive?

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Use regular expressions?

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Match whole words only?

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The replacement text.

Link copied to clipboard

Is the replace-bar visible? Bind the replace-bar

Link copied to clipboard

Text such as "1 of 3 matches"

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard