Where Am I? Class Hierarchy (JFC) All Classes (JFC)

Class com.sun.java.swing.event.AncestorEvent

java.lang.Object
   |
   +----java.util.EventObject
           |
           +----java.awt.AWTEvent
                   |
                   +----com.sun.java.swing.event.AncestorEvent

public class AncestorEvent
extends AWTEvent

AncestorEvent

Warning: serialized objects of this class will not be compatible with future swing releases. The current serialization support is appropriate for short term storage or RMI between Swing1.0 applications. It will not be possible to load serialized Swing1.0 objects with future releases of Swing. The JDK1.2 release of Swing will be the compatibility baseline for the serialized form of Swing objects.


Variable Index

ANCESTOR_ADDED
ANCESTOR_MOVED
ANCESTOR_REMOVED

Constructor Index

AncestorEvent(JComponent, int, Container, Container)

Method Index

getAncestor()
Returns the ancestor that the event actually occured on.
getAncestorParent()
Returns the parent of the ancestor the event actually occured on.
getComponent()
Returns the component that the listener was added to.

Variables

ANCESTOR_ADDED
 public static final int ANCESTOR_ADDED
ANCESTOR_REMOVED
 public static final int ANCESTOR_REMOVED
ANCESTOR_MOVED
 public static final int ANCESTOR_MOVED

Constructors

AncestorEvent
 public AncestorEvent(JComponent source,
                      int id,
                      Container ancestor,
                      Container ancestorParent)

Methods

getAncestor
 public Container getAncestor()
Returns the ancestor that the event actually occured on.

getAncestorParent
 public Container getAncestorParent()
Returns the parent of the ancestor the event actually occured on. This is most interesting in an ANCESTOR_REMOVED event, as the ancestor may no longer be in the component hierarchy.

getComponent
 public JComponent getComponent()
Returns the component that the listener was added to.


Where Am I? Class Hierarchy (JFC) All Classes (JFC)