java.awt

Class AWTEventMulticaster

public class AWTEventMulticaster extends Object implements ComponentListener, ContainerListener, FocusListener, KeyListener, MouseListener, MouseMotionListener, WindowListener, WindowFocusListener, WindowStateListener, ActionListener, ItemListener, AdjustmentListener, TextListener, InputMethodListener, HierarchyListener, HierarchyBoundsListener, MouseWheelListener

This class is used to implement a chain of event handlers. Dispatching using this class is thread safe. Here is a quick example of how to add and delete listeners using this class. For this example, we will assume are firing 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.

Since: 1.1

UNKNOWN: updated to 1.4

Field Summary
protected EventListenera
A variable in the event chain.
protected EventListenerb
A variable in the event chain.
Constructor Summary
protected AWTEventMulticaster(EventListener a, EventListener b)
Initializes a new instance of AWTEventMulticaster with the specified event listener parameters.
Method Summary
voidactionPerformed(ActionEvent e)
Handles this event by dispatching it to the "a" and "b" listener instances.
static ComponentListeneradd(ComponentListener a, ComponentListener b)
Chain ComponentListener a and b.
static ContainerListeneradd(ContainerListener a, ContainerListener b)
Chain ContainerListener a and b.
static FocusListeneradd(FocusListener a, FocusListener b)
Chain FocusListener a and b.
static KeyListeneradd(KeyListener a, KeyListener b)
Chain KeyListener a and b.
static MouseListeneradd(MouseListener a, MouseListener b)
Chain MouseListener a and b.
static MouseMotionListeneradd(MouseMotionListener a, MouseMotionListener b)
Chain MouseMotionListener a and b.
static WindowListeneradd(WindowListener a, WindowListener b)
Chain WindowListener a and b.
static WindowStateListeneradd(WindowStateListener a, WindowStateListener b)
Chain WindowStateListener a and b.
static WindowFocusListeneradd(WindowFocusListener a, WindowFocusListener b)
Chain WindowFocusListener a and b.
static ActionListeneradd(ActionListener a, ActionListener b)
Chain ActionListener a and b.
static ItemListeneradd(ItemListener a, ItemListener b)
Chain ItemListener a and b.
static AdjustmentListeneradd(AdjustmentListener a, AdjustmentListener b)
Chain AdjustmentListener a and b.
static TextListeneradd(TextListener a, TextListener b)
Chain AdjustmentListener a and b.
static InputMethodListeneradd(InputMethodListener a, InputMethodListener b)
Chain InputMethodListener a and b.
static HierarchyListeneradd(HierarchyListener a, HierarchyListener b)
Chain HierarchyListener a and b.
static HierarchyBoundsListeneradd(HierarchyBoundsListener a, HierarchyBoundsListener b)
Chain HierarchyBoundsListener a and b.
static MouseWheelListeneradd(MouseWheelListener a, MouseWheelListener b)
Chain MouseWheelListener a and b.
protected static EventListeneraddInternal(EventListener a, EventListener b)
Chain EventListener a and b.
voidadjustmentValueChanged(AdjustmentEvent e)
Handles this event by dispatching it to the "a" and "b" listener instances.
voidancestorMoved(HierarchyEvent e)
Handles this event by dispatching it to the "a" and "b" listener instances.
voidancestorResized(HierarchyEvent e)
Handles this event by dispatching it to the "a" and "b" listener instances.
voidcaretPositionChanged(InputMethodEvent e)
Handles this event by dispatching it to the "a" and "b" listener instances.
voidcomponentAdded(ContainerEvent e)
Handles this event by dispatching it to the "a" and "b" listener instances.
voidcomponentHidden(ComponentEvent e)
Handles this event by dispatching it to the "a" and "b" listener instances.
voidcomponentMoved(ComponentEvent e)
Handles this event by dispatching it to the "a" and "b" listener instances.
voidcomponentRemoved(ContainerEvent e)
Handles this event by dispatching it to the "a" and "b" listener instances.
voidcomponentResized(ComponentEvent e)
Handles this event by dispatching it to the "a" and "b" listener instances.
voidcomponentShown(ComponentEvent e)
Handles this event by dispatching it to the "a" and "b" listener instances.
voidfocusGained(FocusEvent e)
Handles this event by dispatching it to the "a" and "b" listener instances.
voidfocusLost(FocusEvent e)
Handles this event by dispatching it to the "a" and "b" listener instances.
static <T extends EventListener> T[]getListeners(EventListener l, Class<T> type)
Returns an array of all chained listeners of the specified type in the given chain.
voidhierarchyChanged(HierarchyEvent e)
Handles this event by dispatching it to the "a" and "b" listener instances.
voidinputMethodTextChanged(InputMethodEvent e)
Handles this event by dispatching it to the "a" and "b" listener instances.
voiditemStateChanged(ItemEvent e)
Handles this event by dispatching it to the "a" and "b" listener instances.
voidkeyPressed(KeyEvent e)
Handles this event by dispatching it to the "a" and "b" listener instances.
voidkeyReleased(KeyEvent e)
Handles this event by dispatching it to the "a" and "b" listener instances.
voidkeyTyped(KeyEvent e)
Handles this event by dispatching it to the "a" and "b" listener instances.
voidmouseClicked(MouseEvent e)
Handles this event by dispatching it to the "a" and "b" listener instances.
voidmouseDragged(MouseEvent e)
Handles this event by dispatching it to the "a" and "b" listener instances.
voidmouseEntered(MouseEvent e)
Handles this event by dispatching it to the "a" and "b" listener instances.
voidmouseExited(MouseEvent e)
Handles this event by dispatching it to the "a" and "b" listener instances.
voidmouseMoved(MouseEvent e)
Handles this event by dispatching it to the "a" and "b" listener instances.
voidmousePressed(MouseEvent e)
Handles this event by dispatching it to the "a" and "b" listener instances.
voidmouseReleased(MouseEvent e)
Handles this event by dispatching it to the "a" and "b" listener instances.
voidmouseWheelMoved(MouseWheelEvent e)
Handles this event by dispatching it to the "a" and "b" listener instances.
protected EventListenerremove(EventListener oldl)
Removes one instance of the specified listener from this multicaster chain.
static ComponentListenerremove(ComponentListener l, ComponentListener oldl)
Removes the listener oldl from the listener l.
static ContainerListenerremove(ContainerListener l, ContainerListener oldl)
Removes the listener oldl from the listener l.
static FocusListenerremove(FocusListener l, FocusListener oldl)
Removes the listener oldl from the listener l.
static KeyListenerremove(KeyListener l, KeyListener oldl)
Removes the listener oldl from the listener l.
static MouseListenerremove(MouseListener l, MouseListener oldl)
Removes the listener oldl from the listener l.
static MouseMotionListenerremove(MouseMotionListener l, MouseMotionListener oldl)
Removes the listener oldl from the listener l.
static WindowListenerremove(WindowListener l, WindowListener oldl)
Removes the listener oldl from the listener l.
static WindowStateListenerremove(WindowStateListener l, WindowStateListener oldl)
Removes the listener oldl from the listener l.
static WindowFocusListenerremove(WindowFocusListener l, WindowFocusListener oldl)
Removes the listener oldl from the listener l.
static ActionListenerremove(ActionListener l, ActionListener oldl)
Removes the listener oldl from the listener l.
static ItemListenerremove(ItemListener l, ItemListener oldl)
Removes the listener oldl from the listener l.
static AdjustmentListenerremove(AdjustmentListener l, AdjustmentListener oldl)
Removes the listener oldl from the listener l.
static TextListenerremove(TextListener l, TextListener oldl)
Removes the listener oldl from the listener l.
static InputMethodListenerremove(InputMethodListener l, InputMethodListener oldl)
Removes the listener oldl from the listener l.
static HierarchyListenerremove(HierarchyListener l, HierarchyListener oldl)
Removes the listener oldl from the listener l.
static HierarchyBoundsListenerremove(HierarchyBoundsListener l, HierarchyBoundsListener oldl)
Removes the listener oldl from the listener l.
static MouseWheelListenerremove(MouseWheelListener l, MouseWheelListener oldl)
Removes the listener oldl from the listener l.
protected static EventListenerremoveInternal(EventListener l, EventListener oldl)
Removes the listener oldl from the listener l.
protected static voidsave(ObjectOutputStream s, String k, EventListener l)
Saves a Serializable listener chain to a serialization stream.
protected voidsaveInternal(ObjectOutputStream s, String k)
Saves all Serializable listeners to a serialization stream.
voidtextValueChanged(TextEvent e)
Handles this event by dispatching it to the "a" and "b" listener instances.
voidwindowActivated(WindowEvent e)
Handles this event by dispatching it to the "a" and "b" listener instances.
voidwindowClosed(WindowEvent e)
Handles this event by dispatching it to the "a" and "b" listener instances.
voidwindowClosing(WindowEvent e)
Handles this event by dispatching it to the "a" and "b" listener instances.
voidwindowDeactivated(WindowEvent e)
Handles this event by dispatching it to the "a" and "b" listener instances.
voidwindowDeiconified(WindowEvent e)
Handles this event by dispatching it to the "a" and "b" listener instances.
voidwindowGainedFocus(WindowEvent e)
Handles this event by dispatching it to the "a" and "b" listener instances.
voidwindowIconified(WindowEvent e)
Handles this event by dispatching it to the "a" and "b" listener instances.
voidwindowLostFocus(WindowEvent e)
Handles this event by dispatching it to the "a" and "b" listener instances.
voidwindowOpened(WindowEvent e)
Handles this event by dispatching it to the "a" and "b" listener instances.
voidwindowStateChanged(WindowEvent e)
Handles this event by dispatching it to the "a" and "b" listener instances.

Field Detail

a

protected final EventListener a
A variable in the event chain.

b

protected final EventListener b
A variable in the event chain.

Constructor Detail

AWTEventMulticaster

protected AWTEventMulticaster(EventListener a, EventListener b)
Initializes a new instance of AWTEventMulticaster with the specified event listener parameters. The parameters should not be null, although it is not required to enforce this with a NullPointerException.

Parameters: a the "a" listener object b the "b" listener object

Method Detail

actionPerformed

public void actionPerformed(ActionEvent e)
Handles this event by dispatching it to the "a" and "b" listener instances.

Parameters: e the event to handle

add

public static ComponentListener add(ComponentListener a, ComponentListener b)
Chain ComponentListener a and b.

Parameters: a the "a" listener, may be null b the "b" listener, may be null

Returns: latest entry in the chain

add

public static ContainerListener add(ContainerListener a, ContainerListener b)
Chain ContainerListener a and b.

Parameters: a the "a" listener, may be null b the "b" listener, may be null

Returns: latest entry in the chain

add

public static FocusListener add(FocusListener a, FocusListener b)
Chain FocusListener a and b.

Parameters: a the "a" listener, may be null b the "b" listener, may be null

Returns: latest entry in the chain

add

public static KeyListener add(KeyListener a, KeyListener b)
Chain KeyListener a and b.

Parameters: a the "a" listener, may be null b the "b" listener, may be null

Returns: latest entry in the chain

add

public static MouseListener add(MouseListener a, MouseListener b)
Chain MouseListener a and b.

Parameters: a the "a" listener, may be null b the "b" listener, may be null

Returns: latest entry in the chain

add

public static MouseMotionListener add(MouseMotionListener a, MouseMotionListener b)
Chain MouseMotionListener a and b.

Parameters: a the "a" listener, may be null b the "b" listener, may be null

Returns: latest entry in the chain

add

public static WindowListener add(WindowListener a, WindowListener b)
Chain WindowListener a and b.

Parameters: a the "a" listener, may be null b the "b" listener, may be null

Returns: latest entry in the chain

add

public static WindowStateListener add(WindowStateListener a, WindowStateListener b)
Chain WindowStateListener a and b.

Parameters: a the "a" listener, may be null b the "b" listener, may be null

Returns: latest entry in the chain

Since: 1.4

add

public static WindowFocusListener add(WindowFocusListener a, WindowFocusListener b)
Chain WindowFocusListener a and b.

Parameters: a the "a" listener, may be null b the "b" listener, may be null

Returns: latest entry in the chain

Since: 1.4

add

public static ActionListener add(ActionListener a, ActionListener b)
Chain ActionListener a and b.

Parameters: a the "a" listener, may be null b the "b" listener, may be null

Returns: latest entry in the chain

add

public static ItemListener add(ItemListener a, ItemListener b)
Chain ItemListener a and b.

Parameters: a the "a" listener, may be null b the "b" listener, may be null

Returns: latest entry in the chain

add

public static AdjustmentListener add(AdjustmentListener a, AdjustmentListener b)
Chain AdjustmentListener a and b.

Parameters: a the "a" listener, may be null b the "b" listener, may be null

Returns: latest entry in the chain

add

public static TextListener add(TextListener a, TextListener b)
Chain AdjustmentListener a and b.

Parameters: a the "a" listener, may be null b the "b" listener, may be null

Returns: latest entry in the chain

add

public static InputMethodListener add(InputMethodListener a, InputMethodListener b)
Chain InputMethodListener a and b.

Parameters: a the "a" listener, may be null b the "b" listener, may be null

Returns: latest entry in the chain

Since: 1.2

add

public static HierarchyListener add(HierarchyListener a, HierarchyListener b)
Chain HierarchyListener a and b.

Parameters: a the "a" listener, may be null b the "b" listener, may be null

Returns: latest entry in the chain

Since: 1.3

add

public static HierarchyBoundsListener add(HierarchyBoundsListener a, HierarchyBoundsListener b)
Chain HierarchyBoundsListener a and b.

Parameters: a the "a" listener, may be null b the "b" listener, may be null

Returns: latest entry in the chain

Since: 1.3

add

public static MouseWheelListener add(MouseWheelListener a, MouseWheelListener b)
Chain MouseWheelListener a and b.

Parameters: a the "a" listener, may be null b the "b" listener, may be null

Returns: latest entry in the chain

Since: 1.4

addInternal

protected static EventListener addInternal(EventListener a, EventListener b)
Chain EventListener a and b.

Parameters: a the "a" listener, may be null b the "b" listener, may be null

Returns: latest entry in the chain

adjustmentValueChanged

public void adjustmentValueChanged(AdjustmentEvent e)
Handles this event by dispatching it to the "a" and "b" listener instances.

Parameters: e the event to handle

ancestorMoved

public void ancestorMoved(HierarchyEvent e)
Handles this event by dispatching it to the "a" and "b" listener instances.

Parameters: e the event to handle

Since: 1.3

ancestorResized

public void ancestorResized(HierarchyEvent e)
Handles this event by dispatching it to the "a" and "b" listener instances.

Parameters: e the event to handle

Since: 1.3

caretPositionChanged

public void caretPositionChanged(InputMethodEvent e)
Handles this event by dispatching it to the "a" and "b" listener instances.

Parameters: e the event to handle

Since: 1.2

componentAdded

public void componentAdded(ContainerEvent e)
Handles this event by dispatching it to the "a" and "b" listener instances.

Parameters: e the event to handle

componentHidden

public void componentHidden(ComponentEvent e)
Handles this event by dispatching it to the "a" and "b" listener instances.

Parameters: e the event to handle

componentMoved

public void componentMoved(ComponentEvent e)
Handles this event by dispatching it to the "a" and "b" listener instances.

Parameters: e the event to handle

componentRemoved

public void componentRemoved(ContainerEvent e)
Handles this event by dispatching it to the "a" and "b" listener instances.

Parameters: e the event to handle

componentResized

public void componentResized(ComponentEvent e)
Handles this event by dispatching it to the "a" and "b" listener instances.

Parameters: e the event to handle

componentShown

public void componentShown(ComponentEvent e)
Handles this event by dispatching it to the "a" and "b" listener instances.

Parameters: e the event to handle

focusGained

public void focusGained(FocusEvent e)
Handles this event by dispatching it to the "a" and "b" listener instances.

Parameters: e the event to handle

focusLost

public void focusLost(FocusEvent e)
Handles this event by dispatching it to the "a" and "b" listener instances.

Parameters: e the event to handle

getListeners

public static <T extends EventListener> T[] getListeners(EventListener l, Class<T> type)
Returns an array of all chained listeners of the specified type in the given chain. A null listener returns an empty array, and a listener which is not an AWTEventMulticaster returns an array of one element. If no listeners in the chain are of the specified type, an empty array is returned.

Parameters: l the listener chain to convert to an array type the type of listeners to collect

Returns: an array of the listeners of that type in the chain

Throws: ClassCastException if type is not assignable from EventListener NullPointerException if type is null IllegalArgumentException if type is Void.TYPE

Since: 1.4

hierarchyChanged

public void hierarchyChanged(HierarchyEvent e)
Handles this event by dispatching it to the "a" and "b" listener instances.

Parameters: e the event to handle

Since: 1.3

inputMethodTextChanged

public void inputMethodTextChanged(InputMethodEvent e)
Handles this event by dispatching it to the "a" and "b" listener instances.

Parameters: e the event to handle

Since: 1.2

itemStateChanged

public void itemStateChanged(ItemEvent e)
Handles this event by dispatching it to the "a" and "b" listener instances.

Parameters: e the event to handle

keyPressed

public void keyPressed(KeyEvent e)
Handles this event by dispatching it to the "a" and "b" listener instances.

Parameters: e the event to handle

keyReleased

public void keyReleased(KeyEvent e)
Handles this event by dispatching it to the "a" and "b" listener instances.

Parameters: e the event to handle

keyTyped

public void keyTyped(KeyEvent e)
Handles this event by dispatching it to the "a" and "b" listener instances.

Parameters: e the event to handle

mouseClicked

public void mouseClicked(MouseEvent e)
Handles this event by dispatching it to the "a" and "b" listener instances.

Parameters: e the event to handle

mouseDragged

public void mouseDragged(MouseEvent e)
Handles this event by dispatching it to the "a" and "b" listener instances.

Parameters: e the event to handle

mouseEntered

public void mouseEntered(MouseEvent e)
Handles this event by dispatching it to the "a" and "b" listener instances.

Parameters: e the event to handle

mouseExited

public void mouseExited(MouseEvent e)
Handles this event by dispatching it to the "a" and "b" listener instances.

Parameters: e the event to handle

mouseMoved

public void mouseMoved(MouseEvent e)
Handles this event by dispatching it to the "a" and "b" listener instances.

Parameters: e the event to handle

mousePressed

public void mousePressed(MouseEvent e)
Handles this event by dispatching it to the "a" and "b" listener instances.

Parameters: e the event to handle

mouseReleased

public void mouseReleased(MouseEvent e)
Handles this event by dispatching it to the "a" and "b" listener instances.

Parameters: e the event to handle

mouseWheelMoved

public void mouseWheelMoved(MouseWheelEvent e)
Handles this event by dispatching it to the "a" and "b" listener instances.

Parameters: e the event to handle

Since: 1.4

remove

protected EventListener remove(EventListener oldl)
Removes one instance of the specified listener from this multicaster chain. This descends recursively if either child is a multicaster, and returns a multicaster chain with the old listener removed.

Parameters: oldl the object to remove from this multicaster

Returns: the resulting multicaster with the specified listener removed

remove

public static ComponentListener remove(ComponentListener l, ComponentListener oldl)
Removes the listener oldl from the listener l.

Parameters: l the listener chain to reduce oldl the listener to remove

Returns: the resulting listener chain

remove

public static ContainerListener remove(ContainerListener l, ContainerListener oldl)
Removes the listener oldl from the listener l.

Parameters: l the listener chain to reduce oldl the listener to remove

Returns: the resulting listener chain

remove

public static FocusListener remove(FocusListener l, FocusListener oldl)
Removes the listener oldl from the listener l.

Parameters: l the listener chain to reduce oldl the listener to remove

Returns: the resulting listener chain

remove

public static KeyListener remove(KeyListener l, KeyListener oldl)
Removes the listener oldl from the listener l.

Parameters: l the listener chain to reduce oldl the listener to remove

Returns: the resulting listener chain

remove

public static MouseListener remove(MouseListener l, MouseListener oldl)
Removes the listener oldl from the listener l.

Parameters: l the listener chain to reduce oldl the listener to remove

Returns: the resulting listener chain

remove

public static MouseMotionListener remove(MouseMotionListener l, MouseMotionListener oldl)
Removes the listener oldl from the listener l.

Parameters: l the listener chain to reduce oldl the listener to remove

Returns: the resulting listener chain

remove

public static WindowListener remove(WindowListener l, WindowListener oldl)
Removes the listener oldl from the listener l.

Parameters: l the listener chain to reduce oldl the listener to remove

Returns: the resulting listener chain

remove

public static WindowStateListener remove(WindowStateListener l, WindowStateListener oldl)
Removes the listener oldl from the listener l.

Parameters: l the listener chain to reduce oldl the listener to remove

Returns: the resulting listener chain

Since: 1.4

remove

public static WindowFocusListener remove(WindowFocusListener l, WindowFocusListener oldl)
Removes the listener oldl from the listener l.

Parameters: l the listener chain to reduce oldl the listener to remove

Returns: the resulting listener chain

Since: 1.4

remove

public static ActionListener remove(ActionListener l, ActionListener oldl)
Removes the listener oldl from the listener l.

Parameters: l the listener chain to reduce oldl the listener to remove

Returns: the resulting listener chain

remove

public static ItemListener remove(ItemListener l, ItemListener oldl)
Removes the listener oldl from the listener l.

Parameters: l the listener chain to reduce oldl the listener to remove

Returns: the resulting listener chain

remove

public static AdjustmentListener remove(AdjustmentListener l, AdjustmentListener oldl)
Removes the listener oldl from the listener l.

Parameters: l the listener chain to reduce oldl the listener to remove

Returns: the resulting listener chain

remove

public static TextListener remove(TextListener l, TextListener oldl)
Removes the listener oldl from the listener l.

Parameters: l the listener chain to reduce oldl the listener to remove

Returns: the resulting listener chain

remove

public static InputMethodListener remove(InputMethodListener l, InputMethodListener oldl)
Removes the listener oldl from the listener l.

Parameters: l the listener chain to reduce oldl the listener to remove

Returns: the resulting listener chain

Since: 1.2

remove

public static HierarchyListener remove(HierarchyListener l, HierarchyListener oldl)
Removes the listener oldl from the listener l.

Parameters: l the listener chain to reduce oldl the listener to remove

Returns: the resulting listener chain

Since: 1.3

remove

public static HierarchyBoundsListener remove(HierarchyBoundsListener l, HierarchyBoundsListener oldl)
Removes the listener oldl from the listener l.

Parameters: l the listener chain to reduce oldl the listener to remove

Returns: the resulting listener chain

Since: 1.3

remove

public static MouseWheelListener remove(MouseWheelListener l, MouseWheelListener oldl)
Removes the listener oldl from the listener l.

Parameters: l the listener chain to reduce oldl the listener to remove

Returns: the resulting listener chain

Since: 1.4

removeInternal

protected static EventListener removeInternal(EventListener l, EventListener oldl)
Removes the listener oldl from the listener l.

Parameters: l the listener chain to reduce oldl the listener to remove

Returns: the resulting listener chain

save

protected static void save(ObjectOutputStream s, String k, EventListener l)
Saves a Serializable listener chain to a serialization stream.

Parameters: s the stream to save to k a prefix stream put before each serializable listener l the listener chain to save

Throws: IOException if serialization fails

saveInternal

protected void saveInternal(ObjectOutputStream s, String k)
Saves all Serializable listeners to a serialization stream.

Parameters: s the stream to save to k a prefix stream put before each serializable listener

Throws: IOException if serialization fails

textValueChanged

public void textValueChanged(TextEvent e)
Handles this event by dispatching it to the "a" and "b" listener instances.

Parameters: e the event to handle

windowActivated

public void windowActivated(WindowEvent e)
Handles this event by dispatching it to the "a" and "b" listener instances.

Parameters: e the event to handle

windowClosed

public void windowClosed(WindowEvent e)
Handles this event by dispatching it to the "a" and "b" listener instances.

Parameters: e the event to handle

windowClosing

public void windowClosing(WindowEvent e)
Handles this event by dispatching it to the "a" and "b" listener instances.

Parameters: e the event to handle

windowDeactivated

public void windowDeactivated(WindowEvent e)
Handles this event by dispatching it to the "a" and "b" listener instances.

Parameters: e the event to handle

windowDeiconified

public void windowDeiconified(WindowEvent e)
Handles this event by dispatching it to the "a" and "b" listener instances.

Parameters: e the event to handle

windowGainedFocus

public void windowGainedFocus(WindowEvent e)
Handles this event by dispatching it to the "a" and "b" listener instances.

Parameters: e the event to handle

Since: 1.4

windowIconified

public void windowIconified(WindowEvent e)
Handles this event by dispatching it to the "a" and "b" listener instances.

Parameters: e the event to handle

windowLostFocus

public void windowLostFocus(WindowEvent e)
Handles this event by dispatching it to the "a" and "b" listener instances.

Parameters: e the event to handle

Since: 1.4

windowOpened

public void windowOpened(WindowEvent e)
Handles this event by dispatching it to the "a" and "b" listener instances.

Parameters: e the event to handle

windowStateChanged

public void windowStateChanged(WindowEvent e)
Handles this event by dispatching it to the "a" and "b" listener instances.

Parameters: e the event to handle

Since: 1.4