org.gnu.gnome

Class FileEntry

Known Direct Subclasses:
PixmapEntry

public class FileEntry
extends VBox

This widget provides an entry box with history and a button which can pop up a file selector dialog box. It also accepts DND drops from the filemanager and other sources.

Constructor Summary

FileEntry(Handle handle)
Construct a new FileEntry from a handle to a native resource.
FileEntry(String historyID, String browseDialogTitle)
Create a new FileEntry widget

Method Summary

Entry
getEntry()
Returns the Gnome Entry widget.
String
getFullPath(boolean fileMustExist)
Gets the full absolute path of the file from the entry.
boolean
getModal()
Returns if the browse dialog is modal.
static Type
getType()
Retrieve the runtime type used by the GLib library.
protected static boolean
gnome_file_entry_get_directory_entry(Handle fentry)
protected static String
gnome_file_entry_get_full_path(Handle fentry, boolean fileMustExist)
protected static boolean
gnome_file_entry_get_modal(Handle fentry)
protected static int
gnome_file_entry_get_type()
protected static Handle
gnome_file_entry_gnome_entry(Handle fentry)
protected static Handle
gnome_file_entry_gtk_entry(Handle fentry)
protected static Handle
gnome_file_entry_new(String historyId, String browseDialogTitle)
protected static void
gnome_file_entry_set_default_path(Handle fentry, String path)
protected static void
gnome_file_entry_set_directory_entry(Handle fentry, boolean directoryEntry)
protected static void
gnome_file_entry_set_filename(Handle fentry, String filename)
protected static void
gnome_file_entry_set_modal(Handle fentry, boolean isModal)
protected static void
gnome_file_entry_set_title(Handle fentry, String browseDialogTitle)
void
setDefaultPath(String path)
Sets the default path for the browse dialog.
void
setDirectorySelection(boolean directoryEntry)
Sets whether this is a directory only entry.
void
setModal(boolean isModal)
Sets the modality of the browse dialog.
void
setTitle(String browseDialogTitle)
Sets the title of the browse dialog.

Constructor Details

FileEntry

public FileEntry(Handle handle)
Construct a new FileEntry from a handle to a native resource.


FileEntry

public FileEntry(String historyID,
                 String browseDialogTitle)
Create a new FileEntry widget

Method Details

getEntry

public Entry getEntry()
Returns the Gnome Entry widget.


getFullPath

public String getFullPath(boolean fileMustExist)
Gets the full absolute path of the file from the entry.


getModal

public boolean getModal()
Returns if the browse dialog is modal.


getType

public static Type getType()
Retrieve the runtime type used by the GLib library.


gnome_file_entry_get_directory_entry

protected static final boolean gnome_file_entry_get_directory_entry(Handle fentry)


gnome_file_entry_get_full_path

protected static final String gnome_file_entry_get_full_path(Handle fentry,
                                                             boolean fileMustExist)


gnome_file_entry_get_modal

protected static final boolean gnome_file_entry_get_modal(Handle fentry)


gnome_file_entry_get_type

protected static final int gnome_file_entry_get_type()


gnome_file_entry_gnome_entry

protected static final Handle gnome_file_entry_gnome_entry(Handle fentry)


gnome_file_entry_gtk_entry

protected static final Handle gnome_file_entry_gtk_entry(Handle fentry)


gnome_file_entry_new

protected static final Handle gnome_file_entry_new(String historyId,
                                                   String browseDialogTitle)


gnome_file_entry_set_default_path

protected static final void gnome_file_entry_set_default_path(Handle fentry,
                                                              String path)


gnome_file_entry_set_directory_entry

protected static final void gnome_file_entry_set_directory_entry(Handle fentry,
                                                                 boolean directoryEntry)


gnome_file_entry_set_filename

protected static final void gnome_file_entry_set_filename(Handle fentry,
                                                          String filename)


gnome_file_entry_set_modal

protected static final void gnome_file_entry_set_modal(Handle fentry,
                                                       boolean isModal)


gnome_file_entry_set_title

protected static final void gnome_file_entry_set_title(Handle fentry,
                                                       String browseDialogTitle)


setDefaultPath

public void setDefaultPath(String path)
Sets the default path for the browse dialog.


setDirectorySelection

public void setDirectorySelection(boolean directoryEntry)
Sets whether this is a directory only entry.


setModal

public void setModal(boolean isModal)
Sets the modality of the browse dialog.


setTitle

public void setTitle(String browseDialogTitle)
Sets the title of the browse dialog.