Class FileChooserWidget.Builder<B extends FileChooserWidget.Builder<B>>
- Type Parameters:
B
- the type of the Builder that is returned
- All Implemented Interfaces:
BuilderInterface
,Accessible.Builder<B>
,FileChooser.Builder<B>
- Enclosing class:
FileChooserWidget
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Finish building theFileChooserWidget
object.Emitted when the user asks for it.Emitted when the user asks for it.Emitted when the user asks for it.Emitted when the user asks for it.Emitted when the user asks for it.Emitted when the user asks for it.Emitted when the user asks for it.Emitted when the user asks for it.Emitted when the user asks for it.Emitted when the user asks for it.Emitted when the user asks for it.Emitted when the user asks for it.setSearchMode
(boolean searchMode) Whether search mode is enabled.Methods inherited from class org.gnome.gtk.Widget.Builder
onDestroy, onDirectionChanged, onHide, onKeynavFailed, onMap, onMnemonicActivate, onMoveFocus, onQueryTooltip, onRealize, onShow, onStateFlagsChanged, onUnmap, onUnrealize, setCanFocus, setCanTarget, setCssClasses, setCssName, setCursor, setFocusable, setFocusOnClick, setHalign, setHasTooltip, setHeightRequest, setHexpand, setHexpandSet, setLayoutManager, setMarginBottom, setMarginEnd, setMarginStart, setMarginTop, setName, setOpacity, setOverflow, setReceivesDefault, setSensitive, setTooltipMarkup, setTooltipText, setValign, setVexpand, setVexpandSet, setVisible, setWidthRequest
Methods inherited from class org.gnome.gobject.GObject.Builder
onNotify
Methods inherited from class io.github.jwharm.javagi.gobject.Builder
addBuilderProperty, connect, connect, connectSignals, getArena, getNames, getValues
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.gnome.gtk.Accessible.Builder
setAccessibleRole
Methods inherited from interface io.github.jwharm.javagi.gobject.BuilderInterface
addBuilderProperty, connect, connect, getArena
Methods inherited from interface org.gnome.gtk.FileChooser.Builder
setAction, setCreateFolders, setFilter, setSelectMultiple
-
Constructor Details
-
Builder
protected Builder()Default constructor for aBuilder
object.
-
-
Method Details
-
build
Finish building theFileChooserWidget
object. This will callGObject.withProperties(org.gnome.glib.Type, java.lang.String[], org.gnome.gobject.Value[])
to create a new GObject instance, which is then cast toFileChooserWidget
.- Overrides:
build
in classWidget.Builder<B extends FileChooserWidget.Builder<B>>
- Returns:
- a new instance of
FileChooserWidget
with the properties that were set in the Builder object.
-
setSearchMode
Whether search mode is enabled.- Parameters:
searchMode
- the value for thesearch-mode
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
onDesktopFolder
Emitted when the user asks for it.This is a keybinding signal.
This is used to make the file chooser show the user's Desktop folder in the file list.
The default binding for this signal is
Alt
-D
.- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance is returned, to allow method chaining - See Also:
-
onDownFolder
Emitted when the user asks for it.This is a keybinding signal.
This is used to make the file chooser go to a child of the current folder in the file hierarchy. The subfolder that will be used is displayed in the path bar widget of the file chooser. For example, if the path bar is showing "/foo/bar/baz", with bar currently displayed, then this will cause the file chooser to switch to the "baz" subfolder.
The default binding for this signal is
Alt
-Down
.- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance is returned, to allow method chaining - See Also:
-
onHomeFolder
Emitted when the user asks for it.This is a keybinding signal.
This is used to make the file chooser show the user's home folder in the file list.
The default binding for this signal is
Alt
-Home
.- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance is returned, to allow method chaining - See Also:
-
onLocationPopup
Emitted when the user asks for it.This is a keybinding signal.
This is used to make the file chooser show a "Location" prompt which the user can use to manually type the name of the file he wishes to select.
The default bindings for this signal are
Control
-L
with apath
string of "" (the empty string). It is also bound to/
with apath
string of "/
" (a slash): this lets you type/
and immediately type a path name. On Unix systems, this is bound to~
(tilde) with apath
string of "~" itself for access to home directories.- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance is returned, to allow method chaining - See Also:
-
onLocationPopupOnPaste
Emitted when the user asks for it.This is a keybinding signal.
This is used to make the file chooser show a "Location" prompt when the user pastes into a
GtkFileChooserWidget
.The default binding for this signal is
Control
-V
.- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance is returned, to allow method chaining - See Also:
-
onLocationTogglePopup
Emitted when the user asks for it.This is a keybinding signal.
This is used to toggle the visibility of a "Location" prompt which the user can use to manually type the name of the file he wishes to select.
The default binding for this signal is
Control
-L
.- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance is returned, to allow method chaining - See Also:
-
onPlacesShortcut
Emitted when the user asks for it.This is a keybinding signal.
This is used to move the focus to the places sidebar.
The default binding for this signal is
Alt
-P
.- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance is returned, to allow method chaining - See Also:
-
onQuickBookmark
Emitted when the user asks for it.This is a keybinding signal.
This is used to make the file chooser switch to the bookmark specified in the
bookmarkIndex
parameter. For example, if you have three bookmarks, you can pass 0, 1, 2 to this signal to switch to each of them, respectively.The default binding for this signal is
Alt
-1
,Alt
-2
, etc. untilAlt
-0
. Note that in the default binding, thatAlt
-1
is actually defined to switch to the bookmark at index 0, and so on successively.- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance is returned, to allow method chaining - See Also:
-
onRecentShortcut
Emitted when the user asks for it.This is a keybinding signal.
This is used to make the file chooser show the Recent location.
The default binding for this signal is
Alt
-R
.- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance is returned, to allow method chaining - See Also:
-
onSearchShortcut
Emitted when the user asks for it.This is a keybinding signal.
This is used to make the file chooser show the search entry.
The default binding for this signal is
Alt
-S
.- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance is returned, to allow method chaining - See Also:
-
onShowHidden
Emitted when the user asks for it.This is a keybinding signal.
This is used to make the file chooser display hidden files.
The default binding for this signal is
Control
-H
.- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance is returned, to allow method chaining - See Also:
-
onUpFolder
Emitted when the user asks for it.This is a keybinding signal.
This is used to make the file chooser go to the parent of the current folder in the file hierarchy.
The default binding for this signal is
Alt
-Up
.- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance is returned, to allow method chaining - See Also:
-