MIDP-Specific Packages

The MIDP-specific packages javax.microedition.lcdui, javax.microedition.midlet, and javax.microedition.rms are described in the following sections.

The javax.microedition.lcdui Package

This package provides a set of features for implementation of user interfaces for MIDP applications.

Interfaces
Choice The Choice interface defines methods for UI components implementing the capability of selecting elements from a predefined number of elements.
CommandListener The CommandListener interface defines methods that are used by applications that want to receive high-level commands from the UI implementation.
ItemStateListener The ItemStateListener interface defines methods that are used by applications that want to receive events that indicate changes in the internal state of the interactive items within a Form screen.

Classes
Alert The Alert class provides a screen that shows data to the user and waits for a specified period of time before proceeding to the next screen.
AlertType The AlertType class provides an indication of the behavior of alerts.
Canvas The Canvas class is the base class for writing applications that need to handle low-level events and to issue graphics calls for drawing to the display at low-level.
ChoiceGroup The ChoiceGroup class is a group of selectable elements that needs to be appended to a Form.
Command The Command class encapsulates the semantic information of an action.
DateField The DateField class provides a UI component for editing date and time information. This UI component needs to be appended to a Form.
Display The Display class represents the manager of the display and input devices of the system.
Displayable The Displayable class encapsulates an object that has the capabilities to be placed on the Display.
Font The Font class represents a font and font metrics.
Form The Form class is a Screen that contains an arbitrary mixture of all available high-level UI components.
Gauge The Gauge class represents a bar graph display of a value that needs to be placed in a Form.
Graphics The Graphics class provides simple 2D geometric rendering in the low-level API.
Image The Image class is used to hold image data.
ImageItem The ImageItem class provides layout functionality for images that need to be placed in a Form or Alert.
Item The Item class is the superclass of all UI components that can be appended to Forms and Alerts.
List The List class provides a Screen containing a list of choices.
Screen The Screen class is the superclass of all high-level user interface classes.
StringItem The StringItem class is an Item containing a String.
TextBox The TextBox class provides a Screen that is capable of entering and editing text.
TextField The TextField class provides an Item that is capable of entering and editing text that needs to be appended to a Form.
Ticker The Ticker class implements a UI component where the text scrolls continuously across the display.

The javax.microedition.midlet Package

This package defines MIDP applications and the interactions between the application and the environment in which the application is executed.

Class

The MIDlet class provides an application for the MID profile.

Exception

The MIDletStateChangeException signals that a requested MIDlet state change has failed.

The javax.microedition.rms Package

This package provides a mechanism to persistently store data and later retrieve it.

Interfaces
RecordComparator The RecordComparator interface defines methods for a comparator that compares two records, depending on the application-defined criteria, in order to see if they match or to determine their relative sort order.
RecordEnumeration The RecordEnumeration interface defines methods for a bidirectional record store record enumerator.
RecordFilter The RecordFilter interface defines methods for a filter that examines a record to see if it matches depending on the application-defined criteria.
RecordListener The RecordListener interface defines methods for receiving events indicating that a Record was changed, added, or deleted from a record store.

Class

The RecordStore class represents one record store.

Exceptions
InvalidRecordIDException The InvalidRecordIDException is thrown to indicate that an operation could not be completed, because the record ID was invalid.
RecordStoreException The RecordStoreException is thrown to signal that a general exception occurred in a record store operation.
RecordStoreFullException The RecordStoreFullException is thrown to indicate that an operation could not be completed, because the record store system storage was full.
RecordStoreNotFoundException The RecordStoreNotFoundException is thrown to indicate that an operation could not be completed, because the record store could not be found.
RecordStoreNotOpenException The RecordStoreNotOpenException is thrown to indicate that an operation was attempted on a closed record store.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset