javax.swing
Class AncestorNotifier

java.lang.Object
  extended byjavax.swing.AncestorNotifier
All Implemented Interfaces:
ComponentListener, EventListener, java.beans.PropertyChangeListener, Serializable

class AncestorNotifier
extends Object
implements ComponentListener, java.beans.PropertyChangeListener, Serializable

Author:
Dave Moore

Field Summary
(package private)  Component firstInvisibleAncestor
           
(package private)  EventListenerList listenerList
           
(package private)  JComponent root
           
 
Constructor Summary
(package private) AncestorNotifier(JComponent root)
           
 
Method Summary
(package private)  void addAncestorListener(AncestorListener l)
           
(package private)  void addListeners(Component ancestor, boolean addToFirst)
           
 void componentHidden(ComponentEvent e)
          Invoked when the component has been made invisible.
 void componentMoved(ComponentEvent e)
          Invoked when the component's position changes.
 void componentResized(ComponentEvent e)
          Invoked when the component's size changes.
 void componentShown(ComponentEvent e)
          Invoked when the component has been made visible.
protected  void fireAncestorAdded(JComponent source, int id, Container ancestor, Container ancestorParent)
           
protected  void fireAncestorMoved(JComponent source, int id, Container ancestor, Container ancestorParent)
           
protected  void fireAncestorRemoved(JComponent source, int id, Container ancestor, Container ancestorParent)
           
(package private)  AncestorListener[] getAncestorListeners()
           
 void propertyChange(java.beans.PropertyChangeEvent evt)
           
(package private)  void removeAllListeners()
           
(package private)  void removeAncestorListener(AncestorListener l)
           
(package private)  void removeListeners(Component ancestor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

firstInvisibleAncestor

Component firstInvisibleAncestor

listenerList

EventListenerList listenerList

root

JComponent root
Constructor Detail

AncestorNotifier

AncestorNotifier(JComponent root)
Method Detail

addAncestorListener

void addAncestorListener(AncestorListener l)

removeAncestorListener

void removeAncestorListener(AncestorListener l)

getAncestorListeners

AncestorListener[] getAncestorListeners()

fireAncestorAdded

protected void fireAncestorAdded(JComponent source,
                                 int id,
                                 Container ancestor,
                                 Container ancestorParent)

fireAncestorRemoved

protected void fireAncestorRemoved(JComponent source,
                                   int id,
                                   Container ancestor,
                                   Container ancestorParent)

fireAncestorMoved

protected void fireAncestorMoved(JComponent source,
                                 int id,
                                 Container ancestor,
                                 Container ancestorParent)

removeAllListeners

void removeAllListeners()

addListeners

void addListeners(Component ancestor,
                  boolean addToFirst)

removeListeners

void removeListeners(Component ancestor)

componentResized

public void componentResized(ComponentEvent e)
Description copied from interface: ComponentListener
Invoked when the component's size changes.

Specified by:
componentResized in interface ComponentListener

componentMoved

public void componentMoved(ComponentEvent e)
Description copied from interface: ComponentListener
Invoked when the component's position changes.

Specified by:
componentMoved in interface ComponentListener

componentShown

public void componentShown(ComponentEvent e)
Description copied from interface: ComponentListener
Invoked when the component has been made visible.

Specified by:
componentShown in interface ComponentListener

componentHidden

public void componentHidden(ComponentEvent e)
Description copied from interface: ComponentListener
Invoked when the component has been made invisible.

Specified by:
componentHidden in interface ComponentListener

propertyChange

public void propertyChange(java.beans.PropertyChangeEvent evt)
Specified by:
propertyChange in interface java.beans.PropertyChangeListener