Tizen Native API
4.0
|
A control which provides a single-line editable text field. More...
Classes | |
struct | InputStyle |
Mask used by the signal InputStyleChangedSignal(). Notifies which parameters of the input style have changed. More... | |
struct | Property |
Enumeration for the instance of properties belonging to the TextField class. More... | |
Public Types | |
enum | PropertyRange |
The start and end property ranges for this control. More... | |
enum | ExceedPolicy |
Enumeration for specifying how the text is truncated when it does not fit. More... | |
typedef Signal< void(TextField) > | TextChangedSignalType |
Text changed signal type. | |
typedef Signal< void(TextField) > | MaxLengthReachedSignalType |
Max Characters Exceed signal type. | |
typedef Signal< void(TextField, InputStyle::Mask) > | InputStyleChangedSignalType |
Input Style changed signal type. | |
Public Member Functions | |
TextField () | |
Creates an empty handle. | |
TextField (const TextField &handle) | |
Copy constructor. | |
TextField & | operator= (const TextField &handle) |
Assignment operator. | |
~TextField () | |
Destructor. | |
TextChangedSignalType & | TextChangedSignal () |
This signal is emitted when the text changes. | |
MaxLengthReachedSignalType & | MaxLengthReachedSignal () |
This signal is emitted when inserted text exceeds the maximum character limit. | |
InputStyleChangedSignalType & | InputStyleChangedSignal () |
This signal is emitted when the input style is updated as a consequence of a change in the cursor position. i.e. The signal is not emitted when the input style is updated through the property system. | |
TextField (Internal::TextField &implementation) | |
Creates a handle using the Toolkit::Internal implementation. | |
TextField (Dali::Internal::CustomActor *internal) | |
Allows the creation of this Control from an Internal::CustomActor pointer. | |
Static Public Member Functions | |
static TextField | New () |
Creates the TextField control. | |
static TextField | DownCast (BaseHandle handle) |
Downcasts a handle to TextField. |
A control which provides a single-line editable text field.
Signals | Signal Name | Method | | |----------------------|--------------------------------|--------------------| | textChanged | TextChangedSignal() |
typedef Signal<void ( TextField, InputStyle::Mask ) > Dali::Toolkit::TextField::InputStyleChangedSignalType |
Input Style changed signal type.
typedef Signal<void ( TextField ) > Dali::Toolkit::TextField::MaxLengthReachedSignalType |
Max Characters Exceed signal type.
typedef Signal<void ( TextField ) > Dali::Toolkit::TextField::TextChangedSignalType |
Text changed signal type.
Enumeration for specifying how the text is truncated when it does not fit.
The default value is EXCEED_POLICY_CLIP.
The start and end property ranges for this control.
PROPERTY_START_INDEX |
|
PROPERTY_END_INDEX |
Reserve property indices.
|
Reimplemented from Dali::Toolkit::Control.
Creates an empty handle.
Dali::Toolkit::TextField::TextField | ( | const TextField & | handle | ) |
Copy constructor.
[in] | handle | The handle to copy from |
Destructor.
This is non-virtual since derived Handle types must not contain data or virtual methods.
Dali::Toolkit::TextField::TextField | ( | Internal::TextField & | implementation | ) |
Creates a handle using the Toolkit::Internal implementation.
[in] | implementation | The Control implementation |
Dali::Toolkit::TextField::TextField | ( | Dali::Internal::CustomActor * | internal | ) | [explicit] |
Allows the creation of this Control from an Internal::CustomActor pointer.
[in] | internal | A pointer to the internal CustomActor |
static TextField Dali::Toolkit::TextField::DownCast | ( | BaseHandle | handle | ) | [static] |
Downcasts a handle to TextField.
If the BaseHandle points is a TextField, the downcast returns a valid handle. If not, the returned handle is left empty.
[in] | handle | Handle to an object |
Reimplemented from Dali::Toolkit::Control.
This signal is emitted when the input style is updated as a consequence of a change in the cursor position. i.e. The signal is not emitted when the input style is updated through the property system.
A callback of the following type may be connected. The mask
parameter notifies which parts of the style have changed.
void YourCallbackName( TextField textField, TextField::InputStyle::Mask mask );
This signal is emitted when inserted text exceeds the maximum character limit.
A callback of the following type may be connected:
void YourCallbackName( TextField textField );
static TextField Dali::Toolkit::TextField::New | ( | ) | [static] |
Creates the TextField control.
Reimplemented from Dali::Toolkit::Control.
Assignment operator.
[in] | handle | The handle to copy from |
This signal is emitted when the text changes.
A callback of the following type may be connected:
void YourCallbackName( TextField textField );