org.exolab.jms.jndiadministration
Class ObjectDialog
java.lang.Object
|
+--org.exolab.jms.jndiadministration.ObjectDialog
- public class ObjectDialog
- extends java.lang.Object
A simple dialog to collect information for creating Contexts and objects
- Version:
- $Revision: 1.2 $ $Date: 2003/08/07 13:32:59 $
- Author:
- Jim Mourikis
- See Also:
AdminMgr
Constructor Summary |
ObjectDialog(javax.swing.JFrame parent)
Creates new form ObjectDialog |
Method Summary |
static ObjectDialog |
create(javax.swing.JFrame parent)
Create the one and only instance of the Object Dialog. |
void |
display(java.lang.String displayString,
java.lang.String name)
Display the dialog. |
java.lang.String |
getName()
Get the name selected for this Object |
static ObjectDialog |
instance()
Get the one and only instance of this dialog. |
boolean |
isConfirmed()
Whether this dialog was confirmed or canceled. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CANCELED
public static final int CANCELED
CONFIRMED
public static final int CONFIRMED
ObjectDialog
public ObjectDialog(javax.swing.JFrame parent)
- Creates new form ObjectDialog
- Parameters:
parent
- The parent form.
instance
public static ObjectDialog instance()
- Get the one and only instance of this dialog. The dialog must first
have been created with the create call below.
- Returns:
- ObjectDialog the one and only instance
create
public static ObjectDialog create(javax.swing.JFrame parent)
- Create the one and only instance of the Object Dialog.
- Parameters:
parent
- the parent of this dialog- Returns:
- ObjectDialog the one and only instance
display
public void display(java.lang.String displayString,
java.lang.String name)
- Display the dialog.
- Parameters:
displayString
- The display stringname
- The dialog name
isConfirmed
public boolean isConfirmed()
- Whether this dialog was confirmed or canceled.
- Returns:
- boolena true if the OK button was pressed.
getName
public java.lang.String getName()
- Get the name selected for this Object
- Returns:
- String The name entered by the user
Copyright © 1999-2004 The OpenJMS Group. All Rights Reserved.