Index (Frames) | Index (No Frames) | Package | Package Tree | Tree
javax.swing.event

Class AncestorEvent

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


public class AncestorEvent

extends AWTEvent

Ancestor Event

Authors:

Field Summary

static intANCESTOR_ADDED

ANCESTOR_ADDED constant
static intANCESTOR_MOVED

ANCESTOR_MOVED constant
static intANCESTOR_REMOVED

ANCESTOR_REMOVED constant

Constructor Summary

AncestorEvent(javax.swing.JComponent source, int id, java.awt.Container ancestor, java.awt.Container ancestorParent)

Constructor AncestorEvent

Method Summary

java.awt.ContainergetAncestor()

Get ancestor
java.awt.ContainergetAncestorParent()

Get ancestor parent
javax.swing.JComponentgetComponent()

Get component

Field Details

ANCESTOR_ADDED

public static int ANCESTOR_ADDED

ANCESTOR_ADDED constant


ANCESTOR_MOVED

public static int ANCESTOR_MOVED

ANCESTOR_MOVED constant


ANCESTOR_REMOVED

public static int ANCESTOR_REMOVED

ANCESTOR_REMOVED constant


Constructor Details

AncestorEvent

public AncestorEvent(javax.swing.JComponent source, int id, java.awt.Container ancestor, java.awt.Container ancestorParent)

Constructor AncestorEvent

Parameters:


Method Details

getAncestor

public Container getAncestor()

Get ancestor

Returns:


getAncestorParent

public Container getAncestorParent()

Get ancestor parent

Returns:


getComponent

public JComponent getComponent()

Get component

Returns: