com.sas.awt
Class ActionListenerList

com.sas.awt.ActionListenerList
All Implemented Interfaces:
java.io.Serializable

public final class ActionListenerList
implements java.io.Serializable

Manage a list of listeners for the java.awt.ActionEvent event.

See Also:
ActionEvent,
June 19 1997
Created
, Serialized Form

Constructor Summary
ActionListenerList()
           
ActionListenerList(int initialIncrement)
           
 
Method Summary
 void add(java.awt.event.ActionListener listener)
          Add a listener to the list of listeners.
 java.awt.event.ActionListener[] getListeners()
          Return a safe copy of the list of listeners for this event.
 void remove(java.awt.event.ActionListener listener)
          Remove a listener from the list of listeners.
 

Constructor Detail

ActionListenerList

public ActionListenerList()

ActionListenerList

public ActionListenerList(int initialIncrement)
Method Detail

add

public void add(java.awt.event.ActionListener listener)
Add a listener to the list of listeners.

Parameters:
listener - a new listener for the ActionEvent event

getListeners

public java.awt.event.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(java.awt.event.ActionListener listener)
Remove a listener from the list of listeners.

Parameters:
listener - the listener to remove from the list.



Copyright © 2009 SAS Institute Inc. All Rights Reserved.