|
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.BorderLayout
public class BorderLayout
A border layout lays out a container, arranging and resizing its components to fit in five regions: north, south, east, west, and center. Each region may contain no more than one component, and is identified by a corresponding constant: NORTH, SOUTH, EAST, WEST, and CENTER. When adding a component to a container with a border layout, use one of these five constants.
Field Summary | |
---|---|
static String |
CENTER
The center layout constraint (middle of container). |
static String |
EAST
The east layout constraint (right of container). |
static String |
NORTH
The north layout constraint (top of container). |
static String |
SOUTH
The south layout constraint (bottom of container). |
static String |
WEST
The west layout constraint (left of container). |
Constructor Summary | |
---|---|
BorderLayout()
Creates a new instance of BorderLayout. |
Method Summary | |
---|---|
void |
addLayoutComponent(Object name,
Component comp,
Container c)
Some layouts can optionally track the addition of elements with meta-data that allows the user to "hint" on object positioning. |
Object |
getComponentConstraint(Component comp)
Returns the component's constraint. |
Dimension |
getPreferredSize(Container parent)
Returns the container preferred size. |
void |
layoutContainer(Container target)
Layout the given parent container children. |
void |
removeLayoutComponent(Component comp)
Removes the component from the layout this operation is only useful if the layout maintains references to components within it. |
Methods inherited from class com.sun.dtv.lwuit.layouts.Layout |
---|
isOverlapSupported |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String NORTH
public static final String SOUTH
public static final String CENTER
public static final String WEST
public static final String EAST
Constructor Detail |
---|
public BorderLayout()
Method Detail |
---|
public void addLayoutComponent(Object name, Component comp, Container c)
Layout
addLayoutComponent
in class Layout
name
- optional meta data information, like alignment orientationcomp
- the added component to the layoutc
- the parent containerpublic void removeLayoutComponent(Component comp)
Layout
removeLayoutComponent
in class Layout
comp
- the removed component from layoutpublic Object getComponentConstraint(Component comp)
Layout
getComponentConstraint
in class Layout
comp
- the component
public void layoutContainer(Container target)
Layout
layoutContainer
in class Layout
target
- the given parent containerpublic Dimension getPreferredSize(Container parent)
Layout
getPreferredSize
in class Layout
parent
- 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 |