|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.6.0) E13403-07 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.ide.dialogs.DialogUtil
public abstract class DialogUtil
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 |
addURLChooserShortcutProvider(URLChooserShortcutProvider provider)
Installs a provider which may dynamically install shortcuts into the URL chooser when the addShortcutButtons(URLChooser,Context) method
is called. |
static void |
addURLFilter(URLFilter filter)
Adds a new URLFilter that will be included automatically
in URLChooser instances created by
newURLChooser(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
specified Context . |
static URLChooser |
newURLChooser(Context context,
java.net.URL initialURL)
Creates a new URLChooser that is initialized according to the
specified Context with the specified URL as the
initial selection. |
static URLChooser |
newURLChooser(java.net.URL initialURL)
Creates a new URLChooser that is initialized with the
specified URL as the initial selection. |
static void |
registerShortcutButton(javax.swing.Icon icon,
java.lang.String label,
java.net.URL url)
Deprecated. since 11.1.1.0.1 - use #addURLChooserShortcutProvider(URLChooserShortuctProvider) . |
static void |
removeURLChooserShortcutProvider(URLChooserShortcutProvider provider)
Uninstalls a provider of shorcuts in the URL chooser. |
static void |
setDefaultFilter(URLFilter filter)
Deprecated. since 11.1.1 this method doesn't do anything |
static void |
setProjectFilter(URLFilter filter)
Deprecated. since 11.1.1 this method doesn't do anything |
static void |
setWorkspaceFilter(URLFilter filter)
Deprecated. since 11.1.1 this method doesn't do anything |
static void |
unregisterShortcutButton(javax.swing.Icon icon,
java.lang.String label,
java.net.URL url)
Deprecated. snice 11.1.1.0.1 - use removeURLChooserShortcutProvider(URLChooserShortcutProvider) . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DialogUtil()
Method Detail |
---|
public static URLChooser newURLChooser()
URLChooser
that is initialized using a default
Context
.
public static URLChooser newURLChooser(Context context)
URLChooser
that is initialized according to the
specified Context
.
context
- The Context
with which to initialize the
URLChooser
, or null
to initialize with
default values.public static URLChooser newURLChooser(java.net.URL initialURL)
URLChooser
that is initialized with the
specified URL
as the initial selection.
initialURL
- The URL
of the initial selection, or
null
to initialize with the default selection.public static URLChooser newURLChooser(Context context, java.net.URL initialURL)
URLChooser
that is initialized according to the
specified Context
with the specified URL
as the
initial selection.
context
- The Context
with which to initialize the
URLChooser
, or null
to initialize with
default values.initialURL
- The URL
of the initial selection, or
null
to initialize with the default selection.public static void initURLChooser(URLChooser urlChooser, Context context)
URLChooser
according to the
current Context
.
urlChooser
- The URLChooser
to initialize, which
may not be null
.context
- The Context
with which to initialize the
URLChooser
, or null
to initialize with
default values.public static void addURLChooserShortcutProvider(URLChooserShortcutProvider provider)
addShortcutButtons(URLChooser,Context)
method
is called.This method may be safely called from any thread.
provider
- a provider to add.
java.lang.NullPointerException
- if provider is nullpublic static void removeURLChooserShortcutProvider(URLChooserShortcutProvider provider)
This method may be safely called from any thread. It will, however, not affect any currently visible instance of the URLChooser.
provider
- a provider to uninstall.public static void addShortcutButtons(URLChooser uc, Context context)
URLChooser
based on the specified Context
.
public static URLChooserInit getURLChooserInit(Context context)
URLChooser
initializer. This method is used
to make compile-time dependencies more loosely coupled.
public static void registerShortcutButton(javax.swing.Icon icon, java.lang.String label, java.net.URL url)
#addURLChooserShortcutProvider(URLChooserShortuctProvider)
.
icon
- shortcut button iconlabel
- shortcut button labelurl
- directory root url, that is activated by the shortcut buttonpublic static void unregisterShortcutButton(javax.swing.Icon icon, java.lang.String label, java.net.URL url)
removeURLChooserShortcutProvider(URLChooserShortcutProvider)
.
icon
- shortcut button iconlabel
- shortcut button labelurl
- directory root url, that is activated by the shortcut buttonpublic static void addURLFilter(URLFilter filter)
URLFilter
that will be included automatically
in URLChooser
instances created by
newURLChooser(Context)
.
public static void setWorkspaceFilter(URLFilter filter)
Context
is the "Workspaces" node.
public static void setProjectFilter(URLFilter filter)
Context
is a Workspace
node.
public static void setDefaultFilter(URLFilter filter)
public static java.awt.Dialog getAncestorDialog(java.awt.Component parent)
public static java.awt.Frame getAncestorFrame(java.awt.Component parent)
public static oracle.bali.ewt.dialog.JEWTDialog createJEWTDialogOwnedBy(java.awt.Component parent)
parent
- component that should be the owner of the dialog
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.6.0) E13403-07 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |