|
JavaTM Platform Standard Ed. 6 |
|||||||||
앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요: 상자 | 열거형 정수 | 필드 | 메소드 | 상세 : 열거형 정수 | 필드 | 메소드 |
java.lang.Objectjava.lang.Enum <LayoutStyle.ComponentPlacement >
javax.swing.LayoutStyle.ComponentPlacement
public static enum LayoutStyle.ComponentPlacement
ComponentPlacement
는, 2 개의 컴퍼넌트를 서로 관련지어 배치하는 경우에 사용할 수 있는 방법의 열거입니다. ComponentPlacement
는,LayoutStyle
메소드 getPreferredGap
에 의해 사용됩니다. 자세한 것은,LayoutStyle
를 참조해 주세요.
LayoutStyle.getPreferredGap(JComponent, JComponent,
ComponentPlacement, int, Container)
열거형 정수의 개요 | |
---|---|
INDENT
컴퍼넌트를 인덴트 하는 거리가 요구되고 있는 것을 나타내는 열거치입니다. |
|
RELATED
2 개의 컴퍼넌트가 시각적으로 관련하고 있는 것으로, 이러한 컴퍼넌트가 같은 부모아래에 배치되는 것을 나타내는 열거치입니다. |
|
UNRELATED
2 개의 컴퍼넌트가 시각적으로 관련하고 있지 않는 것과 이러한 컴퍼넌트가 같은 부모아래에 배치되는 것을 나타내는 열거치입니다. |
메소드의 개요 | |
---|---|
static LayoutStyle.ComponentPlacement |
valueOf (String name)
지정한 이름을 가지는 이 형태의 열거형 정수를 돌려줍니다. |
static LayoutStyle.ComponentPlacement [] |
values ()
이 열거형의 정수를 포함한 배열이 선언되고 있는 순서로 돌려줍니다. |
클래스 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 LayoutStyle.ComponentPlacement [] values()
for (LayoutStyle.ComponentPlacement c : LayoutStyle.ComponentPlacement.values()) System.out.println(c);
public static LayoutStyle.ComponentPlacement valueOf(String name)
name
- 반환되는 열거형 정수의 이름
IllegalArgumentException
- 지정된 이름을 가지는 정수를
이 열거형이 가지고 있지 않은 경우
NullPointerException
- 인수가 null 의 경우
|
JavaTM Platform Standard Ed. 6 |
|||||||||
앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요: 상자 | 열거형 정수 | 필드 | 메소드 | 상세 : 열거형 정수 | 필드 | 메소드 |
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.