org.exolab.jms.jndiadministration
Class QueryDialog
java.lang.Object
|
+--org.exolab.jms.jndiadministration.QueryDialog
- public class QueryDialog
- extends java.lang.Object
A generic query dialaog, used to confirm all add/delete operations.
The class is just a wrapper around a JOptionMenuPane .
- Version:
- $Revision: 1.3 $ $Date: 2003/08/17 01:32:24 $
- Author:
- Jim Mourikis
- See Also:
AdminMgr
Constructor Summary |
QueryDialog(javax.swing.JFrame parent)
Creates new form QueryDialog |
Method Summary |
static QueryDialog |
create(javax.swing.JFrame parent)
Create the one and only instance of the Query Dialog. |
void |
display(java.lang.String st)
Popup the dialog and wait for the user to either OK or Cancel. |
static QueryDialog |
instance()
Get the one and only instance of this dialog. |
boolean |
isConfirmed()
Will return true if the action was confirmed. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
QueryDialog
public QueryDialog(javax.swing.JFrame parent)
- Creates new form QueryDialog
- Parameters:
parent
- The form dialog
instance
public static QueryDialog instance()
- Get the one and only instance of this dialog. The dialog must first
have been created with the create call below.
- Returns:
- QueryDialog the one and only instance
create
public static QueryDialog create(javax.swing.JFrame parent)
- Create the one and only instance of the Query Dialog.
- Parameters:
parent
- the parent of this dialog- Returns:
- QueryDialog the one and only instance
display
public void display(java.lang.String st)
- Popup the dialog and wait for the user to either OK or Cancel. Display
the give string.
- Parameters:
st
- The string to display.
isConfirmed
public boolean isConfirmed()
- Will return true if the action was confirmed. i.e. the OK button was
pressed.
- Returns:
- boolean the action was confirmed.
Copyright © 1999-2004 The OpenJMS Group. All Rights Reserved.