UI Components for Java ME


The true power of Java ME Low Level UI API.

Grouped List

The difference between Grouped List and the other components that extends List is the grouping feature. In this list you associate some child items to a parent item. So the child items can be expanded or collapsed by their parent. The number of grouping levels supported is infinite. Better. As much as fit in the screen's width.

Features

  • Items grouping
  • Support N grouping levels
  • Expand and collpase children items

Main Methods

  • public void append(GroupedItem item)

Code Snippet

GroupedItem i1 = new GroupedItem("Item 1", "R$");
GroupedItem i11 = new GroupedItem("Item1.1", "R$", 10);
GroupedItem i12 = new GroupedItem("Item1.2", "R$", 20);
//
item1.add(i11);
item1.add(i12);
// *
GroupedItem i2 = new GroupedItem("Item 2", "R$");
GroupedItem i21 = new GroupedItem("Item 2.1", "R$");
GroupedItem i22 = new GroupedItem("Item 2.2", "R$", 30);
//
item2.add(i21);
item2.add(i22);
//
append(item1);
append(item2);

Screenshots