Documentation Archive Developer
Search
PATH Documentation > WebObjects

Table of Contents

EOControlActionAdapter


Inherits from:
Object
Implements:
java.awt.event.ActionListener
NSDisposable
Package:
com.webobjects.eointerface.swing


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).




Interfaces Implemented


NSDisposable
dispose
java.awt.event.ActionListener
actionPerformed


Method Types


All methods
EOControlActionAdapter
setTarget


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 and llegalStateException 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.

dispose

public void dispose()

See the description in the documentation for NSDisposable.

setTarget

public void setTarget(Object target)

Sets the receiver's target to target..

© 2001 Apple Computer, Inc. (Last Published April 21, 2001)


Table of Contents