UI Components for Java ME


The true power of Java ME Low Level UI API

List

List is a screen that shows a list of items. Each item is compounded of an image and a single line text. A vertical scroll bar is provided whether all the items of the list do not fit in the display.

This component can be used in three diferent manners, regarding item selection: IMPLICIT, MULTIPLE and EXCLUSIVE. You just have to decide which type to use at the instantiation time.

Other components in this project extends List (ie. Detail List, Grouped List and Grid). We will talk about them in the next section.

Features

  • IMPLICIT, MULTIPLE and EXCLUSIVE list
  • Sort

Main Methods

  • public void append(Object item, Image img)
  • public void sort()
  • public void setChecked(int itemIndex, boolean checked)

Code Snippet

List l = new List("Favorite Colors");
//
l.append("Red", null);
l.append("Yellow", null);
l.append("Black", null);
l.append("White", null);

Screenshots