JUCE
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines
Public Member Functions | Protected Member Functions
TextPropertyComponent Class Reference

A PropertyComponent that shows its value as editable text. More...

Inherits PropertyComponent.

List of all members.

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.

Detailed Description

A PropertyComponent that shows its value as editable text.

See also:
PropertyComponent

Constructor & Destructor Documentation

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.

See also:
TextEditor
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.

See also:
TextEditor

Destructor.


Member Function Documentation

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.


The documentation for this class was generated from the following file: