org.gnu.gtk
public class FileChooserDialog extends Dialog implements FileChooser
Deprecated: This class is part of the java-gnome 2.x family of libraries,
which, due to their inefficiency and complexity, are no longer
being maintained and have been abandoned by the java-gnome
project. This class may in the future have an equivalent in
java-gnome 4.0, try looking for
org.gnome.gtk.FileChooserDialog
.
You should be aware that there is a considerably different API
in the new library: the architecture is completely different
and most notably internals are no longer exposed to public view.
Constructor Summary | |
---|---|
FileChooserDialog(Handle handle) | |
FileChooserDialog(String title, Window parent, FileChooserAction action) |
Method Summary | |
---|---|
void | addFilter(FileFilter filter) |
void | addListener(FileChooserListener listener) |
void | addShortcutFolder(String folder) |
void | addShortcutURI(String uri) |
FileChooserAction | getAction() |
String | getCurrentFolder() |
String | getCurrentFolderURI() |
Widget | getExtraWidget() |
static FileChooserDialog | getFileChooserDialog(Handle handle)
Internal static factory method to be used by Java-Gnome only. |
String | getFilename() |
String[] | getFilenames() |
FileFilter | getFilter() |
boolean | getLocalOnly() |
String | getPreviewFilename() |
String | getPreviewURI() |
Widget | getPreviewWidget() |
boolean | getPreviewWidgetActive() |
boolean | getSelectMultiple() |
boolean | getShowHidden()
Sets whether hidden files and folders are displayed in the file selector.
|
String | getURI() |
String[] | getURIs() |
boolean | getUsePreviewLabel() |
FileFilter[] | listFilters() |
String[] | listShortcutFolders() |
String[] | listShortcutURIs() |
int | open()
Works similarly to run. |
void | removeFilter(FileFilter filter) |
void | removeListener(FileChooserListener listener) |
void | removeShortcutFolder(String folder) |
void | removeShortcutURI(String uri) |
void | selectAll() |
boolean | selectFilename(String filename) |
boolean | selectURI(String uri) |
void | setAction(FileChooserAction action) |
boolean | setCurrentFolder(String folder) |
boolean | setCurrentFolderURI(String folder) |
void | setCurrentName(String name) |
void | setExtraWidget(Widget extraWidget) |
boolean | setFilename(String filename) |
void | setFilter(FileFilter filter) |
void | setLocalOnly(boolean localOnly) |
void | setPreviewWidget(Widget previewWidget) |
void | setPreviewWidgetActive(boolean active) |
void | setSelectMultiple(boolean selectMultiple) |
void | setShowHidden(boolean hidden)
Sets whether hidden files and folders are displayed in the file selector.
|
boolean | setURI(String uri) |
void | setUsePreviewLabel(boolean useLabel) |
void | unselectAll() |
void | unselectFilename(String filename) |
void | unselectURI(String uri) |
Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Internal static factory method to be used by Java-Gnome only.Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Sets whether hidden files and folders are displayed in the file selector.Returns: true if hidden files and folders should be displayed.
Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Works similarly to run. The only difference is that it also adds the CANCEL and the OK buttons to the FileChooserDialog.Returns: The response that indicates which button the user pressed or NONE if the window was destroyed.
Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Sets whether hidden files and folders are displayed in the file selector.Parameters: hidden true if hidden files and folders should be displayed.