javax.swing.event

Class AncestorEvent

public class AncestorEvent extends AWTEvent

Field Summary
static intANCESTOR_ADDED
static intANCESTOR_MOVED
static intANCESTOR_REMOVED
Constructor Summary
AncestorEvent(JComponent source, int id, Container ancestor, Container ancestorParent)
Method Summary
ContainergetAncestor()
Returns the ancestor of this event.
ContainergetAncestorParent()
Returns the ancester parent of this event.
JComponentgetComponent()
Returns the source of this event.

Field Detail

ANCESTOR_ADDED

public static final int ANCESTOR_ADDED

ANCESTOR_MOVED

public static final int ANCESTOR_MOVED

ANCESTOR_REMOVED

public static final int ANCESTOR_REMOVED

Constructor Detail

AncestorEvent

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

Parameters: source Source component id ID ancestor ancestor ancestorParent parent ancestor

Method Detail

getAncestor

public Container getAncestor()
Returns the ancestor of this event.

getAncestorParent

public Container getAncestorParent()
Returns the ancester parent of this event.

getComponent

public JComponent getComponent()
Returns the source of this event.