public interface HierarchyBoundsListener extends EventListener
HierarchyBoundsAdapter
类(只覆盖方法的兴趣)。从这个类进行了注册一个组件使用的组件的
addHierarchyBoundsListener
方法创建监听对象。当层次的变化由组件属于祖先的大小或移动,在监听对象相关的方法被调用时,与
HierarchyEvent
传递给它。
层次事件仅提供通知的目的;AWT将自动处理变化的层次内部,界面布局灵不管程序注册HierarchyBoundsListener
或不。
HierarchyBoundsAdapter
,
HierarchyEvent
Modifier and Type | Method and Description |
---|---|
void |
ancestorMoved(HierarchyEvent e)
当源的祖先被移动时调用。
|
void |
ancestorResized(HierarchyEvent e)
当源的祖先是大小。
|
void ancestorMoved(HierarchyEvent e)
void ancestorResized(HierarchyEvent e)
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.