org.gnome.gtk
Class FileChooserButton
java.lang.Object
org.freedesktop.bindings.Proxy
- FileChooser
public class FileChooserButton
Displays a filename and a Button which, if pressed, opens a
FileChooserDialog allowing the user to select the file.
This Widget implements the FileChooser interface, which has most of the
methods necessary to manipulate the selection in the Widget.
Note that FileChooserButton only supports selecting files (mode
OPEN
) or directories (mode
SELECT_FOLDER
). If you need
something more complicated, then you'll need to use wrap a
FileChooserWidget in a custom Widget or launch a FileChooserDialog.
FileChooserWidget
, FileChooserDialog
FileChooserButton
public FileChooserButton(String title,
FileChooserAction action)
Creates a new FileChooserButton. The selected file is unset, and will
appear as "(none)" in the display.
title
- a title for the FileChooserDialog when it is popped.action
- which style of FileChooser you want. Only
OPEN
(selecting a single
file), and
SELECT_FOLDER
,
(selecting a single directory) are enabled for
FileChooserButton.
connect
public void connect(SELECTION_CHANGED handler)
|  java-gnome |