All Packages Class Hierarchy This Package Previous Next Index
Class com.sun.wizards.core.QueryDialog
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Window
|
+----java.awt.Dialog
|
+----com.sun.wizards.core.QueryDialog
- public class QueryDialog
- extends Dialog
- implements ActionListener, Runnable
QueryDialog is a modal dialog box that presents a message to
the user with any number of labeled buttons to collect
the response.
-
QueryDialog(Object, Frame, String, String, String[], String[])
- Creates a QueryDialog with the specified title.
-
actionPerformed(ActionEvent)
- This method is called when one of the buttons is pressed.
-
callObjectMethod(Object, String, Class[], Object[])
- Call an object method through reflection.
-
run()
- The callback is executed in a separate thread to avoid possible
deadlocks.
QueryDialog
public QueryDialog(Object target,
Frame parent,
String title,
String message,
String buttons[],
String methods[])
- Creates a QueryDialog with the specified title. The dialog will be
populated with the specified message, and a button representing each
of the String objects in the buttons list.
- Parameters:
- target - The object to call when a selection from the
dialog is made.
- parent - The owner of the dialog.
- title - The title of the dialog.
- message - The message to be presented to the user.
- buttons - The buttons to be displayed by this dialog.
- methods - A list of methods (in the same order as the
list of buttons) that will be called when a
dialog selection is made.
actionPerformed
public void actionPerformed(ActionEvent e)
- This method is called when one of the buttons is pressed.
When pressed, the method registered for that button will
be invoked.
run
public void run()
- The callback is executed in a separate thread to avoid possible
deadlocks. The action event is generated from an AWT thread, and
it is possible to write a callback method that will hang that thread
waiting for the awt tree lock.
callObjectMethod
public Object callObjectMethod(Object target,
String methodName,
Class argTypes[],
Object args[])
- Call an object method through reflection.
- Parameters:
- target - The object to call the method on.
- methodName - The name of the method to call.
- argTypes - The parameter list identifying the
correct method.
- args - The parameters to pass to the method.
- Returns:
- The method return value.
All Packages Class Hierarchy This Package Previous Next Index