de.uni_paderborn.fujaba.fsa.listener
Class AncestorNotifier

java.lang.Object
  extended byde.uni_paderborn.fujaba.fsa.listener.AncestorNotifier
All Implemented Interfaces:
java.awt.event.ComponentListener, java.util.EventListener, java.beans.PropertyChangeListener, java.io.Serializable

public class AncestorNotifier
extends java.lang.Object
implements java.awt.event.ComponentListener, java.beans.PropertyChangeListener, java.io.Serializable

Only changes to original Notifier: - ignores visibility of components - endpoint for ancestor listening can be specified

Version:
$Revision: 1.13 $
Author:
$Author: lowende $
See Also:
Serialized Form

Nested Class Summary
private static class AncestorNotifier.ComponentMulticast
          since this is only used internally and we only need the componentMoved events, these are the only ones that are multicasted Copy/Pasted for class cast performance reasons
private static class AncestorNotifier.PropertyChangeMulticast
          No comment provided by developer, please add a comment to improve documentation.
 
Field Summary
private static java.lang.Object COMPONENT_MULTICAST
          No comment provided by developer, please add a comment to improve documentation.
(package private)  java.awt.Container end
          No comment provided by developer, please add a comment to improve documentation.
(package private)  java.awt.Component firstAncestor
          No comment provided by developer, please add a comment to improve documentation.
static java.lang.Object KEY
          No comment provided by developer, please add a comment to improve documentation.
(package private)  javax.swing.event.EventListenerList listenerList
          No comment provided by developer, please add a comment to improve documentation.
private static java.lang.Object PROPERTYCHANGE_MULTICAST
          No comment provided by developer, please add a comment to improve documentation.
(package private)  javax.swing.JComponent root
          No comment provided by developer, please add a comment to improve documentation.
 
Constructor Summary
AncestorNotifier(javax.swing.JComponent root)
          Constructor for class AncestorNotifier
AncestorNotifier(javax.swing.JComponent root, java.awt.Container end)
          Constructor for class AncestorNotifier
 
Method Summary
 void addAncestorListener(javax.swing.event.AncestorListener l)
          Access method for an one to n association.
private  void addComponentListener(javax.swing.JComponent target)
          Access method for an one to n association.
(package private)  void addListeners(java.awt.Component ancestor, boolean addToFirst)
          Access method for an one to n association.
private  void addPropertyChangeListener(javax.swing.JComponent target)
          Access method for an one to n association.
 void componentHidden(java.awt.event.ComponentEvent e)
          No comment provided by developer, please add a comment to improve documentation.
 void componentMoved(java.awt.event.ComponentEvent e)
          No comment provided by developer, please add a comment to improve documentation.
 void componentResized(java.awt.event.ComponentEvent e)
          No comment provided by developer, please add a comment to improve documentation.
 void componentShown(java.awt.event.ComponentEvent e)
          No comment provided by developer, please add a comment to improve documentation.
protected  void fireAncestorAdded(javax.swing.JComponent source, int id, java.awt.Container ancestor, java.awt.Container ancestorParent)
          No comment provided by developer, please add a comment to improve documentation.
protected  void fireAncestorMoved(javax.swing.JComponent source, int id, java.awt.Container ancestor, java.awt.Container ancestorParent)
          No comment provided by developer, please add a comment to improve documentation.
protected  void fireAncestorRemoved(javax.swing.JComponent source, int id, java.awt.Container ancestor, java.awt.Container ancestorParent)
          No comment provided by developer, please add a comment to improve documentation.
 java.awt.Container getEnd()
          Get the end attribute of the AncestorNotifier object
 javax.swing.JComponent getRoot()
          Get the root attribute of the AncestorNotifier object
 void propertyChange(java.beans.PropertyChangeEvent evt)
          No comment provided by developer, please add a comment to improve documentation.
(package private)  void removeAllListeners()
          No comment provided by developer, please add a comment to improve documentation.
 void removeAncestorListener(javax.swing.event.AncestorListener l)
          No comment provided by developer, please add a comment to improve documentation.
private  void removeComponentListener(javax.swing.JComponent target)
          No comment provided by developer, please add a comment to improve documentation.
(package private)  void removeListeners(java.awt.Component ancestor)
          No comment provided by developer, please add a comment to improve documentation.
private  void removePropertyChangeListener(javax.swing.JComponent target)
          No comment provided by developer, please add a comment to improve documentation.
 void removeYou()
          No comment provided by developer, please add a comment to improve documentation.
 void setEnd(java.awt.Container end)
          Sets the end attribute of the AncestorNotifier object
 void setRoot(javax.swing.JComponent root)
          Sets the root attribute of the AncestorNotifier object
 int sizeOfAncestorListeners()
          No comment provided by developer, please add a comment to improve documentation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

KEY

public static final java.lang.Object KEY
No comment provided by developer, please add a comment to improve documentation.


end

java.awt.Container end
No comment provided by developer, please add a comment to improve documentation.


firstAncestor

java.awt.Component firstAncestor
No comment provided by developer, please add a comment to improve documentation.


listenerList

javax.swing.event.EventListenerList listenerList
No comment provided by developer, please add a comment to improve documentation.


root

javax.swing.JComponent root
No comment provided by developer, please add a comment to improve documentation.


PROPERTYCHANGE_MULTICAST

private static final java.lang.Object PROPERTYCHANGE_MULTICAST
No comment provided by developer, please add a comment to improve documentation.


COMPONENT_MULTICAST

private static final java.lang.Object COMPONENT_MULTICAST
No comment provided by developer, please add a comment to improve documentation.

Constructor Detail

AncestorNotifier

public AncestorNotifier(javax.swing.JComponent root)
Constructor for class AncestorNotifier

Parameters:
root - No description provided

AncestorNotifier

public AncestorNotifier(javax.swing.JComponent root,
                        java.awt.Container end)
Constructor for class AncestorNotifier

Parameters:
root - No description provided
end - No description provided
Method Detail

setRoot

public void setRoot(javax.swing.JComponent root)
Sets the root attribute of the AncestorNotifier object

Parameters:
root - The new root value

getRoot

public javax.swing.JComponent getRoot()
Get the root attribute of the AncestorNotifier object

Returns:
The root value

setEnd

public void setEnd(java.awt.Container end)
Sets the end attribute of the AncestorNotifier object

Parameters:
end - The new end value

getEnd

public java.awt.Container getEnd()
Get the end attribute of the AncestorNotifier object

Returns:
The end value

addAncestorListener

public void addAncestorListener(javax.swing.event.AncestorListener l)
Access method for an one to n association.

Parameters:
l - The object added.

removeAncestorListener

public void removeAncestorListener(javax.swing.event.AncestorListener l)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
l - No description provided

sizeOfAncestorListeners

public int sizeOfAncestorListeners()
No comment provided by developer, please add a comment to improve documentation.

Returns:
No description provided

fireAncestorAdded

protected void fireAncestorAdded(javax.swing.JComponent source,
                                 int id,
                                 java.awt.Container ancestor,
                                 java.awt.Container ancestorParent)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
source - No description provided
id - No description provided
ancestor - No description provided
ancestorParent - No description provided

fireAncestorRemoved

protected void fireAncestorRemoved(javax.swing.JComponent source,
                                   int id,
                                   java.awt.Container ancestor,
                                   java.awt.Container ancestorParent)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
source - No description provided
id - No description provided
ancestor - No description provided
ancestorParent - No description provided

fireAncestorMoved

protected void fireAncestorMoved(javax.swing.JComponent source,
                                 int id,
                                 java.awt.Container ancestor,
                                 java.awt.Container ancestorParent)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
source - No description provided
id - No description provided
ancestor - No description provided
ancestorParent - No description provided

removeAllListeners

void removeAllListeners()
No comment provided by developer, please add a comment to improve documentation.


addListeners

void addListeners(java.awt.Component ancestor,
                  boolean addToFirst)
Access method for an one to n association.

Parameters:
ancestor - The object added.
addToFirst - The object added.

removeListeners

void removeListeners(java.awt.Component ancestor)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
ancestor - No description provided

componentShown

public void componentShown(java.awt.event.ComponentEvent e)
No comment provided by developer, please add a comment to improve documentation.

Specified by:
componentShown in interface java.awt.event.ComponentListener
Parameters:
e - No description provided

componentHidden

public void componentHidden(java.awt.event.ComponentEvent e)
No comment provided by developer, please add a comment to improve documentation.

Specified by:
componentHidden in interface java.awt.event.ComponentListener
Parameters:
e - No description provided

componentResized

public void componentResized(java.awt.event.ComponentEvent e)
No comment provided by developer, please add a comment to improve documentation.

Specified by:
componentResized in interface java.awt.event.ComponentListener
Parameters:
e - No description provided

componentMoved

public void componentMoved(java.awt.event.ComponentEvent e)
No comment provided by developer, please add a comment to improve documentation.

Specified by:
componentMoved in interface java.awt.event.ComponentListener
Parameters:
e - No description provided

propertyChange

public void propertyChange(java.beans.PropertyChangeEvent evt)
No comment provided by developer, please add a comment to improve documentation.

Specified by:
propertyChange in interface java.beans.PropertyChangeListener
Parameters:
evt - No description provided

addPropertyChangeListener

private void addPropertyChangeListener(javax.swing.JComponent target)
Access method for an one to n association.

Parameters:
target - The object added.

removePropertyChangeListener

private void removePropertyChangeListener(javax.swing.JComponent target)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
target - No description provided

addComponentListener

private void addComponentListener(javax.swing.JComponent target)
Access method for an one to n association.

Parameters:
target - The object added.

removeComponentListener

private void removeComponentListener(javax.swing.JComponent target)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
target - No description provided

removeYou

public void removeYou()
No comment provided by developer, please add a comment to improve documentation.