SystemUiInputField
#include <bb/system/SystemUiInputField>
To link against this class, add the following line to your .pro file: LIBS += -lbbsystem
An input field that can be used with dialog boxes.
The presentation of the input field is dependent on the class using it. For instance, some classes may choose not to show the label.
BlackBerry 10.0.0
Properties Index
Public Functions Index
| SystemUiInputField (QObject *parent=0) | |
| SystemUiInputField (bb::system::SystemUiInputMode::Type type, QObject *parent=0) | |
| virtual | ~SystemUiInputField () |
| QString | defaultText () const |
| QString | emptyText () const |
| bb::system::SystemUiInputMode::Type | inputMode () const |
| int | maximumLength () const |
| void | setDefaultText (const QString &text) |
| void | setEmptyText (const QString &text) |
| void | setInputMode (bb::system::SystemUiInputMode::Type type) |
| void | setMaximumLength (int newMaximumLength) |
| Q_INVOKABLE void | resetDefaultText () |
| Q_INVOKABLE void | resetEmptyText () |
| Q_INVOKABLE void | resetInputMode () |
| Q_INVOKABLE void | resetMaximumLength () |
Signals Index
| void | defaultTextChanged (const QString &value) |
| void | emptyTextChanged (const QString &value) |
| void | inputModeChanged (bb::system::SystemUiInputMode::Type value) |
| void | maximumLengthChanged (int newMaximumLength) |
Properties
QString
Represents the text to include in the input field when it is first displayed.
BlackBerry 10.0.0
QString
Represents the text to include in the input field when it is empty.
BlackBerry 10.0.0
bb::system::SystemUiInputMode::Type
Represents the input mode for entering text into the input field.
BlackBerry 10.0.0
int
Represents the number of characters that the input field can contain.
0 is the default value and corresponds to no maximum length restrictions.
Setting a value less than 0 resets the property to the default value.
BlackBerry 10.0.0
Public Functions
Constructs an input field instance with a default keyboard layout bb::system::SystemUiInputMode::Default.
| Parameters | |
|---|---|
| parent |
If not 0, the supplied parent will be responsible for deleting this instance. |
BlackBerry 10.0.0
Constructs an input field instance.
| Parameters | |
|---|---|
| type |
The content type of the text for the new instance. See bb::system::SystemUiInputMode for the list of content types. |
| parent |
If not 0, the supplied parent will be responsible for deleting this instance. |
BlackBerry 10.0.0
virtual
Destructor.
BlackBerry 10.0.0
QString
Retrieves the default text that will be shown in the input field prior to user input.
Returns the default text of the input field.
BlackBerry 10.0.0
QString
Retrieves the text that will be shown in the input field when it is empty.
Returns the text to show when the input field is empty.
BlackBerry 10.0.0
bb::system::SystemUiInputMode::Type
Retrieves the content type of the text in the input field.
bb::system::SystemUiInputMode for a list of content types.
Returns the input field's content type.
BlackBerry 10.0.0
int
Retrieves the number of characters allowed in the input field.
The input field's upper character limit.
BlackBerry 10.0.0
void
Sets the default text that will be shown in the input field prior to user input.
| Parameters | |
|---|---|
| text |
The default text of the input field. |
BlackBerry 10.0.0
void
Sets the text that will be shown in the input field when it is empty.
| Parameters | |
|---|---|
| text |
The text to show when the input field is empty. |
BlackBerry 10.0.0
void
Sets the content type of the text for the input field.
bb::system::SystemUiInputMode for the list of content types.
| Parameters | |
|---|---|
| type |
The input field's content type. |
BlackBerry 10.0.0
void
Sets the number of characters allowed in the input field.
| Parameters | |
|---|---|
| newMaximumLength |
The input field's upper character limit. |
BlackBerry 10.0.0
Q_INVOKABLE void
Resets the default text to QString::null.
BlackBerry 10.0.0
Q_INVOKABLE void
Resets the text that will be shown in the input field when it is empty to QString::null.
BlackBerry 10.0.0
Q_INVOKABLE void
Resets the input mode to bb::system::SystemUiInputMode::Default.
BlackBerry 10.0.0
Q_INVOKABLE void
Resets the maximum length to 0.
BlackBerry 10.0.0
Signals
void
Emitted when the defaultText property is changed programmatically.
| Parameters | |
|---|---|
| value |
The new value of the defaultText property. |
BlackBerry 10.0.0
void
Emitted when the emptyText property is changed programmatically.
| Parameters | |
|---|---|
| value |
The new value of the emptyText property. |
BlackBerry 10.0.0
void
Emitted when the inputMode property is changed programmatically.
bb::system::SystemUiInputMode for the list of content types.
| Parameters | |
|---|---|
| value |
The new value of the inputMode property. |
BlackBerry 10.0.0
void
Emitted when the maximumLength property is changed programmatically.
| Parameters | |
|---|---|
| newMaximumLength |
The new value of the maximumLength property. |
BlackBerry 10.0.0