8.4. Displayables

Displayable objects are the views in which the application interaction takes place. Application-defined operations in Displayable objects are implemented using Commands. The device implementation provides additional operations based on displayable type, as will be discussed in Section 8.6.3, “Device-Provided Operations.”

All Displayable objects have the following properties:

  • Zero or more Commands for application specific user operations on the Displayable

  • A CommandListener (set by the application with the method setCommandListener[1]) that gets notified when the user selects any of the Commands

    [1] Note that only a single CommandListener can be added because of the unicast listener model is used in the lcdui API.

  • A title[2]

Get Programming Wireless Devices with the Java™ 2 Platform, Micro Edition, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.