Package org.gnome.gtk
Class FileChooserNative.Builder<B extends FileChooserNative.Builder<B>>
java.lang.Object
org.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:
FileChooser.Builder<B>,BuilderInterface
- 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Finish building theFileChooserNativeobject.setAcceptLabel(String acceptLabel) The text used for the label on the accept button in the dialog, ornullto use the default text.setCancelLabel(String cancelLabel) The text used for the label on the cancel button in the dialog, ornullto use the default text.Methods inherited from class org.gnome.gtk.NativeDialog.Builder
onResponse, setModal, setTitle, setTransientFor, setVisibleMethods inherited from class org.gnome.gobject.GObject.Builder
onNotifyMethods inherited from class org.javagi.gobject.Builder
addBuilderProperty, connect, connect, connectSignals, getArena, getNames, getValuesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.javagi.gobject.BuilderInterface
addBuilderProperty, connect, connect, getArenaMethods inherited from interface org.gnome.gtk.FileChooser.Builder
setAction, setCreateFolders, setFilter, setSelectMultiple
-
Constructor Details
-
Builder
protected Builder()Default constructor for aBuilderobject.
-
-
Method Details
-
build
Finish building theFileChooserNativeobject. 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:
buildin classNativeDialog.Builder<B extends FileChooserNative.Builder<B>>- Returns:
- a new instance of
FileChooserNativewith the properties that were set in the Builder object.
-
setAcceptLabel
-
setCancelLabel
-