Packageqnx.ui.text
Classpublic class TextInputIconMode
InheritanceTextInputIconMode Inheritance Object

The TextInputIconMode class contains the constants that govern when the clear text icon is enabled on a TextInput field. The clear text icon clears any text in the TextInput field.

The clear text icon appears on the right-side of the TextInput field:

A textInputfield with the clear text icon enabled.

See also

TextInput


Public Constants
 ConstantDefined By
  ALWAYS : int = 1
[static] Enables the clear text icon.
TextInputIconMode
  NEVER : int = 0
[static] Disables the clear text icon.
TextInputIconMode
  UNLESS_EDITING : int = 3
[static] Disables the clear text icon when the user is entering text in the TextInput field.
TextInputIconMode
  WHILE_EDITING : int = 2
[static] Enables the clear text icon only when a user is entering text in the TextInput field.
TextInputIconMode
Constant Detail
ALWAYSConstant
public static const ALWAYS:int = 1

Enables the clear text icon. The icon is always present in the TextInput field.

NEVERConstant 
public static const NEVER:int = 0

Disables the clear text icon.

UNLESS_EDITINGConstant 
public static const UNLESS_EDITING:int = 3

Disables the clear text icon when the user is entering text in the TextInput field.

WHILE_EDITINGConstant 
public static const WHILE_EDITING:int = 2

Enables the clear text icon only when a user is entering text in the TextInput field.

This is the default value.