|
JavaTM Platform Standard Ed. 6 |
|||||||||
전의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요: 상자 | 필드 | 생성자 | 메소드 | 상세 : 필드 | 생성자 | 메소드 |
java.lang.Objectjava.util.EventObject
java.awt.AWTEvent
javax.swing.event.AncestorEvent
public class AncestorEvent
컴퍼넌트 계층내의 상위 컴퍼넌트로 발생해, 아이 컴퍼넌트에 보고되는 이벤트입니다.
경고: 이 클래스의 직렬화 된 객체는, 향후의 Swing 릴리스와 호환은 아니게 될 예정입니다. 현재의 직렬화의 지원는, 단기간의 운용이나, 같은 버젼의 Swing 를 실행하는 어플리케이션간의 RMI 에 적절하고 있습니다. JDK Version 1.4 이후, 모든 JavaBeans™ 의 장기간의 운용 지원는,java.beans
패키지에 추가되고 있습니다. 자세한 것은,XMLEncoder
를 참조해 주세요.
필드의 개요 | |
---|---|
static int |
ANCESTOR_ADDED
상위 컴퍼넌트가 가시 객체의 계층에 추가되어 현재는 표시되고 있는 것을 나타냅니다. |
static int |
ANCESTOR_MOVED
상위 컴퍼넌트의 화면상의 위치가 변경된 것을 나타냅니다. |
static int |
ANCESTOR_REMOVED
상위 컴퍼넌트가 가시 객체의 계층으로부터 삭제되어 표시되지 않게 된 것을 나타냅니다. |
클래스 java.util. EventObject 로부터 상속된 필드 |
---|
source |
생성자 의 개요 | |
---|---|
AncestorEvent (JComponent source,
int id,
Container ancestor,
Container ancestorParent)
상위 컴퍼넌트의 표시 상태의 변경을 나타내는, AncestorEvent 객체를 구축합니다. |
메소드의 개요 | |
---|---|
Container |
getAncestor ()
이벤트가 실제로 발생한 상위 클래스를 돌려줍니다. |
Container |
getAncestorParent ()
이벤트가 실제로 발생한 상위 클래스의 부모를 돌려줍니다. |
JComponent |
getComponent ()
청취자가 추가된 컴퍼넌트를 돌려줍니다. |
클래스 java.awt. AWTEvent 로부터 상속된 메소드 |
---|
consume , getID , isConsumed , paramString , setSource , toString |
클래스 java.util. EventObject 로부터 상속된 메소드 |
---|
getSource |
클래스 java.lang. Object 로부터 상속된 메소드 |
---|
clone , equals , finalize , getClass , hashCode , notify , notifyAll , wait , wait , wait |
필드의 상세 |
---|
public static final int ANCESTOR_ADDED
public static final int ANCESTOR_REMOVED
public static final int ANCESTOR_MOVED
생성자 의 상세 |
---|
public AncestorEvent(JComponent source, int id, Container ancestor, Container ancestorParent)
source
- 이벤트의 발생원의 JComponent
(일반적으로은 this
)id
- ANCESTOR_ADDED
,ANCESTOR_REMOVED
, 또는 ANCESTOR_MOVED
(을)를 나타내는 int 치ancestor
- 표시 상태가 변경된 상위 컴퍼넌트를
지정하는 Container 객체ancestorParent
- 상위 컴퍼넌트의 부모를 지정하는 Container 객체메소드의 상세 |
---|
public Container getAncestor()
public Container getAncestorParent()
public JComponent getComponent()
|
JavaTM Platform Standard Ed. 6 |
|||||||||
전의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요: 상자 | 필드 | 생성자 | 메소드 | 상세 : 필드 | 생성자 | 메소드 |
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.