Main Page   Packages   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

JavaFuncDialog Class Reference

A dialog box for calling a member function of an object (target) with user specified parameters. More...

List of all members.

Public Methods

 JavaFuncDialog (Object target, CallableMethod targetMethod)
 Constructor for calling a target member function directly from a modeless (non-modal) dialog box. More...

 JavaFuncDialog (Object target, CallableMethod targetMethod, Object user, String userMethodName, boolean modal)
 Constructor for calling a target member function via a user. More...

void actionPerformed (ActionEvent e)
 Implementation of ActionListener. More...


Detailed Description

A dialog box for calling a member function of an object (target) with user specified parameters.

The description of the member function is given by the CallableMethod. Optionally, a user Object may be specified.

If (user == null) the method on the target is invoked when the OK button in the dialog box is pressed. If (user != null) the target method is not invoked directly. Instead the userMethod of the user object is called with three parameters: the target Object, the CallableMethod of the target object, and the argument values. The user object then has the responsibility of invoking the target method.


Constructor & Destructor Documentation

JavaFuncDialog::JavaFuncDialog Object    target,
CallableMethod    targetMethod
[inline]
 

Constructor for calling a target member function directly from a modeless (non-modal) dialog box.

JavaFuncDialog::JavaFuncDialog Object    target,
CallableMethod    targetMethod,
Object    user,
String    userMethodName,
boolean    modal
[inline]
 

Constructor for calling a target member function via a user.


Member Function Documentation

void JavaFuncDialog::actionPerformed ActionEvent    e [inline]
 

Implementation of ActionListener.


The documentation for this class was generated from the following file:
Generated on Tue Jan 8 14:14:25 2002 for JavaReference by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001