com.sas.visuals
Class MessageBoxListenerList

com.sas.visuals.MessageBoxListenerList

public final class MessageBoxListenerList

Manage a list of listeners for the com.sas.visuals.MessageBoxEvent event.

See Also:
MessageBoxEvent, MessageBoxListener

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

Constructor Detail

MessageBoxListenerList

public MessageBoxListenerList()

MessageBoxListenerList

public MessageBoxListenerList(int initialIncrement)
Method Detail

add

public void add(MessageBoxListener listener)
Add a listener to the list of listeners.

Parameters:
listener - a new listener for the MessageBoxEvent event

getListeners

public MessageBoxListener[] 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 addMessageBoxListener or removeMessageBoxListener may take place but do not affect this copied listener list.

Returns:
a safe arry copy of the listener list.

remove

public void remove(MessageBoxListener 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.