Package org.gnome.gio
Class VolumeMonitor.Builder<B extends VolumeMonitor.Builder<B>>
java.lang.Object
io.github.jwharm.javagi.gobject.Builder<B>
org.gnome.gobject.GObject.Builder<B>
org.gnome.gio.VolumeMonitor.Builder<B>
- Type Parameters:
B
- the type of the Builder that is returned
- All Implemented Interfaces:
BuilderInterface
- Direct Known Subclasses:
NativeVolumeMonitor.Builder
- Enclosing class:
VolumeMonitor
public static class VolumeMonitor.Builder<B extends VolumeMonitor.Builder<B>>
extends GObject.Builder<B>
Inner class implementing a builder pattern to construct a GObject with
properties.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Finish building theVolumeMonitor
object.Emitted when a drive changes.Emitted when a drive is connected to the system.Emitted when a drive is disconnected from the system.Emitted when the eject button is pressed ondrive
.Emitted when the stop button is pressed ondrive
.Emitted when a mount is added.Emitted when a mount changes.May be emitted when a mount is about to be removed.Emitted when a mount is removed.Emitted when a mountable volume is added to the system.Emitted when mountable volume is changed.Emitted when a mountable volume is removed from the system.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
-
Constructor Details
-
Builder
protected Builder()Default constructor for aBuilder
object.
-
-
Method Details
-
build
Finish building theVolumeMonitor
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 toVolumeMonitor
.- Overrides:
build
in classGObject.Builder<B extends VolumeMonitor.Builder<B>>
- Returns:
- a new instance of
VolumeMonitor
with the properties that were set in the Builder object.
-
onDriveChanged
Emitted when a drive changes.- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance is returned, to allow method chaining - See Also:
-
onDriveConnected
Emitted when a drive is connected to the system.- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance is returned, to allow method chaining - See Also:
-
onDriveDisconnected
Emitted when a drive is disconnected from the system.- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance is returned, to allow method chaining - See Also:
-
onDriveEjectButton
Emitted when the eject button is pressed ondrive
.- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance is returned, to allow method chaining - See Also:
-
onDriveStopButton
Emitted when the stop button is pressed ondrive
.- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance is returned, to allow method chaining - See Also:
-
onMountAdded
Emitted when a mount is added.- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance is returned, to allow method chaining - See Also:
-
onMountChanged
Emitted when a mount changes.- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance is returned, to allow method chaining - See Also:
-
onMountPreUnmount
May be emitted when a mount is about to be removed.This signal depends on the backend and is only emitted if GIO was used to unmount.
- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance is returned, to allow method chaining - See Also:
-
onMountRemoved
Emitted when a mount is removed.- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance is returned, to allow method chaining - See Also:
-
onVolumeAdded
Emitted when a mountable volume is added to the system.- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance is returned, to allow method chaining - See Also:
-
onVolumeChanged
Emitted when mountable volume is changed.- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance is returned, to allow method chaining - See Also:
-
onVolumeRemoved
Emitted when a mountable volume is removed from the system.- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance is returned, to allow method chaining - See Also:
-