Extension SDK 10.1.2

oracle.ide.dialogs
Class OnePageWizardDialogFactory

java.lang.Object
  extended byoracle.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.
 
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
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
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
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
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
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.

Extension SDK

 

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