Package org.gnome.gtk
Class FileChooserNative.Builder<B extends FileChooserNative.Builder<B>>
java.lang.Object
io.github.jwharm.javagi.gobject.Builder<B>
org.gnome.gobject.GObject.Builder<B>
org.gnome.gtk.NativeDialog.Builder<B>
org.gnome.gtk.FileChooserNative.Builder<B>
- Type Parameters:
B
- the type of the Builder that is returned
- All Implemented Interfaces:
BuilderInterface
,FileChooser.Builder<B>
- Enclosing class:
FileChooserNative
public static class FileChooserNative.Builder<B extends FileChooserNative.Builder<B>>
extends NativeDialog.Builder<B>
implements FileChooser.Builder<B>
Inner class implementing a builder pattern to construct a GObject with
properties.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Finish building theFileChooserNative
object.setAcceptLabel
(String acceptLabel) The text used for the label on the accept button in the dialog, ornull
to use the default text.setCancelLabel
(String cancelLabel) The text used for the label on the cancel button in the dialog, ornull
to use the default text.Methods inherited from class org.gnome.gtk.NativeDialog.Builder
onResponse, setModal, setTitle, setTransientFor, setVisible
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 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 theFileChooserNative
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 toFileChooserNative
.- Overrides:
build
in classNativeDialog.Builder<B extends FileChooserNative.Builder<B>>
- Returns:
- a new instance of
FileChooserNative
with the properties that were set in the Builder object.
-
setAcceptLabel
-
setCancelLabel
-