public static enum LayoutStyle.ComponentPlacement extends Enum<LayoutStyle.ComponentPlacement>
ComponentPlacement
是枚举的可能途径两部分可以放置彼此相对。
ComponentPlacement
由
LayoutStyle
getPreferredGap
使用方法。参考
LayoutStyle
更多信息。
Enum Constant and Description |
---|
INDENT
枚举值指示缩进组件所要求的距离。
|
RELATED
枚举值表示这两个组件是视觉相关的,并将放置在同一个父。
|
UNRELATED
枚举值表示这两个组件在视觉上是无关的,并将放置在同一个父。
|
Modifier and Type | Method and Description |
---|---|
static LayoutStyle.ComponentPlacement |
valueOf(String name)
返回此类型具有指定名称的枚举常量。
|
static LayoutStyle.ComponentPlacement[] |
values()
返回一个数组包含该枚举类型的常量,它们的顺序声明。
|
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 LayoutStyle.ComponentPlacement[] values()
对于(layoutstyle.componentplacement C:layoutstyle。componentplacement。values()) 系统,println(C);
public static LayoutStyle.ComponentPlacement valueOf(String name)
name
-定要返回的枚举的名称。
IllegalArgumentException
-如果这个枚举类型,也没有固定的具有指定名称
NullPointerException
-如果参数为空
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.