|
Extension SDK 10.1.2 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.ide.dialogs.OnePageWizardDialogFactory
Utility class for simple creation and execution of OnePageWizard's.
Example Usage:
String title = "My Dialog Title"; JPanel panel = new JPanel(new VerticalFlowLayout()); JTextArea textArea = new JTextArea(""); panel.add(new JLabel("Enter something: "); panel.add(textArea); boolean ok = OnePageWizardDialogFactory.runDialog(panel, textArea, title); if (ok) { System.out.println("You entered " + textArea.getText()); }
Method Summary | |
static oracle.bali.ewt.dialog.JEWTDialog |
createJEWTDialog(java.awt.Component parent,
java.awt.Component content,
java.awt.Component defaultComp,
java.lang.String title,
int buttonMask)
Creates a JEWTDialog with one page
of the content with the given title and
invokes the dialog. |
static oracle.bali.ewt.dialog.JEWTDialog |
createJEWTDialog(java.awt.Component content,
java.awt.Component defaultComp,
java.lang.String title)
Creates a JEWTDialog with one page
of the content with the given title and
invokes the dialog. |
static oracle.bali.ewt.dialog.JEWTDialog |
createJEWTDialog(java.awt.Component content,
java.awt.Component defaultComp,
java.lang.String title,
int buttonMask)
Creates a JEWTDialog with one page
of the content with the given title and
invokes the dialog. |
static boolean |
runDialog(java.awt.Component parent,
java.awt.Component content,
java.awt.Component defComp,
java.lang.String title)
Creates a WizardDialog with one page
of the content , with the given title and
invokes the dialog. |
static boolean |
runDialog(java.awt.Component parent,
java.awt.Component content,
java.awt.Component defComp,
java.lang.String title,
int buttonMask,
java.beans.VetoableChangeListener l)
Creates a WizardDialog with one page
of the content , with the given title and
invokes the dialog. |
static boolean |
runDialog(java.awt.Component content,
java.awt.Component defComp,
java.lang.String title)
Creates a WizardDialog with one page
of the content , with the given title and
invokes the dialog. |
static boolean |
runDialog(java.awt.Component content,
java.awt.Component defComp,
java.lang.String title,
int buttonMask)
Creates a WizardDialog with one page
of the content , with the given title and
invokes the dialog. |
static boolean |
runDialog(java.awt.Component content,
java.awt.Component defComp,
java.lang.String title,
int buttonMask,
java.beans.VetoableChangeListener l)
Creates a WizardDialog with one page
of the content , with the given title and
invokes the dialog. |
static boolean |
runDialog(java.awt.Component content,
java.lang.String title)
Creates a WizardDialog with one page
of the content , with the given title and
invokes the dialog. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static final oracle.bali.ewt.dialog.JEWTDialog createJEWTDialog(java.awt.Component content, java.awt.Component defaultComp, java.lang.String title)
JEWTDialog
with one page
of the content
with the given title
and
invokes the dialog.
content
- The content page of the WizarddefaultComp
- The component on the content
which will
receive the default keyboard focus.title
- The title of the Dialogpublic static final oracle.bali.ewt.dialog.JEWTDialog createJEWTDialog(java.awt.Component content, java.awt.Component defaultComp, java.lang.String title, int buttonMask)
JEWTDialog
with one page
of the content
with the given title
and
invokes the dialog.
content
- The content page of the WizarddefaultComp
- The component on the content
which will
receive the default keyboard focus.title
- The title of the DialogbuttonMask
- bitmask of which buttons to show on the dialog.
The constants are defined in JEWTDialog
public static final oracle.bali.ewt.dialog.JEWTDialog createJEWTDialog(java.awt.Component parent, java.awt.Component content, java.awt.Component defaultComp, java.lang.String title, int buttonMask)
JEWTDialog
with one page
of the content
with the given title
and
invokes the dialog.
parent
- a component contained in the window on which the dialog should
be parented.content
- The content page of the WizarddefaultComp
- The component on the content
which will
receive the default keyboard focus.title
- The title of the DialogbuttonMask
- bitmask of which buttons to show on the dialog.
The constants are defined in JEWTDialog
public static final boolean runDialog(java.awt.Component content, java.lang.String title)
WizardDialog
with one page
of the content
, with the given title
and
invokes the dialog.
content
- The content page of the Wizardtitle
- The title of the Dialog
true
if the dialog was not canceled.public static final boolean runDialog(java.awt.Component content, java.awt.Component defComp, java.lang.String title)
WizardDialog
with one page
of the content
, with the given title
and
invokes the dialog.
content
- The content page of the Wizardtitle
- The title of the Dialog
true
if the dialog was not canceled.public static final boolean runDialog(java.awt.Component parent, java.awt.Component content, java.awt.Component defComp, java.lang.String title)
WizardDialog
with one page
of the content
, with the given title
and
invokes the dialog.
parent
- a component contained in the window on which the dialog should
be parented.content
- The content page of the Wizardtitle
- The title of the Dialog
true
if the dialog was not canceled.public static final boolean runDialog(java.awt.Component content, java.awt.Component defComp, java.lang.String title, int buttonMask)
WizardDialog
with one page
of the content
, with the given title
and
invokes the dialog.
content
- The content page of the Wizardtitle
- The title of the Dialog
true
if the dialog was not canceled.public static final boolean runDialog(java.awt.Component content, java.awt.Component defComp, java.lang.String title, int buttonMask, java.beans.VetoableChangeListener l)
WizardDialog
with one page
of the content
, with the given title
and
invokes the dialog.
Example of using the PropertyVetoListener
final String propName = evt.getPropertyName(); final Object newValue = evt.getNewValue(); if ( propName.equals( JEWTDialog.PROPERTY_CLOSED ) && Boolean.TRUE.equals( newValue ) ) { // Handle your logic here, to cancel you do: // throw new PropertyVetoException( "", evt ); }
content
- The content page of the Wizardtitle
- The title of the DialogbuttonMask
- bitmask of which buttons to show on the dialog.
The constants are defined in JEWTDialog
l
- If this parameter is not null
, then it will be
registered with the created JEWTDialog
.
true
if the dialog was not canceled.public static final boolean runDialog(java.awt.Component parent, java.awt.Component content, java.awt.Component defComp, java.lang.String title, int buttonMask, java.beans.VetoableChangeListener l)
WizardDialog
with one page
of the content
, with the given title
and
invokes the dialog.
Example of using the PropertyVetoListener
final String propName = evt.getPropertyName(); final Object newValue = evt.getNewValue(); if ( propName.equals( JEWTDialog.PROPERTY_CLOSED ) && Boolean.TRUE.equals( newValue ) ) { // Handle your logic here, to cancel you do: // throw new PropertyVetoException( "", evt ); }
parent
- a component contained in the window on which the dialog should
be parented.content
- The content page of the Wizardtitle
- The title of the DialogbuttonMask
- bitmask of which buttons to show on the dialog.
The constants are defined in JEWTDialog
l
- If this parameter is not null
, then it will be
registered with the created JEWTDialog
.
true
if the dialog was not canceled.
|
Extension SDK | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1997, 2004, Oracle. All rights reserved.