org.gnu.gtk
public class FileChooserButton extends HBox implements FileChooser
Constructor Summary | |
---|---|
FileChooserButton(Handle handle)
Construct a button using a handle to a native resource. | |
FileChooserButton(String title, FileChooserAction action)
Create a new FileChooserButton
| |
FileChooserButton(String title, FileChooserAction action, String backend)
Create a new FileChooserButton specifying the backend
| |
FileChooserButton(FileChooserDialog dialog)
Create a new FileChooserButton which uses the specified dialog as its'
file picking window.
|
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 FileChooserButton | getFileChooserButton(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 | getTitle()
Returns the title of the browse dialog. |
String | getURI() |
String[] | getURIs() |
boolean | getUsePreviewLabel() |
int | getWidthChars()
Retrieves the width in characters of the button widget's entry and/or
label. |
FileFilter[] | listFilters() |
String[] | listShortcutFolders() |
String[] | listShortcutURIs() |
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.
|
void | setTitle(String title)
Modifies the title of the browse dialog. |
boolean | setURI(String uri) |
void | setUsePreviewLabel(boolean useLabel) |
void | setWidthChars(int numChars)
Sets the width in characters that the button's label will use. |
void | unselectAll() |
void | unselectFilename(String filename) |
void | unselectURI(String uri) |
Parameters: title the title of the browse dialog action the open mode for the dialog
Parameters: title the title of the browse dialog action the open mode for the dialog backend the name of the FileSystem backend to use
Parameters: dialog
Returns: true if hidden files and folders should be displayed.
Parameters: hidden true if hidden files and folders should be displayed.