Class MountOperation
- All Implemented Interfaces:
Proxy
GtkMountOperation is needed when mounting volumes:
It is an implementation of GMountOperation that can be used with
GIO functions for mounting volumes such as
File.mountEnclosingVolume(java.util.Set<org.gnome.gio.MountMountFlags>, org.gnome.gio.MountOperation, org.gnome.gio.Cancellable, org.gnome.gio.AsyncReadyCallback),
File.mountMountable(java.util.Set<org.gnome.gio.MountMountFlags>, org.gnome.gio.MountOperation, org.gnome.gio.Cancellable, org.gnome.gio.AsyncReadyCallback),
Volume.mount(java.util.Set<org.gnome.gio.MountMountFlags>, org.gnome.gio.MountOperation, org.gnome.gio.Cancellable, org.gnome.gio.AsyncReadyCallback),
Mount.unmountWithOperation(java.util.Set<org.gnome.gio.MountUnmountFlags>, org.gnome.gio.MountOperation, org.gnome.gio.Cancellable, org.gnome.gio.AsyncReadyCallback) and others.
When necessary, GtkMountOperation shows dialogs to let the user
enter passwords, ask questions or show processes blocking unmount.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classMountOperation.Builder<B extends MountOperation.Builder<B>>Inner class implementing a builder pattern to construct a GObject with properties.static classNested classes/interfaces inherited from class org.gnome.gio.MountOperation
MountOperation.AbortedCallback, MountOperation.AskPasswordCallback, MountOperation.AskQuestionCallback, MountOperation.ReplyCallback, MountOperation.ShowProcessesCallback, MountOperation.ShowUnmountProgressCallbackNested classes/interfaces inherited from class org.gnome.gobject.GObject
GObject.NotifyCallback, GObject.ObjectClass -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new MountOperation.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 MountOperationasParent()Returns this instance as if it were its parent type.static MountOperation.Builder<? extends MountOperation.Builder> builder()AMountOperation.Builderobject constructs aMountOperationwith the specified properties.Gets the display on which windows of theGtkMountOperationwill be shown.static MemoryLayoutThe memory layout of the native struct.@Nullable WindowGets the transient parent used by theGtkMountOperation.static @Nullable TypegetType()Get the GType of the MountOperation classbooleanReturns whether theGtkMountOperationis currently displaying a window.voidsetDisplay(Display display) Sets the display to show windows of theGtkMountOperationon.voidSets 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, showUnmountProgressMethods 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, 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, withPropertiesMethods inherited from class org.gnome.gobject.TypeInstance
callParent, callParent, cast, getPrivate, readGClass, writeGClassMethods inherited from class org.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()Creates a new MountOperation.
-
-
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 Javasuperkeyword, 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:
asParentin classMountOperation
-
getDisplay
Gets the display on which windows of theGtkMountOperationwill 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 theGtkMountOperationis currently displaying a window.- Returns:
trueif this MountOperation is currently displaying a window
-
setDisplay
Sets the display to show windows of theGtkMountOperationon.- Parameters:
display- aGdkDisplay
-
setParent
Sets the transient parent for windows shown by theGtkMountOperation.- Parameters:
parent- transient parent of the window
-
builder
AMountOperation.Builderobject constructs aMountOperationwith the specified properties. Use the variousset...()methods to set properties, and finish construction withMountOperation.Builder.build().- Returns:
- the builder object
-