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
-
ANCESTOR_ADDED
-
-
ANCESTOR_MOVED
-
-
ANCESTOR_REMOVED
-
-
AncestorEvent(JComponent, int, Container, Container)
-
-
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.
ANCESTOR_ADDED
public static final int ANCESTOR_ADDED
ANCESTOR_REMOVED
public static final int ANCESTOR_REMOVED
ANCESTOR_MOVED
public static final int ANCESTOR_MOVED
AncestorEvent
public AncestorEvent(JComponent source,
int id,
Container ancestor,
Container ancestorParent)
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.
All Packages Class Hierarchy This Package Previous Next Index