JavaTM Platform
Standard Ed. 6

java.awt.event
接口 WindowStateListener

所有超级接口:
EventListener
所有已知实现类:
AWTEventMulticaster, BasicToolBarUI.FrameListener, JMenu.WinListener, WindowAdapter

public interface WindowStateListener
extends EventListener

用于接收窗口状态事件的侦听器接口。

旨在处理窗口状态事件的类要么实现此接口(及其包含的所有方法),要么扩展抽象 WindowAdapter 类(仅重写所需的方法)。

然后使用 WindowaddWindowStateListener 方法将从该类所创建的侦听器对象向该 Window 注册。当通过图标化、最大化等改变窗口状态时,就调用侦听器对象中的 windowStateChanged 方法,并将 WindowEvent 传递给该方法。

从以下版本开始:
1.4
另请参见:
WindowAdapter, WindowEvent

方法摘要
 void windowStateChanged(WindowEvent e)
          窗口状态改变时调用。
 

方法详细信息

windowStateChanged

void windowStateChanged(WindowEvent e)
窗口状态改变时调用。


JavaTM Platform
Standard Ed. 6

提交错误或意见
有关更多的 API 参考资料和开发人员文档,请参阅 Java SE 开发人员文档。该文档包含更详细的、面向开发人员的描述,以及总体概述、术语定义、使用技巧和工作代码示例。

版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策