All Packages  Class Hierarchy  This Package  Previous  Next  Index

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
JAncestorEvent


Variable Index

 o ANCESTOR_ADDED
 o ANCESTOR_MOVED
 o ANCESTOR_REMOVED

Constructor Index

 o AncestorEvent(JComponent, int, Container, Container)

Method Index

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

Variables

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

Constructors

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

Methods

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

 o 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.

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


All Packages  Class Hierarchy  This Package  Previous  Next  Index