| 
 | JavaTM Platform Standard Ed. 6 | |||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
public interface AncestorListener
AncestorListener 接口支持 JComponent 或其祖先之一发生更改时进行通知。 这些更改包括移动和组件变得可见或不可见时(通过 setVisible() 方法,或者将组件添加到组件层次结构中或从中移除)。
| 方法摘要 | |
|---|---|
|  void | ancestorAdded(AncestorEvent event)当通过调用 setVisible(true) 或将其添加到组件层次结构中而使源组件或其祖先之一变得可见时调用。 | 
|  void | ancestorMoved(AncestorEvent event)在源组件或其祖先之一被移动时调用。 | 
|  void | ancestorRemoved(AncestorEvent event)当通过调用 setVisible(false) 或将其从组件层次结构中移除而使源组件或其祖先之一变得不可见时调用。 | 
| 方法详细信息 | 
|---|
void ancestorAdded(AncestorEvent event)
void ancestorRemoved(AncestorEvent event)
void ancestorMoved(AncestorEvent event)
| 
 | JavaTM Platform Standard Ed. 6 | |||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策。