|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.7.2) E13403-10 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.ide.dialogs.OnePageWizardDialogFactory
public final class 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. |
static void |
setDialogHeader(java.awt.Component content, oracle.bali.ewt.dialog.DialogHeader header) Sets the dialog header to use for dialogs created for the specified content component. |
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 Dialogtrue
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 WizarddefaultComp
- The component on the content
which will receive the default keyboard focus.title
- The title of the Dialogtrue
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 WizarddefaultComp
- The component on the content
which will receive the default keyboard focus.title
- The title of the Dialogtrue
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 WizarddefaultComp
- The component on the content
which will receive the default keyboard focus.title
- The title of the Dialogtrue
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( "<any text>", evt ); }
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
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( "<any text>", evt ); }
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
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 void setDialogHeader(java.awt.Component content, oracle.bali.ewt.dialog.DialogHeader header)
content
- the content component. If this is a JComponent, we will remember and use the specified DialogHeader for the dialog.header
- the header to use.
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.7.2) E13403-10 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |