|
Java DTV API 1.3 18-Nov-2009 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sun.dtv.lwuit.layouts.Layout
com.sun.dtv.lwuit.layouts.BoxLayout
public class BoxLayout
Layout manager that places elements in a row or column according to box orientation.
| Field Summary | |
|---|---|
static int |
X_AXIS
Horizontal layout where components are arranged from left to right. |
static int |
Y_AXIS
Vertical layout where components are arranged from top to bottom. |
| Constructor Summary | |
|---|---|
BoxLayout(int axis)
Creates a new instance of BoxLayout. |
|
| Method Summary | |
|---|---|
Dimension |
getPreferredSize(Container parent)
Returns the container preferred size. |
void |
layoutContainer(Container parent)
Layout the given parent container children. |
| Methods inherited from class com.sun.dtv.lwuit.layouts.Layout |
|---|
addLayoutComponent, getComponentConstraint, isOverlapSupported, removeLayoutComponent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int X_AXIS
public static final int Y_AXIS
| Constructor Detail |
|---|
public BoxLayout(int axis)
axis - the axis to lay out components along.
Can be: BoxLayout.X_AXIS or BoxLayout.Y_AXIS.| Method Detail |
|---|
public void layoutContainer(Container parent)
Layout
layoutContainer in class Layoutparent - the given parent containerpublic Dimension getPreferredSize(Container parent)
Layout
getPreferredSize in class Layoutparent - the parent container
|
Java DTV API 1.3 18-Nov-2009 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||