|
JavaTM Platform Standard Ed. 6 |
|||||||||
전의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요: 상자 | 필드 | 생성자 | 메소드 | 상세: 필드 | 생성자 | 메소드 |
public interface WindowListener
윈도우 이벤트를 받기 위한 청취자 인터페이스입니다. 윈도우 이벤트의 처리에 관련하는 클래스는, 이 인터페이스 및 포함되는 모든 메소드를 구현하는지, 관련하는 메소드만을 오버라이드(override) 해 abstract 클래스 WindowAdapter
를 확장합니다. 그러한 클래스로부터 작성된 청취자 객체는,addWindowListener
메소드를 사용해 윈도우에 등록됩니다. 윈도우가 오픈, 클로즈, 액티브화, 비액티브화, 아이콘화, 비아이콘화 되는 것에 의해 윈도우 상태가 변화하면(자), 청취자 객체의 관련하는 메소드가 불려 가 그 메소드에 WindowEvent
가 건네받습니다.
WindowAdapter
,
WindowEvent
,
「Tutorial: How to Write Window Listeners」 메소드의 개요 | |
---|---|
void |
windowActivated (WindowEvent e)
Window 가 액티브 Window 로 설정되면(자) 불려 갑니다. |
void |
windowClosed (WindowEvent e)
윈도우에 대한 dispose 의 호출의 결과로서, 윈도우가 클로즈 되었을 때에 불려 갑니다. |
void |
windowClosing (WindowEvent e)
사용자가, 윈도우의 시스템 메뉴로 윈도우를 닫으려고 했을 때에 불려 갑니다. |
void |
windowDeactivated (WindowEvent e)
Window 가 액티브 Window 가 아니게 되었을 때에 불려 갑니다. |
void |
windowDeiconified (WindowEvent e)
윈도우가 최소화된 상태로부터 일반적으로 상태로 변경되었을 때에 불려 갑니다. |
void |
windowIconified (WindowEvent e)
윈도우가 일반적으로 상태로부터 최소화된 상태로 변경되었을 때에 불려 갑니다. |
void |
windowOpened (WindowEvent e)
윈도우가 최초로 가시가 되었을 때에 불려 갑니다. |
메소드의 상세 |
---|
void windowOpened(WindowEvent e)
void windowClosing(WindowEvent e)
void windowClosed(WindowEvent e)
void windowIconified(WindowEvent e)
Frame.setIconImage(java.awt.Image)
void windowDeiconified(WindowEvent e)
void windowActivated(WindowEvent e)
void windowDeactivated(WindowEvent e)
|
JavaTM Platform Standard Ed. 6 |
|||||||||
전의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요: 상자 | 필드 | 생성자 | 메소드 | 상세: 필드 | 생성자 | 메소드 |
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.