Extension SDK 10.1.2

oracle.ide.dialogs
Class DialogUtil

java.lang.Object
  extended byoracle.ide.dialogs.DialogUtil

public abstract class DialogUtil
extends java.lang.Object

A factory class for dialogs.


Constructor Summary
DialogUtil()
           
 
Method Summary
static void addShortcutButtons(URLChooser uc, Context context)
          Adds shortcut buttons on the left side of the URLChooser based on the specified Context.
static void addShortcutButtons(URLChooser uc, java.net.URL defaultURL, Context context)
          Deprecated. Replace with #addShortcutButtons(URLChooser,Context.
static void addURLFilter(URLFilter filter)
          Adds a new URLFilter that will be included automatically in URLChooser instances created by DialogUtil#getURLChooser(Context).
static oracle.bali.ewt.dialog.JEWTDialog createJEWTDialogOwnedBy(java.awt.Component parent)
          Given a Component, find its nearest hosting Dialog, if any, which may be itself.
static java.awt.Dialog getAncestorDialog(java.awt.Component parent)
           
static java.awt.Frame getAncestorFrame(java.awt.Component parent)
           
static URLChooserInit getURLChooserInit(Context context)
          Returns a URLChooser initializer.
static void initURLChooser(URLChooser urlChooser, Context context)
          Initializes the specified URLChooser according to the current Context.
static URLChooser newURLChooser()
          Creates a new URLChooser that is initialized using a default Context.
static URLChooser newURLChooser(Context context)
          Creates a new URLChooser that is initialized according to the current Context.
static URLChooser newURLChooser(java.net.URL url)
          Creates a new URLChooser that is initialized with the specified URL as the initial selection.
static void setDefaultFilter(URLFilter filter)
          Sets the filter that is to be used by default.
static void setProjectFilter(URLFilter filter)
          Sets the filter that is to be used when the current Context is a Workspace node.
static void setWorkspaceFilter(URLFilter filter)
          Sets the filter that is to be used when the current Context is the "Workspaces" node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DialogUtil

public DialogUtil()
Method Detail

newURLChooser

public static URLChooser newURLChooser()
Creates a new URLChooser that is initialized using a default Context.


newURLChooser

public static URLChooser newURLChooser(Context context)
Creates a new URLChooser that is initialized according to the current Context.

Parameters:
context - The Context with which to initialize the URLChooser, or null if the URLChooser should be initialized with default values.

newURLChooser

public static URLChooser newURLChooser(java.net.URL url)
Creates a new URLChooser that is initialized with the specified URL as the initial selection.

Parameters:
url - The URL of the initial selection, or null if no initial selection is desired.

initURLChooser

public static void initURLChooser(URLChooser urlChooser,
                                  Context context)
Initializes the specified URLChooser according to the current Context.

Parameters:
urlChooser - The URLChooser to initialize, which may not be null.
context - The Context with which to initialize the URLChooser, or null if the URLChooser should be initialized with default values.

addShortcutButtons

public static void addShortcutButtons(URLChooser uc,
                                      java.net.URL defaultURL,
                                      Context context)
Deprecated. Replace with #addShortcutButtons(URLChooser,Context.


addShortcutButtons

public static void addShortcutButtons(URLChooser uc,
                                      Context context)
Adds shortcut buttons on the left side of the URLChooser based on the specified Context.


getURLChooserInit

public static URLChooserInit getURLChooserInit(Context context)
Returns a URLChooser initializer. This method is used to make compile-time dependencies more loosely coupled.


addURLFilter

public static void addURLFilter(URLFilter filter)
Adds a new URLFilter that will be included automatically in URLChooser instances created by DialogUtil#getURLChooser(Context).


setWorkspaceFilter

public static void setWorkspaceFilter(URLFilter filter)
Sets the filter that is to be used when the current Context is the "Workspaces" node.


setProjectFilter

public static void setProjectFilter(URLFilter filter)
Sets the filter that is to be used when the current Context is a Workspace node.


setDefaultFilter

public static void setDefaultFilter(URLFilter filter)
Sets the filter that is to be used by default.


getAncestorDialog

public static java.awt.Dialog getAncestorDialog(java.awt.Component parent)

getAncestorFrame

public static java.awt.Frame getAncestorFrame(java.awt.Component parent)

createJEWTDialogOwnedBy

public static oracle.bali.ewt.dialog.JEWTDialog createJEWTDialogOwnedBy(java.awt.Component parent)
Given a Component, find its nearest hosting Dialog, if any, which may be itself. Creates a JEWTDialog with that owner.

Returns:
null if Component is not hosted by a Dialog or Frame; otherwise it returns a JEWTDialog

Extension SDK

 

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