Skip navigation links

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

E13403-06


javax.ide.view
Interface IDEDialogs


public interface IDEDialogs

The IDEDialogs provides the interface through which extension writers can invoke standard IDE dialogs, such as: information, warning, error, file and directory selection dialogs.


Field Summary
static int CANCEL_ID
          Button id for a "Cancel" button.
static int NO_ID
          Button id for a "No" button.
static int OK_CANCEL_OPTION
          Requests an option dialog with a OK and Cancel buttons.
static int OK_ID
          Button id for an "Ok" button.
static int YES_ID
          Button id for a "Yes" button.
static int YES_NO_CANCEL_OPTION
          Requests an option dialog with a Yes, No, and Cancel buttons.
static int YES_NO_OPTION
          Requests an option dialog with a Yes and No buttons.

 

Method Summary
 URISelectionDialog getDirectorySelectionDialog(java.lang.String title, java.net.URI location, Context context, GUIPanel parent)
          Creates a "directory selection" dialog.
 URISelectionDialog getFileSelectionDialog(java.lang.String title, java.net.URI location, Context context, GUIPanel parent)
          Creates a "file selection" dialog.
 void showErrorDialog(java.lang.String title, java.lang.String message, GUIPanel parent)
          Show an error message box with title and message as specified
 void showInformationDialog(java.lang.String title, java.lang.String message, GUIPanel parent)
          Show an informational message box with title and message as specified.
 int showOptionDialog(java.lang.String title, java.lang.String message, int option, GUIPanel parent)
          Show an options dialog with title and message as specified.
 void showWarningDialog(java.lang.String title, java.lang.String message, GUIPanel parent)
          Show a warning type dialog with title and message as specified.

 

Field Detail

OK_ID

static final int OK_ID
Button id for an "Ok" button.
See Also:
Constant Field Values

YES_ID

static final int YES_ID
Button id for a "Yes" button.
See Also:
Constant Field Values

NO_ID

static final int NO_ID
Button id for a "No" button.
See Also:
Constant Field Values

CANCEL_ID

static final int CANCEL_ID
Button id for a "Cancel" button.
See Also:
Constant Field Values

OK_CANCEL_OPTION

static final int OK_CANCEL_OPTION
Requests an option dialog with a OK and Cancel buttons.
See Also:
Constant Field Values

YES_NO_OPTION

static final int YES_NO_OPTION
Requests an option dialog with a Yes and No buttons.
See Also:
Constant Field Values

YES_NO_CANCEL_OPTION

static final int YES_NO_CANCEL_OPTION
Requests an option dialog with a Yes, No, and Cancel buttons.
See Also:
Constant Field Values

Method Detail

getFileSelectionDialog

URISelectionDialog getFileSelectionDialog(java.lang.String title,
                                          java.net.URI location,
                                          Context context,
                                          GUIPanel parent)
Creates a "file selection" dialog.
Parameters:
title - The dialog title.
location - The default starting directory or pre-selected file.
context - The current Context.
parent - The parent window handle GUIPanel
Returns:
The newly created URISelectionDialog class

getDirectorySelectionDialog

URISelectionDialog getDirectorySelectionDialog(java.lang.String title,
                                               java.net.URI location,
                                               Context context,
                                               GUIPanel parent)
Creates a "directory selection" dialog.
Parameters:
title - The dialog title.
location - The default starting directory or pre-selected file.
context - The current Context.
parent - The parent window handle GUIPanel
Returns:
The newly created URISelectionDialog class

showErrorDialog

void showErrorDialog(java.lang.String title,
                     java.lang.String message,
                     GUIPanel parent)
Show an error message box with title and message as specified
Parameters:
title - The title of the error dialog
message - The error message.
parent - The parent window handle GUIPanel

showInformationDialog

void showInformationDialog(java.lang.String title,
                           java.lang.String message,
                           GUIPanel parent)
Show an informational message box with title and message as specified.
Parameters:
title - The message box title
message - The message text.
parent - The parent window handle GUIPanel

showWarningDialog

void showWarningDialog(java.lang.String title,
                       java.lang.String message,
                       GUIPanel parent)
Show a warning type dialog with title and message as specified.
Parameters:
title - The title of the warning dialog
message - The message text
parent - The parent window handle GUIPanel

showOptionDialog

int showOptionDialog(java.lang.String title,
                     java.lang.String message,
                     int option,
                     GUIPanel parent)
Show an options dialog with title and message as specified. An option dialog can have OK, Cancel buttons; Yes, No buttons; and Yes, No, Cancel buttons. The button option is controlled by the constants: OK_CANCEL_OPTION, YES_NO_OPTION, and YES_NO_CANCEL_OPTION.
Parameters:
title - The question title
message - The question text
option - Button options. Can be one of the following constants: OK_CANCEL_OPTION, YES_NO_OPTION, and YES_NO_CANCEL_OPTION.
parent - The parent window handle GUIPanel
Returns:
One of the following constants: OK_ID or YES_ID, NO_ID, CANCEL_ID.

Skip navigation links

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

E13403-06


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