×

GroupHeader

The GroupHeader is a LWUIT component. It allows to create a header which can be added on Form, and is used to separate a group of items.

GroupHeader has different implementations such as:

  • Simple GroupHeader

  • GroupHeader with separator

  • GroupHeader with spinner

Figure 1. GroupHeader in a MIDlet

Implementation

  1. Create instance of GroupHeader.

    // Create instance of simple GroupHeader
    GroupHeader header = new GroupHeader("Group Header", false);
    
    // Create instance of GroupHeader with separator
    GroupHeader header = new GroupHeader("Group Header", true);
    
    // Create instance of GroupHeader with spinner
    GroupHeader header2 = new GroupHeader("Group Header", new InfiniteProgressIndicator(InfiniteProgressIndicator.SPINNER_SMALL));
  2. Call show() method to display GroupHeader on screen.

    // Show GroupHeader
    Form.addComponent(header2);

Last updated 24 June 2013

Back to top

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×