|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.lwuit.layouts.Layout com.sun.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 | |
---|---|
boolean |
equals(java.lang.Object o)
|
int |
getAxis()
Returns the layout axis x/y |
Dimension |
getPreferredSize(Container parent)
Returns the container preferred size |
void |
layoutContainer(Container parent)
Layout the given parent container children |
java.lang.String |
toString()
|
Methods inherited from class com.sun.lwuit.layouts.Layout |
---|
addLayoutComponent, getComponentConstraint, hashCode, isOverlapSupported, removeLayoutComponent |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, 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_AXISMethod Detail |
---|
public void layoutContainer(Container parent)
Layout
layoutContainer
in class Layout
parent
- the given parent containerpublic Dimension getPreferredSize(Container parent)
Layout
getPreferredSize
in class Layout
parent
- the parent container
public int getAxis()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class Layout
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |