Java Doc for AWTEventMulticaster.java in  » 6.0-JDK-Core » AWT » java » awt » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Home
Java Source Code / Java Documentation
1.6.0 JDK Core
2.6.0 JDK Modules
3.6.0 JDK Modules com.sun
4.6.0 JDK Modules com.sun.java
5.6.0 JDK Modules sun
6.6.0 JDK Platform
7.Ajax
8.Apache Harmony Java SE
9.Aspect oriented
10.Authentication Authorization
11.Blogger System
12.Build
13.Byte Code
14.Cache
15.Chart
16.Chat
17.Code Analyzer
18.Collaboration
19.Content Management System
20.Database Client
21.Database DBMS
22.Database JDBC Connection Pool
23.Database ORM
24.Development
25.EJB Server
26.ERP CRM Financial
27.ESB
28.Forum
29.Game
30.GIS
31.Graphic 3D
32.Graphic Library
33.Groupware
34.HTML Parser
35.IDE
36.IDE Eclipse
37.IDE Netbeans
38.Installer
39.Internationalization Localization
40.Inversion of Control
41.Issue Tracking
42.J2EE
43.J2ME
44.JBoss
45.JMS
46.JMX
47.Library
48.Mail Clients
49.Music
50.Net
51.Parser
52.PDF
53.Portal
54.Profiler
55.Project Management
56.Report
57.RSS RDF
58.Rule Engine
59.Science
60.Scripting
61.Search Engine
62.Security
63.Sevlet Container
64.Source Control
65.Swing Library
66.Template Engine
67.Test Coverage
68.Testing
69.UML
70.Web Crawler
71.Web Framework
72.Web Mail
73.Web Server
74.Web Services
75.Web Services apache cxf 2.2.6
76.Web Services AXIS2
77.Wiki Engine
78.Workflow Engines
79.XML
80.XML UI
Java Source Code / Java Documentation » 6.0 JDK Core » AWT » java.awt 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   java.awt.AWTEventMulticaster

All known Subclasses:   java.awt.dnd.DnDEventMulticaster,
AWTEventMulticaster
public class AWTEventMulticaster implements ComponentListener,ContainerListener,FocusListener,KeyListener,MouseListener,MouseMotionListener,WindowListener,WindowFocusListener,WindowStateListener,ActionListener,ItemListener,AdjustmentListener,TextListener,InputMethodListener,HierarchyListener,HierarchyBoundsListener,MouseWheelListener(Code)
AWTEventMulticaster implements efficient and thread-safe multi-cast event dispatching for the AWT events defined in the java.awt.event package.

The following example illustrates how to use this class:


 public myComponent extends Component {
 ActionListener actionListener = null;
 public synchronized void addActionListener(ActionListener l) {
 actionListener = AWTEventMulticaster.add(actionListener, l);
 }
 public synchronized void removeActionListener(ActionListener l) {
 actionListener = AWTEventMulticaster.remove(actionListener, l);
 }
 public void processEvent(AWTEvent e) {
 // when event occurs which causes "action" semantic
 ActionListener listener = actionListener;
 if (listener != null) {
 listener.actionPerformed(new ActionEvent());
 }
 }
 }
 
The important point to note is the first argument to the add and remove methods is the field maintaining the listeners. In addition you must assign the result of the add and remove methods to the field maintaining the listeners.

AWTEventMulticaster is implemented as a pair of EventListeners that are set at construction time. AWTEventMulticaster is immutable. The add and remove methods do not alter AWTEventMulticaster in anyway. If necessary, a new AWTEventMulticaster is created. In this way it is safe to add and remove listeners during the process of an event dispatching. However, event listeners added during the process of an event dispatch operation are not notified of the event currently being dispatched.

All of the add methods allow null arguments. If the first argument is null , the second argument is returned. If the first argument is not null and the second argument is null , the first argument is returned. If both arguments are non-null , a new AWTEventMulticaster is created using the two arguments and returned.

For the remove methods that take two arguments, the following is returned:

  • null , if the first argument is null , or the arguments are equal, by way of == .
  • the first argument, if the first argument is not an instance of AWTEventMulticaster .
  • result of invoking remove(EventListener) on the first argument, supplying the second argument to the remove(EventListener) method.

Swing makes use of javax.swing.event.EventListenerList EventListenerList for similar logic. Refer to it for details.
See Also:   javax.swing.event.EventListenerList
author:
   John Rose
author:
   Amy Fowler
version:
   1.47, 05/05/07
since:
   1.1



Field Summary
final protected  EventListenerab
    

Constructor Summary
protected  AWTEventMulticaster(EventListener a, EventListener b)
     Creates an event multicaster instance which chains listener-a with listener-b.

Method Summary
public  voidactionPerformed(ActionEvent e)
     Handles the actionPerformed event by invoking the actionPerformed methods on listener-a and listener-b.
public static  ComponentListeneradd(ComponentListener a, ComponentListener b)
     Adds component-listener-a with component-listener-b and returns the resulting multicast listener.
public static  ContainerListeneradd(ContainerListener a, ContainerListener b)
     Adds container-listener-a with container-listener-b and returns the resulting multicast listener.
public static  FocusListeneradd(FocusListener a, FocusListener b)
     Adds focus-listener-a with focus-listener-b and returns the resulting multicast listener.
public static  KeyListeneradd(KeyListener a, KeyListener b)
     Adds key-listener-a with key-listener-b and returns the resulting multicast listener.
public static  MouseListeneradd(MouseListener a, MouseListener b)
     Adds mouse-listener-a with mouse-listener-b and returns the resulting multicast listener.
public static  MouseMotionListeneradd(MouseMotionListener a, MouseMotionListener b)
     Adds mouse-motion-listener-a with mouse-motion-listener-b and returns the resulting multicast listener.
public static  WindowListeneradd(WindowListener a, WindowListener b)
     Adds window-listener-a with window-listener-b and returns the resulting multicast listener.
public static  WindowStateListeneradd(WindowStateListener a, WindowStateListener b)
     Adds window-state-listener-a with window-state-listener-b and returns the resulting multicast listener.
public static  WindowFocusListeneradd(WindowFocusListener a, WindowFocusListener b)
     Adds window-focus-listener-a with window-focus-listener-b and returns the resulting multicast listener.
public static  ActionListeneradd(ActionListener a, ActionListener b)
     Adds action-listener-a with action-listener-b and returns the resulting multicast listener.
public static  ItemListeneradd(ItemListener a, ItemListener b)
     Adds item-listener-a with item-listener-b and returns the resulting multicast listener.
public static  AdjustmentListeneradd(AdjustmentListener a, AdjustmentListener b)
     Adds adjustment-listener-a with adjustment-listener-b and returns the resulting multicast listener.
public static  TextListeneradd(TextListener a, TextListener b)
    
public static  InputMethodListeneradd(InputMethodListener a, InputMethodListener b)
     Adds input-method-listener-a with input-method-listener-b and returns the resulting multicast listener.
public static  HierarchyListeneradd(HierarchyListener a, HierarchyListener b)
     Adds hierarchy-listener-a with hierarchy-listener-b and returns the resulting multicast listener.
public static  HierarchyBoundsListeneradd(HierarchyBoundsListener a, HierarchyBoundsListener b)
     Adds hierarchy-bounds-listener-a with hierarchy-bounds-listener-b and returns the resulting multicast listener.
public static  MouseWheelListeneradd(MouseWheelListener a, MouseWheelListener b)
     Adds mouse-wheel-listener-a with mouse-wheel-listener-b and returns the resulting multicast listener.
protected static  EventListeneraddInternal(EventListener a, EventListener b)
     Returns the resulting multicast listener from adding listener-a and listener-b together.
public  voidadjustmentValueChanged(AdjustmentEvent e)
     Handles the adjustmentValueChanged event by invoking the adjustmentValueChanged methods on listener-a and listener-b.
public  voidancestorMoved(HierarchyEvent e)
     Handles the ancestorMoved event by invoking the ancestorMoved methods on listener-a and listener-b.
public  voidancestorResized(HierarchyEvent e)
     Handles the ancestorResized event by invoking the ancestorResized methods on listener-a and listener-b.
public  voidcaretPositionChanged(InputMethodEvent e)
     Handles the caretPositionChanged event by invoking the caretPositionChanged methods on listener-a and listener-b.
public  voidcomponentAdded(ContainerEvent e)
     Handles the componentAdded container event by invoking the componentAdded methods on listener-a and listener-b.
public  voidcomponentHidden(ComponentEvent e)
     Handles the componentHidden event by invoking the componentHidden methods on listener-a and listener-b.
public  voidcomponentMoved(ComponentEvent e)
     Handles the componentMoved event by invoking the componentMoved methods on listener-a and listener-b.
public  voidcomponentRemoved(ContainerEvent e)
     Handles the componentRemoved container event by invoking the componentRemoved methods on listener-a and listener-b.
public  voidcomponentResized(ComponentEvent e)
     Handles the componentResized event by invoking the componentResized methods on listener-a and listener-b.
public  voidcomponentShown(ComponentEvent e)
     Handles the componentShown event by invoking the componentShown methods on listener-a and listener-b.
public  voidfocusGained(FocusEvent e)
     Handles the focusGained event by invoking the focusGained methods on listener-a and listener-b.
public  voidfocusLost(FocusEvent e)
     Handles the focusLost event by invoking the focusLost methods on listener-a and listener-b.
public static  T[]getListeners(EventListener l, Class<T> listenerType)
     Returns an array of all the objects chained as FooListeners by the specified java.util.EventListener. FooListeners are chained by the AWTEventMulticaster using the addFooListener method.
public  voidhierarchyChanged(HierarchyEvent e)
     Handles the hierarchyChanged event by invoking the hierarchyChanged methods on listener-a and listener-b.
public  voidinputMethodTextChanged(InputMethodEvent e)
     Handles the inputMethodTextChanged event by invoking the inputMethodTextChanged methods on listener-a and listener-b.
public  voiditemStateChanged(ItemEvent e)
     Handles the itemStateChanged event by invoking the itemStateChanged methods on listener-a and listener-b.
public  voidkeyPressed(KeyEvent e)
     Handles the keyPressed event by invoking the keyPressed methods on listener-a and listener-b.
public  voidkeyReleased(KeyEvent e)
     Handles the keyReleased event by invoking the keyReleased methods on listener-a and listener-b.
public  voidkeyTyped(KeyEvent e)
     Handles the keyTyped event by invoking the keyTyped methods on listener-a and listener-b.
public  voidmouseClicked(MouseEvent e)
     Handles the mouseClicked event by invoking the mouseClicked methods on listener-a and listener-b.
public  voidmouseDragged(MouseEvent e)
     Handles the mouseDragged event by invoking the mouseDragged methods on listener-a and listener-b.
public  voidmouseEntered(MouseEvent e)
     Handles the mouseEntered event by invoking the mouseEntered methods on listener-a and listener-b.
public  voidmouseExited(MouseEvent e)
     Handles the mouseExited event by invoking the mouseExited methods on listener-a and listener-b.
public  voidmouseMoved(MouseEvent e)
     Handles the mouseMoved event by invoking the mouseMoved methods on listener-a and listener-b.
public  voidmousePressed(MouseEvent e)
     Handles the mousePressed event by invoking the mousePressed methods on listener-a and listener-b.
public  voidmouseReleased(MouseEvent e)
     Handles the mouseReleased event by invoking the mouseReleased methods on listener-a and listener-b.
public  voidmouseWheelMoved(MouseWheelEvent e)
     Handles the mouseWheelMoved event by invoking the mouseWheelMoved methods on listener-a and listener-b.
protected  EventListenerremove(EventListener oldl)
     Removes a listener from this multicaster.

The returned multicaster contains all the listeners in this multicaster with the exception of all occurrences of oldl . If the resulting multicaster contains only one regular listener the regular listener may be returned.

public static  ComponentListenerremove(ComponentListener l, ComponentListener oldl)
     Removes the old component-listener from component-listener-l and returns the resulting multicast listener.
public static  ContainerListenerremove(ContainerListener l, ContainerListener oldl)
     Removes the old container-listener from container-listener-l and returns the resulting multicast listener.
public static  FocusListenerremove(FocusListener l, FocusListener oldl)
     Removes the old focus-listener from focus-listener-l and returns the resulting multicast listener.
public static  KeyListenerremove(KeyListener l, KeyListener oldl)
     Removes the old key-listener from key-listener-l and returns the resulting multicast listener.
public static  MouseListenerremove(MouseListener l, MouseListener oldl)
     Removes the old mouse-listener from mouse-listener-l and returns the resulting multicast listener.
public static  MouseMotionListenerremove(MouseMotionListener l, MouseMotionListener oldl)
     Removes the old mouse-motion-listener from mouse-motion-listener-l and returns the resulting multicast listener.
public static  WindowListenerremove(WindowListener l, WindowListener oldl)
     Removes the old window-listener from window-listener-l and returns the resulting multicast listener.
public static  WindowStateListenerremove(WindowStateListener l, WindowStateListener oldl)
     Removes the old window-state-listener from window-state-listener-l and returns the resulting multicast listener.
public static  WindowFocusListenerremove(WindowFocusListener l, WindowFocusListener oldl)
     Removes the old window-focus-listener from window-focus-listener-l and returns the resulting multicast listener.
public static  ActionListenerremove(ActionListener l, ActionListener oldl)
     Removes the old action-listener from action-listener-l and returns the resulting multicast listener.
public static  ItemListenerremove(ItemListener l, ItemListener oldl)
     Removes the old item-listener from item-listener-l and returns the resulting multicast listener.
public static  AdjustmentListenerremove(AdjustmentListener l, AdjustmentListener oldl)
     Removes the old adjustment-listener from adjustment-listener-l and returns the resulting multicast listener.
public static  TextListenerremove(TextListener l, TextListener oldl)
    
public static  InputMethodListenerremove(InputMethodListener l, InputMethodListener oldl)
     Removes the old input-method-listener from input-method-listener-l and returns the resulting multicast listener.
public static  HierarchyListenerremove(HierarchyListener l, HierarchyListener oldl)
     Removes the old hierarchy-listener from hierarchy-listener-l and returns the resulting multicast listener.
public static  HierarchyBoundsListenerremove(HierarchyBoundsListener l, HierarchyBoundsListener oldl)
     Removes the old hierarchy-bounds-listener from hierarchy-bounds-listener-l and returns the resulting multicast listener.
public static  MouseWheelListenerremove(MouseWheelListener l, MouseWheelListener oldl)
     Removes the old mouse-wheel-listener from mouse-wheel-listener-l and returns the resulting multicast listener.
protected static  EventListenerremoveInternal(EventListener l, EventListener oldl)
     Returns the resulting multicast listener after removing the old listener from listener-l.
protected static  voidsave(ObjectOutputStream s, String k, EventListener l)
    
protected  voidsaveInternal(ObjectOutputStream s, String k)
    
public  voidtextValueChanged(TextEvent e)
    
public  voidwindowActivated(WindowEvent e)
     Handles the windowActivated event by invoking the windowActivated methods on listener-a and listener-b.
public  voidwindowClosed(WindowEvent e)
     Handles the windowClosed event by invoking the windowClosed methods on listener-a and listener-b.
public  voidwindowClosing(WindowEvent e)
     Handles the windowClosing event by invoking the windowClosing methods on listener-a and listener-b.
public  voidwindowDeactivated(WindowEvent e)
     Handles the windowDeactivated event by invoking the windowDeactivated methods on listener-a and listener-b.
public  voidwindowDeiconified(WindowEvent e)
     Handles the windowDeiconfied event by invoking the windowDeiconified methods on listener-a and listener-b.
public  voidwindowGainedFocus(WindowEvent e)
     Handles the windowGainedFocus event by invoking the windowGainedFocus methods on listener-a and listener-b.
public  voidwindowIconified(WindowEvent e)
     Handles the windowIconified event by invoking the windowIconified methods on listener-a and listener-b.
public  voidwindowLostFocus(WindowEvent e)
     Handles the windowLostFocus event by invoking the windowLostFocus methods on listener-a and listener-b.
public  voidwindowOpened(WindowEvent e)
     Handles the windowOpened event by invoking the windowOpened methods on listener-a and listener-b.
public  voidwindowStateChanged(WindowEvent e)
     Handles the windowStateChanged event by invoking the windowStateChanged methods on listener-a and listener-b.

Field Detail
ab
final protected EventListener ab(Code)




Constructor Detail
AWTEventMulticaster
protected AWTEventMulticaster(EventListener a, EventListener b)(Code)
Creates an event multicaster instance which chains listener-a with listener-b. Input parameters a and b should not be null, though implementations may vary in choosing whether or not to throw NullPointerException in that case.
Parameters:
  a - listener-a
Parameters:
  b - listener-b




Method Detail
actionPerformed
public void actionPerformed(ActionEvent e)(Code)
Handles the actionPerformed event by invoking the actionPerformed methods on listener-a and listener-b.
Parameters:
  e - the action event



add
public static ComponentListener add(ComponentListener a, ComponentListener b)(Code)
Adds component-listener-a with component-listener-b and returns the resulting multicast listener.
Parameters:
  a - component-listener-a
Parameters:
  b - component-listener-b



add
public static ContainerListener add(ContainerListener a, ContainerListener b)(Code)
Adds container-listener-a with container-listener-b and returns the resulting multicast listener.
Parameters:
  a - container-listener-a
Parameters:
  b - container-listener-b



add
public static FocusListener add(FocusListener a, FocusListener b)(Code)
Adds focus-listener-a with focus-listener-b and returns the resulting multicast listener.
Parameters:
  a - focus-listener-a
Parameters:
  b - focus-listener-b



add
public static KeyListener add(KeyListener a, KeyListener b)(Code)
Adds key-listener-a with key-listener-b and returns the resulting multicast listener.
Parameters:
  a - key-listener-a
Parameters:
  b - key-listener-b



add
public static MouseListener add(MouseListener a, MouseListener b)(Code)
Adds mouse-listener-a with mouse-listener-b and returns the resulting multicast listener.
Parameters:
  a - mouse-listener-a
Parameters:
  b - mouse-listener-b



add
public static MouseMotionListener add(MouseMotionListener a, MouseMotionListener b)(Code)
Adds mouse-motion-listener-a with mouse-motion-listener-b and returns the resulting multicast listener.
Parameters:
  a - mouse-motion-listener-a
Parameters:
  b - mouse-motion-listener-b



add
public static WindowListener add(WindowListener a, WindowListener b)(Code)
Adds window-listener-a with window-listener-b and returns the resulting multicast listener.
Parameters:
  a - window-listener-a
Parameters:
  b - window-listener-b



add
public static WindowStateListener add(WindowStateListener a, WindowStateListener b)(Code)
Adds window-state-listener-a with window-state-listener-b and returns the resulting multicast listener.
Parameters:
  a - window-state-listener-a
Parameters:
  b - window-state-listener-b
since:
   1.4



add
public static WindowFocusListener add(WindowFocusListener a, WindowFocusListener b)(Code)
Adds window-focus-listener-a with window-focus-listener-b and returns the resulting multicast listener.
Parameters:
  a - window-focus-listener-a
Parameters:
  b - window-focus-listener-b
since:
   1.4



add
public static ActionListener add(ActionListener a, ActionListener b)(Code)
Adds action-listener-a with action-listener-b and returns the resulting multicast listener.
Parameters:
  a - action-listener-a
Parameters:
  b - action-listener-b



add
public static ItemListener add(ItemListener a, ItemListener b)(Code)
Adds item-listener-a with item-listener-b and returns the resulting multicast listener.
Parameters:
  a - item-listener-a
Parameters:
  b - item-listener-b



add
public static AdjustmentListener add(AdjustmentListener a, AdjustmentListener b)(Code)
Adds adjustment-listener-a with adjustment-listener-b and returns the resulting multicast listener.
Parameters:
  a - adjustment-listener-a
Parameters:
  b - adjustment-listener-b



add
public static TextListener add(TextListener a, TextListener b)(Code)



add
public static InputMethodListener add(InputMethodListener a, InputMethodListener b)(Code)
Adds input-method-listener-a with input-method-listener-b and returns the resulting multicast listener.
Parameters:
  a - input-method-listener-a
Parameters:
  b - input-method-listener-b



add
public static HierarchyListener add(HierarchyListener a, HierarchyListener b)(Code)
Adds hierarchy-listener-a with hierarchy-listener-b and returns the resulting multicast listener.
Parameters:
  a - hierarchy-listener-a
Parameters:
  b - hierarchy-listener-b
since:
   1.3



add
public static HierarchyBoundsListener add(HierarchyBoundsListener a, HierarchyBoundsListener b)(Code)
Adds hierarchy-bounds-listener-a with hierarchy-bounds-listener-b and returns the resulting multicast listener.
Parameters:
  a - hierarchy-bounds-listener-a
Parameters:
  b - hierarchy-bounds-listener-b
since:
   1.3



add
public static MouseWheelListener add(MouseWheelListener a, MouseWheelListener b)(Code)
Adds mouse-wheel-listener-a with mouse-wheel-listener-b and returns the resulting multicast listener.
Parameters:
  a - mouse-wheel-listener-a
Parameters:
  b - mouse-wheel-listener-b
since:
   1.4



addInternal
protected static EventListener addInternal(EventListener a, EventListener b)(Code)
Returns the resulting multicast listener from adding listener-a and listener-b together. If listener-a is null, it returns listener-b; If listener-b is null, it returns listener-a If neither are null, then it creates and returns a new AWTEventMulticaster instance which chains a with b.
Parameters:
  a - event listener-a
Parameters:
  b - event listener-b



adjustmentValueChanged
public void adjustmentValueChanged(AdjustmentEvent e)(Code)
Handles the adjustmentValueChanged event by invoking the adjustmentValueChanged methods on listener-a and listener-b.
Parameters:
  e - the adjustment event



ancestorMoved
public void ancestorMoved(HierarchyEvent e)(Code)
Handles the ancestorMoved event by invoking the ancestorMoved methods on listener-a and listener-b.
Parameters:
  e - the item event
since:
   1.3



ancestorResized
public void ancestorResized(HierarchyEvent e)(Code)
Handles the ancestorResized event by invoking the ancestorResized methods on listener-a and listener-b.
Parameters:
  e - the item event
since:
   1.3



caretPositionChanged
public void caretPositionChanged(InputMethodEvent e)(Code)
Handles the caretPositionChanged event by invoking the caretPositionChanged methods on listener-a and listener-b.
Parameters:
  e - the item event



componentAdded
public void componentAdded(ContainerEvent e)(Code)
Handles the componentAdded container event by invoking the componentAdded methods on listener-a and listener-b.
Parameters:
  e - the component event



componentHidden
public void componentHidden(ComponentEvent e)(Code)
Handles the componentHidden event by invoking the componentHidden methods on listener-a and listener-b.
Parameters:
  e - the component event



componentMoved
public void componentMoved(ComponentEvent e)(Code)
Handles the componentMoved event by invoking the componentMoved methods on listener-a and listener-b.
Parameters:
  e - the component event



componentRemoved
public void componentRemoved(ContainerEvent e)(Code)
Handles the componentRemoved container event by invoking the componentRemoved methods on listener-a and listener-b.
Parameters:
  e - the component event



componentResized
public void componentResized(ComponentEvent e)(Code)
Handles the componentResized event by invoking the componentResized methods on listener-a and listener-b.
Parameters:
  e - the component event



componentShown
public void componentShown(ComponentEvent e)(Code)
Handles the componentShown event by invoking the componentShown methods on listener-a and listener-b.
Parameters:
  e - the component event



focusGained
public void focusGained(FocusEvent e)(Code)
Handles the focusGained event by invoking the focusGained methods on listener-a and listener-b.
Parameters:
  e - the focus event



focusLost
public void focusLost(FocusEvent e)(Code)
Handles the focusLost event by invoking the focusLost methods on listener-a and listener-b.
Parameters:
  e - the focus event



getListeners
public static T[] getListeners(EventListener l, Class<T> listenerType)(Code)
Returns an array of all the objects chained as FooListeners by the specified java.util.EventListener. FooListeners are chained by the AWTEventMulticaster using the addFooListener method. If a null listener is specified, this method returns an empty array. If the specified listener is not an instance of AWTEventMulticaster, this method returns an array which contains only the specified listener. If no such listeners are chanined, this method returns an empty array.
Parameters:
  l - the specified java.util.EventListener
Parameters:
  listenerType - the type of listeners requested; this parametershould specify an interface that descends fromjava.util.EventListener an array of all objects chained asFooListeners by the specified multicastlistener, or an empty array if no such listeners have beenchained by the specified multicast listener
exception:
  NullPointerException - if the specified listenertype parameter is null
exception:
  ClassCastException - if listenerTypedoesn't specify a class or interface that implementsjava.util.EventListener
since:
   1.4



hierarchyChanged
public void hierarchyChanged(HierarchyEvent e)(Code)
Handles the hierarchyChanged event by invoking the hierarchyChanged methods on listener-a and listener-b.
Parameters:
  e - the item event
since:
   1.3



inputMethodTextChanged
public void inputMethodTextChanged(InputMethodEvent e)(Code)
Handles the inputMethodTextChanged event by invoking the inputMethodTextChanged methods on listener-a and listener-b.
Parameters:
  e - the item event



itemStateChanged
public void itemStateChanged(ItemEvent e)(Code)
Handles the itemStateChanged event by invoking the itemStateChanged methods on listener-a and listener-b.
Parameters:
  e - the item event



keyPressed
public void keyPressed(KeyEvent e)(Code)
Handles the keyPressed event by invoking the keyPressed methods on listener-a and listener-b.
Parameters:
  e - the key event



keyReleased
public void keyReleased(KeyEvent e)(Code)
Handles the keyReleased event by invoking the keyReleased methods on listener-a and listener-b.
Parameters:
  e - the key event



keyTyped
public void keyTyped(KeyEvent e)(Code)
Handles the keyTyped event by invoking the keyTyped methods on listener-a and listener-b.
Parameters:
  e - the key event



mouseClicked
public void mouseClicked(MouseEvent e)(Code)
Handles the mouseClicked event by invoking the mouseClicked methods on listener-a and listener-b.
Parameters:
  e - the mouse event



mouseDragged
public void mouseDragged(MouseEvent e)(Code)
Handles the mouseDragged event by invoking the mouseDragged methods on listener-a and listener-b.
Parameters:
  e - the mouse event



mouseEntered
public void mouseEntered(MouseEvent e)(Code)
Handles the mouseEntered event by invoking the mouseEntered methods on listener-a and listener-b.
Parameters:
  e - the mouse event



mouseExited
public void mouseExited(MouseEvent e)(Code)
Handles the mouseExited event by invoking the mouseExited methods on listener-a and listener-b.
Parameters:
  e - the mouse event



mouseMoved
public void mouseMoved(MouseEvent e)(Code)
Handles the mouseMoved event by invoking the mouseMoved methods on listener-a and listener-b.
Parameters:
  e - the mouse event



mousePressed
public void mousePressed(MouseEvent e)(Code)
Handles the mousePressed event by invoking the mousePressed methods on listener-a and listener-b.
Parameters:
  e - the mouse event



mouseReleased
public void mouseReleased(MouseEvent e)(Code)
Handles the mouseReleased event by invoking the mouseReleased methods on listener-a and listener-b.
Parameters:
  e - the mouse event



mouseWheelMoved
public void mouseWheelMoved(MouseWheelEvent e)(Code)
Handles the mouseWheelMoved event by invoking the mouseWheelMoved methods on listener-a and listener-b.
Parameters:
  e - the mouse event
since:
   1.4



remove
protected EventListener remove(EventListener oldl)(Code)
Removes a listener from this multicaster.

The returned multicaster contains all the listeners in this multicaster with the exception of all occurrences of oldl . If the resulting multicaster contains only one regular listener the regular listener may be returned. If the resulting multicaster is empty, then null may be returned instead.

No exception is thrown if oldl is null .
Parameters:
  oldl - the listener to be removed resulting listener




remove
public static ComponentListener remove(ComponentListener l, ComponentListener oldl)(Code)
Removes the old component-listener from component-listener-l and returns the resulting multicast listener.
Parameters:
  l - component-listener-l
Parameters:
  oldl - the component-listener being removed



remove
public static ContainerListener remove(ContainerListener l, ContainerListener oldl)(Code)
Removes the old container-listener from container-listener-l and returns the resulting multicast listener.
Parameters:
  l - container-listener-l
Parameters:
  oldl - the container-listener being removed



remove
public static FocusListener remove(FocusListener l, FocusListener oldl)(Code)
Removes the old focus-listener from focus-listener-l and returns the resulting multicast listener.
Parameters:
  l - focus-listener-l
Parameters:
  oldl - the focus-listener being removed



remove
public static KeyListener remove(KeyListener l, KeyListener oldl)(Code)
Removes the old key-listener from key-listener-l and returns the resulting multicast listener.
Parameters:
  l - key-listener-l
Parameters:
  oldl - the key-listener being removed



remove
public static MouseListener remove(MouseListener l, MouseListener oldl)(Code)
Removes the old mouse-listener from mouse-listener-l and returns the resulting multicast listener.
Parameters:
  l - mouse-listener-l
Parameters:
  oldl - the mouse-listener being removed



remove
public static MouseMotionListener remove(MouseMotionListener l, MouseMotionListener oldl)(Code)
Removes the old mouse-motion-listener from mouse-motion-listener-l and returns the resulting multicast listener.
Parameters:
  l - mouse-motion-listener-l
Parameters:
  oldl - the mouse-motion-listener being removed



remove
public static WindowListener remove(WindowListener l, WindowListener oldl)(Code)
Removes the old window-listener from window-listener-l and returns the resulting multicast listener.
Parameters:
  l - window-listener-l
Parameters:
  oldl - the window-listener being removed



remove
public static WindowStateListener remove(WindowStateListener l, WindowStateListener oldl)(Code)
Removes the old window-state-listener from window-state-listener-l and returns the resulting multicast listener.
Parameters:
  l - window-state-listener-l
Parameters:
  oldl - the window-state-listener being removed
since:
   1.4



remove
public static WindowFocusListener remove(WindowFocusListener l, WindowFocusListener oldl)(Code)
Removes the old window-focus-listener from window-focus-listener-l and returns the resulting multicast listener.
Parameters:
  l - window-focus-listener-l
Parameters:
  oldl - the window-focus-listener being removed
since:
   1.4



remove
public static ActionListener remove(ActionListener l, ActionListener oldl)(Code)
Removes the old action-listener from action-listener-l and returns the resulting multicast listener.
Parameters:
  l - action-listener-l
Parameters:
  oldl - the action-listener being removed



remove
public static ItemListener remove(ItemListener l, ItemListener oldl)(Code)
Removes the old item-listener from item-listener-l and returns the resulting multicast listener.
Parameters:
  l - item-listener-l
Parameters:
  oldl - the item-listener being removed



remove
public static AdjustmentListener remove(AdjustmentListener l, AdjustmentListener oldl)(Code)
Removes the old adjustment-listener from adjustment-listener-l and returns the resulting multicast listener.
Parameters:
  l - adjustment-listener-l
Parameters:
  oldl - the adjustment-listener being removed



remove
public static TextListener remove(TextListener l, TextListener oldl)(Code)



remove
public static InputMethodListener remove(InputMethodListener l, InputMethodListener oldl)(Code)
Removes the old input-method-listener from input-method-listener-l and returns the resulting multicast listener.
Parameters:
  l - input-method-listener-l
Parameters:
  oldl - the input-method-listener being removed



remove
public static HierarchyListener remove(HierarchyListener l, HierarchyListener oldl)(Code)
Removes the old hierarchy-listener from hierarchy-listener-l and returns the resulting multicast listener.
Parameters:
  l - hierarchy-listener-l
Parameters:
  oldl - the hierarchy-listener being removed
since:
   1.3



remove
public static HierarchyBoundsListener remove(HierarchyBoundsListener l, HierarchyBoundsListener oldl)(Code)
Removes the old hierarchy-bounds-listener from hierarchy-bounds-listener-l and returns the resulting multicast listener.
Parameters:
  l - hierarchy-bounds-listener-l
Parameters:
  oldl - the hierarchy-bounds-listener being removed
since:
   1.3



remove
public static MouseWheelListener remove(MouseWheelListener l, MouseWheelListener oldl)(Code)
Removes the old mouse-wheel-listener from mouse-wheel-listener-l and returns the resulting multicast listener.
Parameters:
  l - mouse-wheel-listener-l
Parameters:
  oldl - the mouse-wheel-listener being removed
since:
   1.4



removeInternal
protected static EventListener removeInternal(EventListener l, EventListener oldl)(Code)
Returns the resulting multicast listener after removing the old listener from listener-l. If listener-l equals the old listener OR listener-l is null, returns null. Else if listener-l is an instance of AWTEventMulticaster, then it removes the old listener from it. Else, returns listener l.
Parameters:
  l - the listener being removed from
Parameters:
  oldl - the listener being removed



save
protected static void save(ObjectOutputStream s, String k, EventListener l) throws IOException(Code)



saveInternal
protected void saveInternal(ObjectOutputStream s, String k) throws IOException(Code)



textValueChanged
public void textValueChanged(TextEvent e)(Code)



windowActivated
public void windowActivated(WindowEvent e)(Code)
Handles the windowActivated event by invoking the windowActivated methods on listener-a and listener-b.
Parameters:
  e - the window event



windowClosed
public void windowClosed(WindowEvent e)(Code)
Handles the windowClosed event by invoking the windowClosed methods on listener-a and listener-b.
Parameters:
  e - the window event



windowClosing
public void windowClosing(WindowEvent e)(Code)
Handles the windowClosing event by invoking the windowClosing methods on listener-a and listener-b.
Parameters:
  e - the window event



windowDeactivated
public void windowDeactivated(WindowEvent e)(Code)
Handles the windowDeactivated event by invoking the windowDeactivated methods on listener-a and listener-b.
Parameters:
  e - the window event



windowDeiconified
public void windowDeiconified(WindowEvent e)(Code)
Handles the windowDeiconfied event by invoking the windowDeiconified methods on listener-a and listener-b.
Parameters:
  e - the window event



windowGainedFocus
public void windowGainedFocus(WindowEvent e)(Code)
Handles the windowGainedFocus event by invoking the windowGainedFocus methods on listener-a and listener-b.
Parameters:
  e - the window event
since:
   1.4



windowIconified
public void windowIconified(WindowEvent e)(Code)
Handles the windowIconified event by invoking the windowIconified methods on listener-a and listener-b.
Parameters:
  e - the window event



windowLostFocus
public void windowLostFocus(WindowEvent e)(Code)
Handles the windowLostFocus event by invoking the windowLostFocus methods on listener-a and listener-b.
Parameters:
  e - the window event
since:
   1.4



windowOpened
public void windowOpened(WindowEvent e)(Code)
Handles the windowOpened event by invoking the windowOpened methods on listener-a and listener-b.
Parameters:
  e - the window event



windowStateChanged
public void windowStateChanged(WindowEvent e)(Code)
Handles the windowStateChanged event by invoking the windowStateChanged methods on listener-a and listener-b.
Parameters:
  e - the window event
since:
   1.4



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.