org.gnu.gtk
public class FileSelection extends Dialog
Constructor Summary | |
---|---|
FileSelection(String title)
construct a new FileSelection dialog.
| |
FileSelection(Handle handle)
Construct a FileSelection using a handle to a native resource. |
Method Summary | |
---|---|
void | complete(String pattern)
Will attempt to match pattern to a valid filename or
subdirectory in the current directory. |
Button | getCancelButton()
Return the Cancel Button widget for this dialog.
|
Widget | getDirList()
Return the directory list for this widget
|
Widget | getFileList()
Returns the the file list for this widget
|
String | getFilename()
Returns the selected filename.
|
static FileSelection | getFileSelection(Handle handle)
Internal static factory method to be used by Java-Gnome only. |
Button | getHelpButton()
Return the Help Button widget for this dialog.
|
Button | getOKButton()
Return the OK Button widget for this Dialog.
|
Widget | getSelectionEntry()
Returns the selection entry
|
String[] | getSelections()
Retrieves the list of file selections the user has made in the dialog
box. |
boolean | getSelectMultiple()
Determines whether or not the user is allowed to select multiple files in
the file list.
|
static Type | getType()
Retrieve the runtime type used by the GLib library. |
void | hideFileopButtons()
Hides the file operation buttons that normally appear at the top of the
dialog. |
void | setFilename(String filename)
Sets the default path for the file requestor. |
void | setSelectMultiple(boolean selectMultiple)
Sets whether the user is allowed to select multiple files in the file
list. |
void | showFileopButtons()
Shows the file operation buttons, if they have previously been hidden.
|
Parameters: title The string that is displayed in the title bar of the dialog.
pattern
to a valid filename or
subdirectory in the current directory. If a match can be made the matched
filename will appear in the text entry field in the file selection
dialog. If a partial match can be made the "Files" list will contain
those file names which have been partially matched and the "Directories"
list will list those directories which have been partially matched.
Parameters: pattern The pattern to use for matching.
Returns: The Cancel Button.
Returns: The Directory List
Returns: The File List
Returns: The file that is selected in the dialog.
Returns: The Help Button.
Returns: The OK Button.
Returns: selection entry
See Also: FileSelection
Parameters: filename The default path for the widget.