com.sas.awt
Class ActionListenerList
java.lang.Object
|
+--com.sas.awt.ActionListenerList
- All Implemented Interfaces:
- public final class ActionListenerList
- extends java.lang.Object
- implements java.io.Serializable
Manage a list of listeners for the java.awt.ActionEvent event.
- See Also:
ActionEvent,
- June 19 1997
- Created
, Serialized Form
|
Method Summary |
void |
add(ActionListener listener)
Add a listener to the list of listeners. |
ActionListener[] |
getListeners()
Return a safe copy of the list of listeners for this event.
|
void |
remove(ActionListener listener)
Remove a listener from the list of listeners. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ActionListenerList
public ActionListenerList()
ActionListenerList
public ActionListenerList(int initialIncrement)
add
public void add(ActionListener listener)
- Add a listener to the list of listeners.
- Parameters:
listener - a new listener for the ActionEvent event
getListeners
public ActionListener[] getListeners()
- Return a safe copy of the list of listeners for this event.
the client may iterate over this list and send events
to the clients in a thread safe manner; calls to
addActionListener or removeActionListener may take
place but do not affect this copied listener list.
- Returns:
- a safe arry copy of the listener list. The array contains no null items.
remove
public void remove(ActionListener listener)
- Remove a listener from the list of listeners.
- Parameters:
listener - the listener to remove from the list.
Copyright © 2005 SAS Institute Inc. All Rights Reserved.
javadoc generated Thu, 16 Feb 2006 01:44:46