com.sas.awt
Interface ActionSource

All Known Subinterfaces:
ButtonModelInterface, TabBarInterface, TabButtonInterface
All Known Implementing Classes:
AlarmButtonModel, ArrowButton, BaseButton, CheckBoxCell, DefaultButtonModel, GraphicalCheckBox, NavigationBar, PushButton, RadioButton, TabBar, TabButton, TabButtonModel, ToggleButton, ToggleButtonModel, ToolbarButton, TreeView, TreeView

public interface ActionSource

Define a type (interface) for an object which emits java.awt.ActionEvent events. This interface provides methods to add and remove listeners for that event.

See Also:
ActionEvent, ActionListener

Method Summary
 void addActionListener(java.awt.event.ActionListener listener)
          Add a listener for the java.awt.ActionEvent event.
 void removeActionListener(java.awt.event.ActionListener listener)
          Remove a listener for the java.awt.ActionEvent event.
 

Method Detail

addActionListener

void addActionListener(java.awt.event.ActionListener listener)
Add a listener for the java.awt.ActionEvent event.

Parameters:
listener - an object which handles ActionEvent events the listener is not added a second time if it already exists in the list of listeners for this event.

removeActionListener

void removeActionListener(java.awt.event.ActionListener listener)
Remove a listener for the java.awt.ActionEvent event. Nothing happens if the listener is not in the list of listeners for this event.

Parameters:
listener - an object which handles ActionEvent events



Copyright © 2009 SAS Institute Inc. All Rights Reserved.