FocusPolicy

Since: BlackBerry 10.0.0

#include <bb/cascades/FocusPolicy>

Represents different focus policies, which specify how a control can receive focus from a user's interation.

Whether or not a control can receive focus during a user interaction, it can always receive focus programmatically (i.e. by calling the Control::requestFocus function).


Overview

Public Types Index

enum Type

Default = 0x0, None = 0x1, Touch = 0x2, Key = 0x4, KeyAndTouch = Touch | Key

Public Types

Type

Specifies the different focus policy for a control.

Since:

BlackBerry 10.0.0

Default = 0x0

The default focus policy preferred by the Control.

Since:

BlackBerry 10.0.0

None = 0x1

Control is only focusable programmatically.

Since:

BlackBerry 10.0.0

Touch = 0x2

Control can be focused by touch input.

Since:

BlackBerry 10.0.0

Key = 0x4

Control can be focused by key input.

Since:

BlackBerry 10.0.0

KeyAndTouch = Touch | Key

Control can be focused by both touch and key input.

Since:

BlackBerry 10.0.0

Last modified: 2014-03-13

comments powered by Disqus