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

E13403-03

javax.ide.view
Interface URISelectionDialog


public interface URISelectionDialog

This interface gives clients a portable interface to control basic file and directory selection dialogs.


Nested Class Summary
static interface URISelectionDialog.Validator
          Clients of the URISelectionDialog implement a Validator when they need to validate the selected URI(s) before the selection dialog is dismissed.
 
Method Summary
 java.net.URI[] getResults()
          Gets any dialog result parameters as an array of objects.
 int show()
          Shows the dialog.
 int show(URISelectionDialog.Validator validator)
          Shows the dialog.
 

Method Detail

show

int show()
Shows the dialog.

Returns:
An integer value indicating whether the use pressed the OK, or Cancel button. The returned value can be checked against the constants: IDEDialogs.OK_ID and IDEDialogs.CANCEL_ID.

show

int show(URISelectionDialog.Validator validator)
Shows the dialog.

Parameters:
validator - An implementation of the Validator interface that will be called to validate selected URIs.
Returns:
An integer value indicating whether the use pressed the OK, or Cancel button.

getResults

java.net.URI[] getResults()
Gets any dialog result parameters as an array of objects.

Returns:
URI[] An array of result URIs or an empty array

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

E13403-03

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