Package org.gnome.gtk
Class MountOperation
java.lang.Object
io.github.jwharm.javagi.base.ProxyInstance
org.gnome.gobject.TypeInstance
org.gnome.gobject.GObject
org.gnome.gio.MountOperation
org.gnome.gtk.MountOperation
- All Implemented Interfaces:
Proxy
GtkMountOperation
is an implementation of GMountOperation
.
The functions and objects described here make working with GTK and GIO more convenient.
GtkMountOperation
is needed when mounting volumes:
It is an implementation of GMountOperation
that can be used with
GIO functions for mounting volumes such as
g_file_mount_enclosing_volume(), g_file_mount_mountable(),
g_volume_mount(), g_mount_unmount_with_operation() and others.
When necessary, GtkMountOperation
shows dialogs to let the user
enter passwords, ask questions or show processes blocking unmount.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
MountOperation.Builder<B extends MountOperation.Builder<B>>
Inner class implementing a builder pattern to construct a GObject with properties.static class
Nested classes/interfaces inherited from class org.gnome.gio.MountOperation
MountOperation.AbortedCallback, MountOperation.AskPasswordCallback, MountOperation.AskQuestionCallback, MountOperation.ReplyCallback, MountOperation.ShowProcessesCallback, MountOperation.ShowUnmountProgressCallback
Nested classes/interfaces inherited from class org.gnome.gobject.GObject
GObject.NotifyCallback, GObject.ObjectClass
-
Constructor Summary
ConstructorDescriptionCallsMountOperation(org.gnome.gtk.Window)
with parent =null
MountOperation
(MemorySegment address) Create a MountOperation proxy instance for the provided memory address.MountOperation
(@Nullable Window parent) Creates a newGtkMountOperation
. -
Method Summary
Modifier and TypeMethodDescriptionprotected MountOperation
asParent()
Returns this instance as if it were its parent type.static MountOperation.Builder
<? extends MountOperation.Builder> builder()
AMountOperation.Builder
object constructs aMountOperation
with the specified properties.Gets the display on which windows of theGtkMountOperation
will be shown.static MemoryLayout
The memory layout of the native struct.Gets the transient parent used by theGtkMountOperation
.static Type
getType()
Get the GType of the MountOperation classboolean
Returns whether theGtkMountOperation
is currently displaying a window.void
setDisplay
(Display display) Sets the display to show windows of theGtkMountOperation
on.void
Sets the transient parent for windows shown by theGtkMountOperation
.Methods inherited from class org.gnome.gio.MountOperation
aborted, askPassword, askQuestion, emitAborted, emitAskPassword, emitAskQuestion, emitReply, emitShowProcesses, emitShowUnmountProgress, getAnonymous, getChoice, getDomain, getIsTcryptHiddenVolume, getIsTcryptSystemVolume, getPassword, getPasswordSave, getPim, getUsername, onAborted, onAskPassword, onAskQuestion, onReply, onShowProcesses, onShowUnmountProgress, reply, setAnonymous, setChoice, setDomain, setIsTcryptHiddenVolume, setIsTcryptSystemVolume, setPassword, setPasswordSave, setPim, setUsername, showProcesses, showUnmountProgress
Methods inherited from class org.gnome.gobject.GObject
addToggleRef, addWeakPointer, bindProperty, bindProperty, bindProperty, bindPropertyFull, bindPropertyFull, bindPropertyWithClosures, bindPropertyWithClosures, compatControl, connect, connect, connect, constructed, disconnect, dispatchPropertiesChanged, dispose, dupData, dupQdata, emit, emitNotify, finalize_, forceFloating, freezeNotify, get, getData, getProperty, getProperty, getProperty, getQdata, getv, interfaceFindProperty, interfaceInstallProperty, interfaceListProperties, isFloating, newInstance, newInstance, newInstance, newInstance, newv, notify_, notify_, notifyByPspec, onNotify, ref, refSink, removeToggleRef, removeWeakPointer, replaceData, replaceQdata, runDispose, set, setData, setDataFull, setProperty, setProperty, setProperty, setQdata, setQdataFull, setv, stealData, stealQdata, takeRef, thawNotify, unref, watchClosure, weakRef, weakUnref, withProperties
Methods inherited from class org.gnome.gobject.TypeInstance
callParent, callParent, getPrivate, readGClass, writeGClass
Methods inherited from class io.github.jwharm.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
MountOperation
Create a MountOperation proxy instance for the provided memory address.- Parameters:
address
- the memory address of the native object
-
MountOperation
Creates a newGtkMountOperation
.- Parameters:
parent
- transient parent of the window
-
MountOperation
public MountOperation()CallsMountOperation(org.gnome.gtk.Window)
with parent =null
-
-
Method Details
-
getType
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
asParent
Returns this instance as if it were its parent type. This is mostly synonymous to the Javasuper
keyword, but will set the native typeclass function pointers to the parent type. When overriding a native virtual method in Java, "chaining up" withsuper.methodName()
doesn't work, because it invokes the overridden function pointer again. To chain up, callasParent().methodName()
. This will call the native function pointer of this virtual method in the typeclass of the parent type.- Overrides:
asParent
in classMountOperation
-
getDisplay
Gets the display on which windows of theGtkMountOperation
will be shown.- Returns:
- the display on which windows of this MountOperation are shown
-
getParent
Gets the transient parent used by theGtkMountOperation
.- Returns:
- the transient parent for windows shown by this MountOperation
-
isShowing
public boolean isShowing()Returns whether theGtkMountOperation
is currently displaying a window.- Returns:
true
if this MountOperation is currently displaying a window
-
setDisplay
Sets the display to show windows of theGtkMountOperation
on.- Parameters:
display
- aGdkDisplay
-
setParent
Sets the transient parent for windows shown by theGtkMountOperation
.- Parameters:
parent
- transient parent of the window
-
builder
AMountOperation.Builder
object constructs aMountOperation
with the specified properties. Use the variousset...()
methods to set properties, and finish construction withMountOperation.Builder.build()
.
-