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

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 geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » 6.0 JDK Modules » j2me » java.awt 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   java.awt.AWTEventMulticaster

AWTEventMulticaster
public class AWTEventMulticaster implements ComponentListener,ContainerListener,FocusListener,KeyListener,MouseListener,MouseMotionListener,WindowListener,WindowFocusListener,ActionListener,ItemListener,AdjustmentListener,InputMethodListener,TextListener,MouseWheelListener(Code)
A class which implements efficient and thread-safe multi-cast event dispatching for the AWT events defined in the java.awt.event package. This class will manage an immutable structure consisting of a chain of event listeners and will dispatch events to those listeners. Because the structure is immutable, it is safe to use this API to add/remove listeners during the process of an event dispatch operation. An example of how this class could be used to implement a new component which fires "action" events:

 public myComponent extends Component {
 ActionListener actionListener = null;
 public void addActionListener(ActionListener l) {
 actionListener = AWTEventMulticaster.add(actionListener, l);
 }
 public void removeActionListener(ActionListener l) {
 actionListener = AWTEventMulticaster.remove(actionListener, l);
 }
 public void processEvent(AWTEvent e) {
 // when event occurs which causes "action" semantic
 if (actionListener != null) {
 actionListener.actionPerformed(new ActionEvent());
 }         
 }
 

version:
   1.17, 08/19/02
author:
   John Rose
author:
   Amy Fowler


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  InputMethodListeneradd(InputMethodListener a, InputMethodListener b)
     Adds input-method-listener-a with input-method-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  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  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  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  EventListener[]getListeners(EventListener l, Class 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. If a null listener is specified, this method returns an empty array.
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 and returns the resulting multicast listener.
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  InputMethodListenerremove(InputMethodListener l, InputMethodListener oldl)
     Removes the old input-method-listener from input-method-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  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  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.

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.
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 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 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 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



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 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



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 EventListener[] getListeners(EventListener l, Class 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:
  ClassCastException - if listenerTypedoesn't specify a class or interface that implementsjava.util.EventListener
since:
   1.4



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 and returns the resulting multicast listener.
Parameters:
  oldl - the listener to be removed



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 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 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 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



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 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



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



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



Methods inherited from java.lang.Object
public boolean equals(Object obj)(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.