public class AWTEventMulticaster extends java.lang.Object implements java.awt.event.ComponentListener, java.awt.event.ContainerListener, java.awt.event.FocusListener, java.awt.event.KeyListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.awt.event.WindowListener, java.awt.event.WindowFocusListener, java.awt.event.WindowStateListener, java.awt.event.ActionListener, java.awt.event.ItemListener, java.awt.event.AdjustmentListener, java.awt.event.TextListener, java.awt.event.InputMethodListener, java.awt.event.HierarchyListener, java.awt.event.HierarchyBoundsListener, java.awt.event.MouseWheelListener
AdjustmentEvent's. However, this
same approach is useful for all events in the java.awt.event
package, and more if this class is subclassed.
AdjustmentListener al;
public void addAdjustmentListener(AdjustmentListener listener)
{
al = AWTEventMulticaster.add(al, listener);
}
public void removeAdjustmentListener(AdjustmentListener listener)
{
al = AWTEventMulticaster.remove(al, listener);
}
When it come time to process an event, simply call al,
assuming it is not null, and all listeners in the chain will
be fired.
The first time add is called it is passed
null and listener as its arguments. This
starts building the chain. This class returns listener
which becomes the new al. The next time, add
is called with al and listener and the
new listener is then chained to the old.
| Modifier and Type | Field and Description |
|---|---|
protected java.util.EventListener |
a
A variable in the event chain.
|
protected java.util.EventListener |
b
A variable in the event chain.
|
| Modifier | Constructor and Description |
|---|---|
protected |
AWTEventMulticaster(java.util.EventListener a,
java.util.EventListener b)
Initializes a new instance of
AWTEventMulticaster with
the specified event listener parameters. |
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
Handles this event by dispatching it to the "a" and "b" listener
instances.
|
static java.awt.event.ActionListener |
add(java.awt.event.ActionListener a,
java.awt.event.ActionListener b)
Chain
ActionListener a and b. |
static java.awt.event.AdjustmentListener |
add(java.awt.event.AdjustmentListener a,
java.awt.event.AdjustmentListener b)
Chain
AdjustmentListener a and b. |
static java.awt.event.ComponentListener |
add(java.awt.event.ComponentListener a,
java.awt.event.ComponentListener b)
Chain
ComponentListener a and b. |
static java.awt.event.ContainerListener |
add(java.awt.event.ContainerListener a,
java.awt.event.ContainerListener b)
Chain
ContainerListener a and b. |
static java.awt.event.FocusListener |
add(java.awt.event.FocusListener a,
java.awt.event.FocusListener b)
Chain
FocusListener a and b. |
static java.awt.event.HierarchyBoundsListener |
add(java.awt.event.HierarchyBoundsListener a,
java.awt.event.HierarchyBoundsListener b)
Chain
HierarchyBoundsListener a and b. |
static java.awt.event.HierarchyListener |
add(java.awt.event.HierarchyListener a,
java.awt.event.HierarchyListener b)
Chain
HierarchyListener a and b. |
static java.awt.event.InputMethodListener |
add(java.awt.event.InputMethodListener a,
java.awt.event.InputMethodListener b)
Chain
InputMethodListener a and b. |
static java.awt.event.ItemListener |
add(java.awt.event.ItemListener a,
java.awt.event.ItemListener b)
Chain
ItemListener a and b. |
static java.awt.event.KeyListener |
add(java.awt.event.KeyListener a,
java.awt.event.KeyListener b)
Chain
KeyListener a and b. |
static java.awt.event.MouseListener |
add(java.awt.event.MouseListener a,
java.awt.event.MouseListener b)
Chain
MouseListener a and b. |
static java.awt.event.MouseMotionListener |
add(java.awt.event.MouseMotionListener a,
java.awt.event.MouseMotionListener b)
Chain
MouseMotionListener a and b. |
static java.awt.event.MouseWheelListener |
add(java.awt.event.MouseWheelListener a,
java.awt.event.MouseWheelListener b)
Chain
MouseWheelListener a and b. |
static java.awt.event.TextListener |
add(java.awt.event.TextListener a,
java.awt.event.TextListener b)
Chain
AdjustmentListener a and b. |
static java.awt.event.WindowFocusListener |
add(java.awt.event.WindowFocusListener a,
java.awt.event.WindowFocusListener b)
Chain
WindowFocusListener a and b. |
static java.awt.event.WindowListener |
add(java.awt.event.WindowListener a,
java.awt.event.WindowListener b)
Chain
WindowListener a and b. |
static java.awt.event.WindowStateListener |
add(java.awt.event.WindowStateListener a,
java.awt.event.WindowStateListener b)
Chain
WindowStateListener a and b. |
protected static java.util.EventListener |
addInternal(java.util.EventListener a,
java.util.EventListener b)
Chain
EventListener a and b. |
void |
adjustmentValueChanged(java.awt.event.AdjustmentEvent e)
Handles this event by dispatching it to the "a" and "b" listener
instances.
|
void |
ancestorMoved(java.awt.event.HierarchyEvent e)
Handles this event by dispatching it to the "a" and "b" listener
instances.
|
void |
ancestorResized(java.awt.event.HierarchyEvent e)
Handles this event by dispatching it to the "a" and "b" listener
instances.
|
void |
caretPositionChanged(java.awt.event.InputMethodEvent e)
Handles this event by dispatching it to the "a" and "b" listener
instances.
|
void |
componentAdded(java.awt.event.ContainerEvent e)
Handles this event by dispatching it to the "a" and "b" listener
instances.
|
void |
componentHidden(java.awt.event.ComponentEvent e)
Handles this event by dispatching it to the "a" and "b" listener
instances.
|
void |
componentMoved(java.awt.event.ComponentEvent e)
Handles this event by dispatching it to the "a" and "b" listener
instances.
|
void |
componentRemoved(java.awt.event.ContainerEvent e)
Handles this event by dispatching it to the "a" and "b" listener
instances.
|
void |
componentResized(java.awt.event.ComponentEvent e)
Handles this event by dispatching it to the "a" and "b" listener
instances.
|
void |
componentShown(java.awt.event.ComponentEvent e)
Handles this event by dispatching it to the "a" and "b" listener
instances.
|
void |
focusGained(java.awt.event.FocusEvent e)
Handles this event by dispatching it to the "a" and "b" listener
instances.
|
void |
focusLost(java.awt.event.FocusEvent e)
Handles this event by dispatching it to the "a" and "b" listener
instances.
|
static <T extends java.util.EventListener> |
getListeners(java.util.EventListener l,
java.lang.Class<T> type)
Returns an array of all chained listeners of the specified type in the
given chain.
|
void |
hierarchyChanged(java.awt.event.HierarchyEvent e)
Handles this event by dispatching it to the "a" and "b" listener
instances.
|
void |
inputMethodTextChanged(java.awt.event.InputMethodEvent e)
Handles this event by dispatching it to the "a" and "b" listener
instances.
|
void |
itemStateChanged(java.awt.event.ItemEvent e)
Handles this event by dispatching it to the "a" and "b" listener
instances.
|
void |
keyPressed(java.awt.event.KeyEvent e)
Handles this event by dispatching it to the "a" and "b" listener
instances.
|
void |
keyReleased(java.awt.event.KeyEvent e)
Handles this event by dispatching it to the "a" and "b" listener
instances.
|
void |
keyTyped(java.awt.event.KeyEvent e)
Handles this event by dispatching it to the "a" and "b" listener
instances.
|
void |
mouseClicked(java.awt.event.MouseEvent e)
Handles this event by dispatching it to the "a" and "b" listener
instances.
|
void |
mouseDragged(java.awt.event.MouseEvent e)
Handles this event by dispatching it to the "a" and "b" listener
instances.
|
void |
mouseEntered(java.awt.event.MouseEvent e)
Handles this event by dispatching it to the "a" and "b" listener
instances.
|
void |
mouseExited(java.awt.event.MouseEvent e)
Handles this event by dispatching it to the "a" and "b" listener
instances.
|
void |
mouseMoved(java.awt.event.MouseEvent e)
Handles this event by dispatching it to the "a" and "b" listener
instances.
|
void |
mousePressed(java.awt.event.MouseEvent e)
Handles this event by dispatching it to the "a" and "b" listener
instances.
|
void |
mouseReleased(java.awt.event.MouseEvent e)
Handles this event by dispatching it to the "a" and "b" listener
instances.
|
void |
mouseWheelMoved(java.awt.event.MouseWheelEvent e)
Handles this event by dispatching it to the "a" and "b" listener
instances.
|
static java.awt.event.ActionListener |
remove(java.awt.event.ActionListener l,
java.awt.event.ActionListener oldl)
Removes the listener
oldl from the listener l. |
static java.awt.event.AdjustmentListener |
remove(java.awt.event.AdjustmentListener l,
java.awt.event.AdjustmentListener oldl)
Removes the listener
oldl from the listener l. |
static java.awt.event.ComponentListener |
remove(java.awt.event.ComponentListener l,
java.awt.event.ComponentListener oldl)
Removes the listener
oldl from the listener l. |
static java.awt.event.ContainerListener |
remove(java.awt.event.ContainerListener l,
java.awt.event.ContainerListener oldl)
Removes the listener
oldl from the listener l. |
protected java.util.EventListener |
remove(java.util.EventListener oldl)
Removes one instance of the specified listener from this multicaster
chain.
|
static java.awt.event.FocusListener |
remove(java.awt.event.FocusListener l,
java.awt.event.FocusListener oldl)
Removes the listener
oldl from the listener l. |
static java.awt.event.HierarchyBoundsListener |
remove(java.awt.event.HierarchyBoundsListener l,
java.awt.event.HierarchyBoundsListener oldl)
Removes the listener
oldl from the listener l. |
static java.awt.event.HierarchyListener |
remove(java.awt.event.HierarchyListener l,
java.awt.event.HierarchyListener oldl)
Removes the listener
oldl from the listener l. |
static java.awt.event.InputMethodListener |
remove(java.awt.event.InputMethodListener l,
java.awt.event.InputMethodListener oldl)
Removes the listener
oldl from the listener l. |
static java.awt.event.ItemListener |
remove(java.awt.event.ItemListener l,
java.awt.event.ItemListener oldl)
Removes the listener
oldl from the listener l. |
static java.awt.event.KeyListener |
remove(java.awt.event.KeyListener l,
java.awt.event.KeyListener oldl)
Removes the listener
oldl from the listener l. |
static java.awt.event.MouseListener |
remove(java.awt.event.MouseListener l,
java.awt.event.MouseListener oldl)
Removes the listener
oldl from the listener l. |
static java.awt.event.MouseMotionListener |
remove(java.awt.event.MouseMotionListener l,
java.awt.event.MouseMotionListener oldl)
Removes the listener
oldl from the listener l. |
static java.awt.event.MouseWheelListener |
remove(java.awt.event.MouseWheelListener l,
java.awt.event.MouseWheelListener oldl)
Removes the listener
oldl from the listener l. |
static java.awt.event.TextListener |
remove(java.awt.event.TextListener l,
java.awt.event.TextListener oldl)
Removes the listener
oldl from the listener l. |
static java.awt.event.WindowFocusListener |
remove(java.awt.event.WindowFocusListener l,
java.awt.event.WindowFocusListener oldl)
Removes the listener
oldl from the listener l. |
static java.awt.event.WindowListener |
remove(java.awt.event.WindowListener l,
java.awt.event.WindowListener oldl)
Removes the listener
oldl from the listener l. |
static java.awt.event.WindowStateListener |
remove(java.awt.event.WindowStateListener l,
java.awt.event.WindowStateListener oldl)
Removes the listener
oldl from the listener l. |
protected static java.util.EventListener |
removeInternal(java.util.EventListener l,
java.util.EventListener oldl)
Removes the listener
oldl from the listener l. |
protected static void |
save(java.io.ObjectOutputStream s,
java.lang.String k,
java.util.EventListener l)
Saves a Serializable listener chain to a serialization stream.
|
protected void |
saveInternal(java.io.ObjectOutputStream s,
java.lang.String k)
Saves all Serializable listeners to a serialization stream.
|
void |
textValueChanged(java.awt.event.TextEvent e)
Handles this event by dispatching it to the "a" and "b" listener
instances.
|
void |
windowActivated(java.awt.event.WindowEvent e)
Handles this event by dispatching it to the "a" and "b" listener
instances.
|
void |
windowClosed(java.awt.event.WindowEvent e)
Handles this event by dispatching it to the "a" and "b" listener
instances.
|
void |
windowClosing(java.awt.event.WindowEvent e)
Handles this event by dispatching it to the "a" and "b" listener
instances.
|
void |
windowDeactivated(java.awt.event.WindowEvent e)
Handles this event by dispatching it to the "a" and "b" listener
instances.
|
void |
windowDeiconified(java.awt.event.WindowEvent e)
Handles this event by dispatching it to the "a" and "b" listener
instances.
|
void |
windowGainedFocus(java.awt.event.WindowEvent e)
Handles this event by dispatching it to the "a" and "b" listener
instances.
|
void |
windowIconified(java.awt.event.WindowEvent e)
Handles this event by dispatching it to the "a" and "b" listener
instances.
|
void |
windowLostFocus(java.awt.event.WindowEvent e)
Handles this event by dispatching it to the "a" and "b" listener
instances.
|
void |
windowOpened(java.awt.event.WindowEvent e)
Handles this event by dispatching it to the "a" and "b" listener
instances.
|
void |
windowStateChanged(java.awt.event.WindowEvent e)
Handles this event by dispatching it to the "a" and "b" listener
instances.
|
protected final java.util.EventListener a
protected final java.util.EventListener b
protected AWTEventMulticaster(java.util.EventListener a, java.util.EventListener b)
AWTEventMulticaster with
the specified event listener parameters. The parameters should not be
null, although it is not required to enforce this with a
NullPointerException.a - the "a" listener objectb - the "b" listener objectprotected java.util.EventListener remove(java.util.EventListener oldl)
oldl - the object to remove from this multicasterpublic void componentResized(java.awt.event.ComponentEvent e)
componentResized in interface java.awt.event.ComponentListenere - the event to handlepublic void componentMoved(java.awt.event.ComponentEvent e)
componentMoved in interface java.awt.event.ComponentListenere - the event to handlepublic void componentShown(java.awt.event.ComponentEvent e)
componentShown in interface java.awt.event.ComponentListenere - the event to handlepublic void componentHidden(java.awt.event.ComponentEvent e)
componentHidden in interface java.awt.event.ComponentListenere - the event to handlepublic void componentAdded(java.awt.event.ContainerEvent e)
componentAdded in interface java.awt.event.ContainerListenere - the event to handlepublic void componentRemoved(java.awt.event.ContainerEvent e)
componentRemoved in interface java.awt.event.ContainerListenere - the event to handlepublic void focusGained(java.awt.event.FocusEvent e)
focusGained in interface java.awt.event.FocusListenere - the event to handlepublic void focusLost(java.awt.event.FocusEvent e)
focusLost in interface java.awt.event.FocusListenere - the event to handlepublic void keyTyped(java.awt.event.KeyEvent e)
keyTyped in interface java.awt.event.KeyListenere - the event to handlepublic void keyPressed(java.awt.event.KeyEvent e)
keyPressed in interface java.awt.event.KeyListenere - the event to handlepublic void keyReleased(java.awt.event.KeyEvent e)
keyReleased in interface java.awt.event.KeyListenere - the event to handlepublic void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked in interface java.awt.event.MouseListenere - the event to handlepublic void mousePressed(java.awt.event.MouseEvent e)
mousePressed in interface java.awt.event.MouseListenere - the event to handlepublic void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased in interface java.awt.event.MouseListenere - the event to handlepublic void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered in interface java.awt.event.MouseListenere - the event to handlepublic void mouseExited(java.awt.event.MouseEvent e)
mouseExited in interface java.awt.event.MouseListenere - the event to handlepublic void mouseDragged(java.awt.event.MouseEvent e)
mouseDragged in interface java.awt.event.MouseMotionListenere - the event to handlepublic void mouseMoved(java.awt.event.MouseEvent e)
mouseMoved in interface java.awt.event.MouseMotionListenere - the event to handlepublic void windowOpened(java.awt.event.WindowEvent e)
windowOpened in interface java.awt.event.WindowListenere - the event to handlepublic void windowClosing(java.awt.event.WindowEvent e)
windowClosing in interface java.awt.event.WindowListenere - the event to handlepublic void windowClosed(java.awt.event.WindowEvent e)
windowClosed in interface java.awt.event.WindowListenere - the event to handlepublic void windowIconified(java.awt.event.WindowEvent e)
windowIconified in interface java.awt.event.WindowListenere - the event to handleFrame.setIconImage(Image)public void windowDeiconified(java.awt.event.WindowEvent e)
windowDeiconified in interface java.awt.event.WindowListenere - the event to handlepublic void windowActivated(java.awt.event.WindowEvent e)
windowActivated in interface java.awt.event.WindowListenere - the event to handlepublic void windowDeactivated(java.awt.event.WindowEvent e)
windowDeactivated in interface java.awt.event.WindowListenere - the event to handlepublic void windowStateChanged(java.awt.event.WindowEvent e)
windowStateChanged in interface java.awt.event.WindowStateListenere - the event to handlepublic void windowGainedFocus(java.awt.event.WindowEvent e)
windowGainedFocus in interface java.awt.event.WindowFocusListenere - the event to handlepublic void windowLostFocus(java.awt.event.WindowEvent e)
windowLostFocus in interface java.awt.event.WindowFocusListenere - the event to handlepublic void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed in interface java.awt.event.ActionListenere - the event to handlepublic void itemStateChanged(java.awt.event.ItemEvent e)
itemStateChanged in interface java.awt.event.ItemListenere - the event to handlepublic void adjustmentValueChanged(java.awt.event.AdjustmentEvent e)
adjustmentValueChanged in interface java.awt.event.AdjustmentListenere - the event to handlepublic void textValueChanged(java.awt.event.TextEvent e)
textValueChanged in interface java.awt.event.TextListenere - the event to handlepublic void inputMethodTextChanged(java.awt.event.InputMethodEvent e)
inputMethodTextChanged in interface java.awt.event.InputMethodListenere - the event to handlepublic void caretPositionChanged(java.awt.event.InputMethodEvent e)
caretPositionChanged in interface java.awt.event.InputMethodListenere - the event to handlepublic void hierarchyChanged(java.awt.event.HierarchyEvent e)
hierarchyChanged in interface java.awt.event.HierarchyListenere - the event to handlepublic void ancestorMoved(java.awt.event.HierarchyEvent e)
ancestorMoved in interface java.awt.event.HierarchyBoundsListenere - the event to handlepublic void ancestorResized(java.awt.event.HierarchyEvent e)
ancestorResized in interface java.awt.event.HierarchyBoundsListenere - the event to handlepublic void mouseWheelMoved(java.awt.event.MouseWheelEvent e)
mouseWheelMoved in interface java.awt.event.MouseWheelListenere - the event to handlepublic static java.awt.event.ComponentListener add(java.awt.event.ComponentListener a, java.awt.event.ComponentListener b)
ComponentListener a and b.a - the "a" listener, may be nullb - the "b" listener, may be nullpublic static java.awt.event.ContainerListener add(java.awt.event.ContainerListener a, java.awt.event.ContainerListener b)
ContainerListener a and b.a - the "a" listener, may be nullb - the "b" listener, may be nullpublic static java.awt.event.FocusListener add(java.awt.event.FocusListener a, java.awt.event.FocusListener b)
FocusListener a and b.a - the "a" listener, may be nullb - the "b" listener, may be nullpublic static java.awt.event.KeyListener add(java.awt.event.KeyListener a, java.awt.event.KeyListener b)
KeyListener a and b.a - the "a" listener, may be nullb - the "b" listener, may be nullpublic static java.awt.event.MouseListener add(java.awt.event.MouseListener a, java.awt.event.MouseListener b)
MouseListener a and b.a - the "a" listener, may be nullb - the "b" listener, may be nullpublic static java.awt.event.MouseMotionListener add(java.awt.event.MouseMotionListener a, java.awt.event.MouseMotionListener b)
MouseMotionListener a and b.a - the "a" listener, may be nullb - the "b" listener, may be nullpublic static java.awt.event.WindowListener add(java.awt.event.WindowListener a, java.awt.event.WindowListener b)
WindowListener a and b.a - the "a" listener, may be nullb - the "b" listener, may be nullpublic static java.awt.event.WindowStateListener add(java.awt.event.WindowStateListener a, java.awt.event.WindowStateListener b)
WindowStateListener a and b.a - the "a" listener, may be nullb - the "b" listener, may be nullpublic static java.awt.event.WindowFocusListener add(java.awt.event.WindowFocusListener a, java.awt.event.WindowFocusListener b)
WindowFocusListener a and b.a - the "a" listener, may be nullb - the "b" listener, may be nullpublic static java.awt.event.ActionListener add(java.awt.event.ActionListener a, java.awt.event.ActionListener b)
ActionListener a and b.a - the "a" listener, may be nullb - the "b" listener, may be nullpublic static java.awt.event.ItemListener add(java.awt.event.ItemListener a, java.awt.event.ItemListener b)
ItemListener a and b.a - the "a" listener, may be nullb - the "b" listener, may be nullpublic static java.awt.event.AdjustmentListener add(java.awt.event.AdjustmentListener a, java.awt.event.AdjustmentListener b)
AdjustmentListener a and b.a - the "a" listener, may be nullb - the "b" listener, may be nullpublic static java.awt.event.TextListener add(java.awt.event.TextListener a, java.awt.event.TextListener b)
AdjustmentListener a and b.a - the "a" listener, may be nullb - the "b" listener, may be nullpublic static java.awt.event.InputMethodListener add(java.awt.event.InputMethodListener a, java.awt.event.InputMethodListener b)
InputMethodListener a and b.a - the "a" listener, may be nullb - the "b" listener, may be nullpublic static java.awt.event.HierarchyListener add(java.awt.event.HierarchyListener a, java.awt.event.HierarchyListener b)
HierarchyListener a and b.a - the "a" listener, may be nullb - the "b" listener, may be nullpublic static java.awt.event.HierarchyBoundsListener add(java.awt.event.HierarchyBoundsListener a, java.awt.event.HierarchyBoundsListener b)
HierarchyBoundsListener a and b.a - the "a" listener, may be nullb - the "b" listener, may be nullpublic static java.awt.event.MouseWheelListener add(java.awt.event.MouseWheelListener a, java.awt.event.MouseWheelListener b)
MouseWheelListener a and b.a - the "a" listener, may be nullb - the "b" listener, may be nullpublic static java.awt.event.ComponentListener remove(java.awt.event.ComponentListener l, java.awt.event.ComponentListener oldl)
oldl from the listener l.l - the listener chain to reduceoldl - the listener to removepublic static java.awt.event.ContainerListener remove(java.awt.event.ContainerListener l, java.awt.event.ContainerListener oldl)
oldl from the listener l.l - the listener chain to reduceoldl - the listener to removepublic static java.awt.event.FocusListener remove(java.awt.event.FocusListener l, java.awt.event.FocusListener oldl)
oldl from the listener l.l - the listener chain to reduceoldl - the listener to removepublic static java.awt.event.KeyListener remove(java.awt.event.KeyListener l, java.awt.event.KeyListener oldl)
oldl from the listener l.l - the listener chain to reduceoldl - the listener to removepublic static java.awt.event.MouseListener remove(java.awt.event.MouseListener l, java.awt.event.MouseListener oldl)
oldl from the listener l.l - the listener chain to reduceoldl - the listener to removepublic static java.awt.event.MouseMotionListener remove(java.awt.event.MouseMotionListener l, java.awt.event.MouseMotionListener oldl)
oldl from the listener l.l - the listener chain to reduceoldl - the listener to removepublic static java.awt.event.WindowListener remove(java.awt.event.WindowListener l, java.awt.event.WindowListener oldl)
oldl from the listener l.l - the listener chain to reduceoldl - the listener to removepublic static java.awt.event.WindowStateListener remove(java.awt.event.WindowStateListener l, java.awt.event.WindowStateListener oldl)
oldl from the listener l.l - the listener chain to reduceoldl - the listener to removepublic static java.awt.event.WindowFocusListener remove(java.awt.event.WindowFocusListener l, java.awt.event.WindowFocusListener oldl)
oldl from the listener l.l - the listener chain to reduceoldl - the listener to removepublic static java.awt.event.ActionListener remove(java.awt.event.ActionListener l, java.awt.event.ActionListener oldl)
oldl from the listener l.l - the listener chain to reduceoldl - the listener to removepublic static java.awt.event.ItemListener remove(java.awt.event.ItemListener l, java.awt.event.ItemListener oldl)
oldl from the listener l.l - the listener chain to reduceoldl - the listener to removepublic static java.awt.event.AdjustmentListener remove(java.awt.event.AdjustmentListener l, java.awt.event.AdjustmentListener oldl)
oldl from the listener l.l - the listener chain to reduceoldl - the listener to removepublic static java.awt.event.TextListener remove(java.awt.event.TextListener l, java.awt.event.TextListener oldl)
oldl from the listener l.l - the listener chain to reduceoldl - the listener to removepublic static java.awt.event.InputMethodListener remove(java.awt.event.InputMethodListener l, java.awt.event.InputMethodListener oldl)
oldl from the listener l.l - the listener chain to reduceoldl - the listener to removepublic static java.awt.event.HierarchyListener remove(java.awt.event.HierarchyListener l, java.awt.event.HierarchyListener oldl)
oldl from the listener l.l - the listener chain to reduceoldl - the listener to removepublic static java.awt.event.HierarchyBoundsListener remove(java.awt.event.HierarchyBoundsListener l, java.awt.event.HierarchyBoundsListener oldl)
oldl from the listener l.l - the listener chain to reduceoldl - the listener to removepublic static java.awt.event.MouseWheelListener remove(java.awt.event.MouseWheelListener l, java.awt.event.MouseWheelListener oldl)
oldl from the listener l.l - the listener chain to reduceoldl - the listener to removeprotected static java.util.EventListener addInternal(java.util.EventListener a, java.util.EventListener b)
EventListener a and b.a - the "a" listener, may be nullb - the "b" listener, may be nullprotected static java.util.EventListener removeInternal(java.util.EventListener l, java.util.EventListener oldl)
oldl from the listener l.l - the listener chain to reduceoldl - the listener to removeprotected void saveInternal(java.io.ObjectOutputStream s, java.lang.String k) throws java.io.IOException
s - the stream to save tok - a prefix stream put before each serializable listenerjava.io.IOException - if serialization failsprotected static void save(java.io.ObjectOutputStream s, java.lang.String k, java.util.EventListener l) throws java.io.IOException
s - the stream to save tok - a prefix stream put before each serializable listenerl - the listener chain to savejava.io.IOException - if serialization failspublic static <T extends java.util.EventListener> T[] getListeners(java.util.EventListener l, java.lang.Class<T> type)
l - the listener chain to convert to an arraytype - the type of listeners to collectjava.lang.ClassCastException - if type is not assignable from EventListenerjava.lang.NullPointerException - if type is nulljava.lang.IllegalArgumentException - if type is Void.TYPE