|
JavaTM Platform Standard Ed. 6 |
|||||||||
앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요 : 상자 | 필드 | 생성자 | 메소드 | 상세: 필드 | 생성자 | 메소드 |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JSeparator
public class JSeparator
JSeparator
는, 단락선을 구현하기 위한 범용적인 컴퍼넌트를 제공합니다. 무엇보다 일반적으로는, 메뉴 항목을 논리적인 그룹으로 나누기 위한 단락선으로서 사용됩니다. 직접 JSeparator
를 사용하지 않고 ,JMenu
또는 JPopupMenu
의 addSeparator
메소드를 사용해, separator를 작성해, 추가할 수 있습니다. 또,JSeparator
는 시각적인 단락지어 선이 유효한 GUI 에서는 어디에서라도 사용할 수 있습니다.
예 및 상세한 것에 대하여는, 「The Java Tutorial」의「How to Use Menus」를 참조해 주세요.
경고: Swing 는 thread에 대해서 안전하지는 않습니다. 자세한 것은,「Swing's Threading Policy」를 참조해 주세요.
경고: 이 클래스의 직렬화 된 객체는, 향후의 Swing 릴리스와 호환은 아니게 될 예정입니다. 현재의 직렬화의 지원는, 단기간의 운용이나, 같은 버젼의 Swing 를 실행하는 어플리케이션간의 RMI 에 적절하고 있습니다. JDK Version 1.4 이후, 모든 JavaBeans™ 의 장기간의 운용 지원는,java.beans
패키지에 추가되고 있습니다. 자세한 것은,XMLEncoder
를 참조해 주세요.
상자의 클래스의 개요 | |
---|---|
protected class |
JSeparator.AccessibleJSeparator
이 클래스는 JSeparator 클래스용의 접근성? 지원를 구현하고 있습니다. |
클래스 javax.swing. JComponent 로부터 상속된 상자의 클래스/인터페이스 |
---|
JComponent.AccessibleJComponent |
클래스 java.awt. Container 로부터 상속된 상자의 클래스/인터페이스 |
---|
Container.AccessibleAWTContainer |
클래스 java.awt. Component 로부터 상속된 상자의 클래스/인터페이스 |
---|
Component.AccessibleAWTComponent , Component.BaselineResizeBehavior , Component.BltBufferStrategy , Component.FlipBufferStrategy |
필드의 개요 |
---|
클래스 javax.swing. JComponent 로부터 상속된 필드 |
---|
accessibleContext , listenerList , TOOL_TIP_TEXT_KEY , ui , UNDEFINED_CONDITION , WHEN_ANCESTOR_OF_FOCUSED_COMPONENT , WHEN_FOCUSED , WHEN_IN_FOCUSED_WINDOW |
클래스 java.awt. Component 로부터 상속된 필드 |
---|
BOTTOM_ALIGNMENT , CENTER_ALIGNMENT , LEFT_ALIGNMENT , RIGHT_ALIGNMENT , TOP_ALIGNMENT |
인터페이스 javax.swing. SwingConstants 로부터 상속된 필드 |
---|
BOTTOM , CENTER , EAST , HORIZONTAL , LEADING , LEFT , NEXT , NORTH , NORTH_EAST , NORTH_WEST , PREVIOUS , RIGHT , SOUTH , SOUTH_EAST , SOUTH_WEST , TOP , TRAILING , VERTICAL , WEST |
인터페이스 java.awt.image. ImageObserver 로부터 상속된 필드 |
---|
ABORT , ALLBITS , ERROR , FRAMEBITS , HEIGHT , PROPERTIES , SOMEBITS , WIDTH |
생성자 의 개요 | |
---|---|
JSeparator ()
수평 separator를 새롭게 작성합니다. |
|
JSeparator (int orientation)
수평 또는 수직 방향을 지정해 separator를 새롭게 작성합니다. |
메소드의 개요 | |
---|---|
AccessibleContext |
getAccessibleContext ()
이 JSeparator 에 관련한 AccessibleContext 를 돌려줍니다. |
int |
getOrientation ()
이 separator의 방향을 돌려줍니다. |
SeparatorUI |
getUI ()
이 컴퍼넌트를 draw 하는 L&F 객체를 돌려줍니다. |
String |
getUIClassID ()
이 컴퍼넌트를 draw 하는 L&F 클래스의 이름을 돌려줍니다. |
protected String |
paramString ()
이 JSeparator 의 캐릭터 라인 표현을 돌려줍니다. |
void |
setOrientation (int orientation)
separator의 방향을 설정합니다. |
void |
setUI (SeparatorUI ui)
이 컴퍼넌트를 draw 하는 L&F 객체를 설정합니다. |
void |
updateUI ()
현재의 Look & Feel 로부터의 값에 UI 프로퍼티을 리셋 합니다. |
클래스 java.lang. Object 로부터 상속된 메소드 |
---|
clone , equals , finalize , getClass , hashCode , notify , notifyAll , wait , wait , wait |
생성자 의 상세 |
---|
public JSeparator()
public JSeparator(int orientation)
orientation
- SwingConstants.HORIZONTAL
또는 SwingConstants.VERTICAL
를 지정하는 정수
IllegalArgumentException
- orientation
가 SwingConstants.HORIZONTAL
또는 SwingConstants.VERTICAL
가 어느 쪽도 아닌 경우메소드의 상세 |
---|
public SeparatorUI getUI()
public void setUI(SeparatorUI ui)
ui
- SeparatorUI L&F 객체UIDefaults.getUI(javax.swing.JComponent)
public void updateUI()
JComponent
내의 updateUI
JComponent.updateUI()
public String getUIClassID()
JComponent
내의 getUIClassID
JComponent.getUIClassID()
,
UIDefaults.getUI(javax.swing.JComponent)
public int getOrientation()
SwingConstants
로 정의되고 있는 정수 (VERTICAL
또는 HORIZONTAL
)SwingConstants
,
setOrientation(int)
public void setOrientation(int orientation)
orientation
- SwingConstants.HORIZONTAL
또는 SwingConstants.VERTICAL
IllegalArgumentException
- orientation
가 SwingConstants.HORIZONTAL
또는 SwingConstants.VERTICAL
가 어느 쪽도 아닌 경우SwingConstants
,
getOrientation()
protected String paramString()
JSeparator
의 캐릭터 라인 표현을 돌려줍니다. 이 메소드는 디버그 전용이며, 반환되는 캐릭터 라인의 내용 및 형식은 구현에 따라서 다릅니다. 반환되는 캐릭터 라인은 빈 상태(empty)의 경우가 있습니다만,null
로는 되지 않습니다.
JComponent
내의 paramString
JSeparator
의 캐릭터 라인 표현public AccessibleContext getAccessibleContext()
Accessible
내의 getAccessibleContext
JComponent
내의 getAccessibleContext
|
JavaTM Platform Standard Ed. 6 |
|||||||||
앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요 : 상자 | 필드 | 생성자 | 메소드 | 상세: 필드 | 생성자 | 메소드 |
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.