org.gnu.gnome

Class FileEntry

public class FileEntry extends VBox

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 have an equivalent in java-gnome 4.0; have a look for org.gnome.gnome.FileEntry.

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.

See Also: org.gnu.gtk.FileChooser

Constructor Summary
FileEntry(String historyID, String browseDialogTitle)
Create a new FileEntry widget
FileEntry(Handle handle)
Construct a new FileEntry from a handle to a native resource.
Method Summary
EntrygetEntry()
Returns the Gnome Entry widget.
StringgetFullPath(boolean fileMustExist)
Gets the full absolute path of the file from the entry.
booleangetModal()
Returns if the browse dialog is modal.
static TypegetType()
Retrieve the runtime type used by the GLib library.
voidsetDefaultPath(String path)
Sets the default path for the browse dialog.
voidsetDirectorySelection(boolean directoryEntry)
Sets whether this is a directory only entry.
voidsetModal(boolean isModal)
Sets the modality of the browse dialog.
voidsetTitle(String browseDialogTitle)
Sets the title of the browse dialog.

Constructor Detail

FileEntry

public FileEntry(String historyID, String browseDialogTitle)

Deprecated: Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.

Create a new FileEntry widget

FileEntry

public FileEntry(Handle handle)

Deprecated: Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.

Construct a new FileEntry from a handle to a native resource.

Method Detail

getEntry

public Entry getEntry()

Deprecated: Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.

Returns the Gnome Entry widget.

getFullPath

public String getFullPath(boolean fileMustExist)

Deprecated: Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.

Gets the full absolute path of the file from the entry.

getModal

public boolean getModal()

Deprecated: Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.

Returns if the browse dialog is modal.

getType

public static Type getType()

Deprecated: Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.

Retrieve the runtime type used by the GLib library.

setDefaultPath

public void setDefaultPath(String path)

Deprecated: Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.

Sets the default path for the browse dialog.

setDirectorySelection

public void setDirectorySelection(boolean directoryEntry)

Deprecated: Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.

Sets whether this is a directory only entry.

setModal

public void setModal(boolean isModal)

Deprecated: Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.

Sets the modality of the browse dialog.

setTitle

public void setTitle(String browseDialogTitle)

Deprecated: Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.

Sets the title of the browse dialog.