Note: The following S60-specific information applies to TextField
s
as well.
TextBox
popup editor is not implemented in S60.
The support for a full keyboard in TextBox
es works
in the same way as that of text input in native editors. Note, however, that
some of the text constraints are meaningless in full keyboard editors:
Full keyboard editors do not always have automatic casing
functionality so, for example, INITIAL_CAPS_WORD
and INITIAL_CAPS_SENTENCE
are
ignored in them.
Since predictive text input (T9) is always turned off (or
completely unavailable) in full keyboard input, the NON_PREDICTIVE
mode
does not have any effect on the editor.
In devices that allow swapping from full keyboard mode to numeric keypad and vice versa, these constraints work as expected in numeric keypad mode.
S60 platform supports copy/paste functionality.
In S60, the user can insert line separators to the editor. All the line separators force a single line break in the editor.
This is visible as an LF character (\n, U+000A) in TextBox/TextField
getString
or getChars(char[])
. TextBox/TextField
can
handle all line separator combinations defined in table Supported
new-line characters.
The following tables present the different possible TextBox
modifiers
and constraints.
TextBox modifier |
Basic editing style |
---|---|
|
Normal, unconstrained editing.
|
|
Alpha Editing in special URL / email address entry mode.
|
|
Phone number entry (standard number mode).
|
|
Basic number editing:
|
|
As defined in MIDP 2.1 API specification. Only a decimal separator (period "." or comma “,”),the minus sign "-",
and the decimal digits are allowed in the application-visible text property
of |
Input constraint modifier |
Supported with Input Constraints |
Description of modifier |
---|---|---|
|
All |
Text entered into
|
|
All |
The contents of |
|
|
The modifier sets the editor’s initial case mode to text case. The user
is allowed to change the mode. If predictive text input method is supported
in the implementation, it is possible to use it also in an |
|
None. This is not supported. If the user tries to set this modifier, the attempt is ignored. |
The modifier sets the editor’s initial case mode to title case. |
|
|
Disables predictive text input method. |
The JTWI Specification mandates
access to device phone book from a PHONENUMBER
type TextField/TextBox
.
If the focus is on a TextField
or TextBox
with
a PHONENUMBER
type, the user interface allows the user
to activate a feature that allows him/her to select a single phone number
from the system phonebook or contacts database.
The selected phone number replaces the contents of TextField/TextBox
.
This feature uses a system-specific UI for the phone number fetch.
If the UNEDITABLE
constraint is set,
the phonebook fetch operation is not visible in the UI.
If the focus is on a TextField
or TextBox
with
the EMAILADDR
type, the user interface allows the user
to activate a feature that allows him/her to select a single e-mail address
from the system phone book or contacts database.
The selected address replaces the contents of TextField/TextBox
.
This feature uses system-specific UI for the phone number fetch.
If the UNEDITABLE
constraint is set,
then the phone book fetch operation is not visible in the UI.
MIDlet can set the initial input mode by calling the setInitialInputMode(String
characterSubset)
method.
The parameter characterSubset
is a character
subset specifier string, which can be a Unicode character block name (java.lang.Character.UnicodeBlock
),
an input subset as defined by the Java SE class java.awt.im.InputSubset
,
or a MIDP-defined subset.
Editor (native) properties | |||
---|---|---|---|
MIDP input mode |
Local input language |
Input mode |
Casing |
|
If the common input language or the display language in the device is a Latin language, that language is used as the local input language, otherwise English is used. |
Latin text input mode; in Japanese, half width Latin mode |
Text case |
|
Input language is not changed. |
Number input mode |
- |
|
See |
See |
Upper case |
|
See |
See |
Lower case |
|
See |
See |
Text case |
|
Greek |
Text input mode |
Text case |
|
If the common input language or the display language in the device is a Cyrillic language, that language is used as the local input language, otherwise Russian is used. |
Text input mode |
Text case |
|
Hebrew |
Text input mode |
- |
|
If the common input language or the display language in the device is an Arabic language, that language is used as the local input language, otherwise Arabic is used. |
Text input mode |
- |
|
Thai |
Text input mode |
- |
|
Japanese |
Hiragana/kanji input mode |
- |
|
Japanese |
Katakana input mode, full width |
- |
|
Japanese |
Katakana input mode, half width |
- |
|
Japanese |
Hiragana/kanji input mode |
- |
|
Japanese |
Number input mode, full width |
- |
|
Japanese |
Latin input mode, full width |
Text case |
|
Chinese Simplified (Peoples Republic of China) |
The default input method, which normally is Pinyin but the user may have changed it in General Settings. |
- |
|
If the common input language or the display language in the device is a Traditional Hanzi language, that language is used as the local input language, otherwise the local input language is not changed. |
The default input method, which normally is Stroke for Hong Kong and Zhuyin for Taiwan but the user may have changed it in General Settings. |
- |
Note: Automatic character casing modes (such as text case) are not used with
constraints EMAILADDR
, URL
or PASSWORD
,
although mentioned in the above table.