Featured classes

net.rim.device.api.ui.component.ActiveAutoTextEditField

This active text field is supplied with a set of string patterns from the PatternRepository.

In the sample application, any nine-digit number that a BlackBerry® device user types in the ActiveAutoTextEditField is highlighted and can be clicked to access the Status and Location menu items.

net.rim.device.api.system.ApplicationDescriptor

This class is used to register an ApplicationDescriptor for this application. When an application descriptor is created, it is used to identify this application.

net.rim.blackberry.api.stringpattern.PatternRepository

This class provides the ability to register a pattern with an application. The menu items that are registered with the pattern will become available in the context menu when a String matching the provided pattern is found in any active field.

In the sample application, the Status and Location menu items become available when the user clicks a nine-digit number in any active field in any application.

net.rim.blackberry.api.menuitem.ApplicationMenuItem

In the sample application, menu items are created and stored in an array. This array of menu items, along with a pattern and application descriptor, is passed into PatternRepository.addPattern(), which adds and registers the menu items so that they appear in the context menu when a pattern is found.

Previous topic: Overview

Was this information helpful? Send us your comments.