Featured classes

net.rim.device.api.ui.component.AutoCompleteField

This class represents a text field that compares what the user types in the field to a list of possible values and displays a list of matches below the text field. The list of possible matches is defined by a BasicFiltered list object and is set when the AutoCompleteField object is created.

In the sample application, three AutoCompleteField objects are created and displayed. The three AutoCompleteField objects have the following associated data sources:
  • a list of contacts on the BlackBerry® device
  • a list of file names of all the image files, music files, and video files that are saved on the BlackBerry device
  • a static list of months

net.rim.device.api.collection.util.BasicFilteredList

This class is an implementation of the FilteredList interface, which an application can use to match data objects with a search string. The AutoCompleteField uses a BasicFilteredList object as its data source. The BasicFilteredList object can handle an array of strings, an array of objects that implement the toString() method, or a supported data source, such as the contacts application on a BlackBerry device.

The sample application uses BasicFilteredList to define the data sources of each AutoCompleteField.

Previous topic: Overview

Was this information helpful? Send us your comments.