| 
 | JavaTM Platform Standard Ed. 6 | |||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 枚举常量 | 字段 | 方法 | 详细信息: 枚举常量 | 字段 | 方法 | |||||||||
java.lang.Objectjava.lang.Enum<LayoutStyle.ComponentPlacement>
javax.swing.LayoutStyle.ComponentPlacement
public static enum LayoutStyle.ComponentPlacement
ComponentPlacement 是两个组件相对于彼此的可能放置方式的枚举。ComponentPlacement 由 LayoutStyle 方法 getPreferredGap 使用。有关更多信息,请参阅 LayoutStyle。
LayoutStyle.getPreferredGap(JComponent,JComponent, ComponentPlacement,int,Container)| 枚举常量摘要 | |
|---|---|
| INDENT一个枚举值,指示被请求组件要缩排的距离。 | |
| RELATED一个枚举值,指示两个组件在视觉上相关,并且将被放置在同一个父容器中。 | |
| UNRELATED一个枚举值,指示两个组件在视觉上不相关,并且将被放置在同一个的父容器中。 | |
| 方法摘要 | |
|---|---|
| static LayoutStyle.ComponentPlacement | valueOf(String name)返回带有指定名称的该类型的枚举常量。 | 
| static LayoutStyle.ComponentPlacement[] | values()Returns an array containing the constants of this enum type, in the order they are declared. | 
| 从类 java.lang.Enum 继承的方法 | 
|---|
| clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf | 
| 从类 java.lang.Object 继承的方法 | 
|---|
| getClass, notify, notifyAll, wait, wait, wait | 
| 枚举常量详细信息 | 
|---|
public static final LayoutStyle.ComponentPlacement RELATED
JTextField 提供标签的 JLabel 通常在视觉上与该 JTextField 关联;常量 RELATED 用于这种情况。
public static final LayoutStyle.ComponentPlacement UNRELATED
UNRELATED 用于此种情况。
public static final LayoutStyle.ComponentPlacement INDENT
INDENT 类型。
 
此值通常只与 EAST 或 WEST 方向一起使用。
| 方法详细信息 | 
|---|
public static final LayoutStyle.ComponentPlacement[] values()
for(LayoutStyle.ComponentPlacement c : LayoutStyle.ComponentPlacement.values())
        System.out.println(c);
public static LayoutStyle.ComponentPlacement valueOf(String name)
指定要返回的枚举常量的名称。 - 
如果该枚举类型没有带有指定名称的常量, - 则抛出 IllegalArgumentException| 
 | JavaTM Platform Standard Ed. 6 | |||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 枚举常量 | 字段 | 方法 | 详细信息: 枚举常量 | 字段 | 方法 | |||||||||
版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策。