Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1)

E13403-04

oracle.ide.dialogs
Class OnePageWizardDialogFactory

java.lang.Object
  extended by oracle.ide.dialogs.OnePageWizardDialogFactory

public final class OnePageWizardDialogFactory
extends java.lang.Object

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

createJEWTDialog

public static final 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.

Parameters:
content - The content page of the Wizard
defaultComp - The component on the content which will receive the default keyboard focus.
title - The title of the Dialog

createJEWTDialog

public static final 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.

Parameters:
content - The content page of the Wizard
defaultComp - The component on the content which will receive the default keyboard focus.
title - The title of the Dialog
buttonMask - bitmask of which buttons to show on the dialog. The constants are defined in JEWTDialog

createJEWTDialog

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)
Creates a JEWTDialog with one page of the content with the given title and invokes the dialog.

Parameters:
parent - a component contained in the window on which the dialog should be parented.
content - The content page of the Wizard
defaultComp - The component on the content which will receive the default keyboard focus.
title - The title of the Dialog
buttonMask - bitmask of which buttons to show on the dialog. The constants are defined in JEWTDialog

runDialog

public static final 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.

Parameters:
content - The content page of the Wizard
title - The title of the Dialog
Returns:
true if the dialog was not canceled.

runDialog

public static final 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.

Parameters:
content - The content page of the Wizard
defaultComp - The component on the content which will receive the default keyboard focus.
title - The title of the Dialog
Returns:
true if the dialog was not canceled.

runDialog

public static final 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.

Parameters:
parent - a component contained in the window on which the dialog should be parented.
content - The content page of the Wizard
defaultComp - The component on the content which will receive the default keyboard focus.
title - The title of the Dialog
Returns:
true if the dialog was not canceled.

runDialog

public static final 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.

Parameters:
content - The content page of the Wizard
defaultComp - The component on the content which will receive the default keyboard focus.
title - The title of the Dialog
Returns:
true if the dialog was not canceled.

runDialog

public static final 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.

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 );
 }
 

Parameters:
content - The content page of the Wizard
defaultComp - The component on the content which will receive the default keyboard focus.
title - The title of the Dialog
buttonMask - 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.
Returns:
true if the dialog was not canceled.

runDialog

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)
Creates a 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 );
 }
 

Parameters:
parent - a component contained in the window on which the dialog should be parented.
content - The content page of the Wizard
defaultComp - The component on the content which will receive the default keyboard focus.
title - The title of the Dialog
buttonMask - 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.
Returns:
true if the dialog was not canceled.

setDialogHeader

public static final 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.

Parameters:
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.
Since:
11.1.1.0.0

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1)

E13403-04

Copyright © 1997, 2010, Oracle. All rights reserved.