PATH  Documentation > WebObjects 4.5 > EOInterface Reference

Table of Contents

EOControlActionAdapter


Inherits from:
Object
Implements:
java.awt.event.ActionListener
NSDisposable
Package:
com.apple.client.eointerface


Class Description


The EOControlActionAdapter class is used to connect user interface controls to the objects that respond to actions performed on those controls. They are usually generated automatically to represent connections made in Interface Builder. For example, suppose you control-drag a connection from a "Fetch" button to a display group and that you connect the button to the display group's fetch method. At runtime, an EOControlActionAdapter object is used to invoke the display group's fetch method when a user clicks the Fetch button. In this example, the display group is the EOControlActionAdapter's target, "fetch" is the name of the action (method) to perform on the target, and the button is the listenee. An EOControlActionAdapter listens for the listenee (the button) to be acted upon (to be pushed). When the listenee is acted upon, the EOControlActionAdapter performs the action on its target (invokes the display group's fetch method).


Note: This class doesn't exist in the com.apple.yellow.eointerface package.




Interfaces Implemented


NSDisposable
dispose


Constructors



EOControlActionAdapter

public EOControlActionAdapter( Object target, String actionName, Object listenee)

public EOControlActionAdapter( String actionName, Object listenee)

Creates and returns a new EOControlActionAdapter object that performs the method identified by actionName on target when listenee is acted upon. Raises an illegalStateException if listenee is null.


Instance Methods



actionPerformed

public void actionPerformed(java.awt.event.ActionEvent event)

Performs the receiver's action on its target. If target is null, this method simply returns. If the target doesn't implement the action method, this method prints an error message and returns.

setTarget

public void setTarget(Object target)

Sets the receiver's target to target.


Table of Contents