A PropertyComponent that shows its value as editable text. More...
Inherits PropertyComponent.
Public Member Functions | |
| TextPropertyComponent (const Value &valueToControl, const String &propertyName, int maxNumChars, bool isMultiLine) | |
| Creates a text property component. | |
| ~TextPropertyComponent () | |
| Destructor. | |
| virtual void | setText (const String &newText) |
| Called when the user edits the text. | |
| virtual String | getText () const |
| Returns the text that should be shown in the text editor. | |
| void | refresh () |
| void | textWasEdited () |
Protected Member Functions | |
| TextPropertyComponent (const String &propertyName, int maxNumChars, bool isMultiLine) | |
| Creates a text property component. | |
A PropertyComponent that shows its value as editable text.
| TextPropertyComponent::TextPropertyComponent | ( | const String & | propertyName, |
| int | maxNumChars, | ||
| bool | isMultiLine | ||
| ) | [protected] |
Creates a text property component.
The maxNumChars is used to set the length of string allowable, and isMultiLine sets whether the text editor allows carriage returns.
| TextPropertyComponent::TextPropertyComponent | ( | const Value & | valueToControl, |
| const String & | propertyName, | ||
| int | maxNumChars, | ||
| bool | isMultiLine | ||
| ) |
Creates a text property component.
The maxNumChars is used to set the length of string allowable, and isMultiLine sets whether the text editor allows carriage returns.
Destructor.
| virtual void TextPropertyComponent::setText | ( | const String & | newText | ) | [virtual] |
Called when the user edits the text.
Your subclass must use this callback to change the value of whatever item this property component represents.
| virtual String TextPropertyComponent::getText | ( | ) | const [virtual] |
Returns the text that should be shown in the text editor.
| void TextPropertyComponent::refresh | ( | ) | [virtual] |
Implements PropertyComponent.
| void TextPropertyComponent::textWasEdited | ( | ) |