Base class for input filters that can be applied to a TextEditor to restrict the text that can be entered. More...
Public Member Functions | |
InputFilter ()=default | |
virtual | ~InputFilter ()=default |
virtual String | filterNewText (TextEditor &, const String &newInput)=0 |
This method is called whenever text is entered into the editor. | |
Base class for input filters that can be applied to a TextEditor to restrict the text that can be entered.
|
default |
|
virtualdefault |
|
pure virtual |
This method is called whenever text is entered into the editor.
An implementation of this class should check the input string, and return an edited version of it that should be used.
Implemented in TextEditor::LengthAndCharacterRestriction.
References TextEditor::TextEditor().