| public static final enum javax.swing LayoutStyle.ComponentPlacement
|
Java SE 6 |
ComponentPlacement is an enumeration of the
possible ways two components can be placed relative to each
other. ComponentPlacement is used by the
LayoutStyle method getPreferredGap. Refer to
LayoutStyle for more information.
| since | 1.6 |
| See also | getPreferredGap(JComponent,JComponent, ComponentPlacement,int,Container) |
| Enum constants | |
|---|---|
| final public static LayoutStyle.ComponentPlacement | RELATED Enumeration value indicating the two components are visually related and will be placed in the same parent. For example, a JLabel providing a label for a
JTextField is typically visually associated
with the JTextField; the constant RELATED
is used for this.
|
| final public static LayoutStyle.ComponentPlacement | UNRELATED Enumeration value indicating the two components are visually unrelated and will be placed in the same parent. For example, groupings of components are usually visually separated; the constant UNRELATED is used for this.
|
| final public static LayoutStyle.ComponentPlacement | INDENT Enumeration value indicating the distance to indent a component is being requested. For example, often times the children of a label will be horizontally indented from the label. To determine the preferred distance for such a gap use the INDENT type.
This value is typically only useful with a direction of
|
| Methods | |
|---|---|
| public static LayoutStyle.ComponentPlacement | valueOf(String name) |
| public static LayoutStyle.ComponentPlacement[] | values() |
| About DocWeb · Bundles · Export · Export All | Top 10 · Statistics · Login |
| About Sun · Contact · Privacy · Terms of Use · Trademarks | Java SE 6 · Copyright © 1994-2009 Sun Microsystems, Inc.All rights reserved. Use is subject to license terms |
![]() |
![]() |
|