O'Reilly logo

LWUIT 1.1 for Java ME Developers by Biswajit Sarkar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The LayoutStyle class

The LayoutStyle class is used for specifying the spacing between two components or between a component and an edge of the parent container. The spacing can depend upon whether the components are logically grouped together or not. The grouping relationship is used for accessing the preferred gap between components. The field LayoutStyle.RELATED indicates a logical grouping, while LayoutStyle.UNRELATED indicates that two components under reference are not related.

LayoutStyle does have a default constructor, but the usual way of getting an instance of this class is to use the static method getSharedInstance(), which returns the appropriate layout style instance.

The two other methods of this class provided for general use ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required