org.gnu.gnome
Class FileEntry

java.lang.Object
  |
  +--org.gnu.glib.GObject
        |
        +--org.gnu.gtk.GtkObject
              |
              +--org.gnu.gtk.Widget
                    |
                    +--org.gnu.gtk.Container
                          |
                          +--org.gnu.gtk.Box
                                |
                                +--org.gnu.gtk.VBox
                                      |
                                      +--org.gnu.gnome.FileEntry
Direct Known 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(int handle)
          Construct a new FileEntry from a handle to a native resource.
FileEntry(java.lang.String historyID, java.lang.String browseDialogTitle)
          Create a new FileEntry widget
 
Method Summary
 Entry getEntry()
          Returns the Gnome Entry widget.
 java.lang.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.
 void setDefaultPath(java.lang.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(java.lang.String browseDialogTitle)
          Sets the title of the browse dialog.
 
Methods inherited from class org.gnu.gtk.Box
getHomogeneous, getSpacing, packEnd, packEnd, packStart, packStart, reorderChild, setHomogeneous, setSpacing
 
Methods inherited from class org.gnu.gtk.Container
add, addListener, getBorderWidth, getEventListenerClass, getEventType, getResizeMode, remove, removeListener, resizeChildren, setBorderWidth, setResizeMode
 
Methods inherited from class org.gnu.gtk.Widget
activate, addListener, addListener, addListener, addListener, addListener, addListener, createContext, createLayout, destroy, draw, drawArea, drawArea, getAccessible, getColormap, getContext, getModifierStyle, getName, getParent, getParentWindow, getPointer, getSensitive, getStyle, getToplevel, grabDefault, grabFocus, hasFocus, hide, hideAll, intersect, isAncestor, makeWidget, modifyStyle, popColormap, pushColormap, realize, removeListener, removeListener, removeListener, removeListener, removeListener, removeListener, reparent, setBackgroundColor, setBaseColor, setColormap, setDoubleBuffered, setDragDestination, setDragSource, setFont, setForegroundColor, setMinimumSize, setName, setNoDragDestination, setNoDragSource, setSensitive, setTextColor, shapeCombineMask, show, showAll
 
Methods inherited from class org.gnu.glib.GObject
addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, equals, getData, getHandle, removeEventHandler, setData
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileEntry

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


FileEntry

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

Method Detail

getEntry

public Entry getEntry()
Returns the Gnome Entry widget.


setTitle

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


setDefaultPath

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


setDirectorySelection

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


getFullPath

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


setModal

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


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.


Please send any bug reports, comments, or suggestions for the API or documentation to java-gnome-developer@lists.sf.net