|
WebObjects 5.2.3 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.webobjects.eointerface.swing.EOControlActionAdapter
The EOControlActionAdapter class is used to connect user interface widgets to the
actions performed with those controls. They are usually generated automatically
to represent connections made in Interface Builder.
For example, suppose you create 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).
Constructor Summary | |
EOControlActionAdapter(Object target,
String actionName,
Object listenee)
Constructs a new EOControlActionAdapter that performs the method identified by actionName
on the object target when the widget listenee is acted upon. |
|
EOControlActionAdapter(String actionName,
Object listenee)
Constructs a new EOControlActionAdapter that performs the method identified by actionName
when the widget listenee is acted upon. |
Method Summary | |
void |
actionPerformed(ActionEvent event)
Invokes the action method on the target of the EOControlActionAdaptor. |
void |
dispose()
Releases all resources used by this object and ensures that it becomes available for garbage collection. |
void |
setTarget(Object target)
Sets the receiver's target to target . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public EOControlActionAdapter(Object target, String actionName, Object listenee)
actionName
on the object target
when the widget listenee
is acted upon.
target
- the action targetactionName
- the name of the action methodlistenee
- listenee (widget) to be acted upon
java.lang.illegalStateException
- if listenee
is null
public EOControlActionAdapter(String actionName, Object listenee)
actionName
when the widget listenee
is acted upon. Note that you have to set the target later if you
want this action to have any effect.
actionName
- the name of the action methodlistenee
- listenee (widget) to be acted upon
java.lang.illegalStateException
- if listenee
is null
Method Detail |
public void actionPerformed(ActionEvent event)
actionPerformed
in interface ActionListener
event
- the user event triggering the actionpublic void dispose()
dispose
.
dispose
in interface NSDisposable
public void setTarget(Object target)
target
.
target
- the action target
|
Last updated Thu Oct 21 15:04:16 PDT 2004. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |