Package org.gnome.gio
Enum Class FileMonitorEvent
- All Implemented Interfaces:
Enumeration
,Serializable
,Comparable<FileMonitorEvent>
,Constable
@Generated("io.github.jwharm.JavaGI")
public enum FileMonitorEvent
extends Enum<FileMonitorEvent>
implements Enumeration
Specifies what type of event a monitor event is.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptiona file attribute was changed.a file changed.a hint that this was probably the last change in a set of changes.a file was created.a file was deleted.the file was moved -- only sent if the (deprecated)FileMonitorFlags.SEND_MOVED
flag is setthe file was moved into the monitored directory from another location -- only sent if theFileMonitorFlags.WATCH_MOVES
flag is set.the file was moved out of the monitored directory to another location -- only sent if theFileMonitorFlags.WATCH_MOVES
flag is set.the file location will soon be unmounted.the file was renamed within the current directory -- only sent if theFileMonitorFlags.WATCH_MOVES
flag is set.the file location was unmounted. -
Method Summary
Modifier and TypeMethodDescriptionstatic Type
getType()
Get the GType of the FileMonitorEvent classint
getValue()
Get the numeric value of this enumstatic FileMonitorEvent
of
(int value) Create a new FileMonitorEvent for the provided valuestatic FileMonitorEvent
Returns the enum constant of this class with the specified name.static FileMonitorEvent[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CHANGED
a file changed. -
CHANGES_DONE_HINT
a hint that this was probably the last change in a set of changes. -
DELETED
a file was deleted. -
CREATED
a file was created. -
ATTRIBUTE_CHANGED
a file attribute was changed. -
PRE_UNMOUNT
the file location will soon be unmounted. -
UNMOUNTED
the file location was unmounted. -
MOVED
the file was moved -- only sent if the (deprecated)FileMonitorFlags.SEND_MOVED
flag is set -
RENAMED
the file was renamed within the current directory -- only sent if theFileMonitorFlags.WATCH_MOVES
flag is set. Since: 2.46. -
MOVED_IN
the file was moved into the monitored directory from another location -- only sent if theFileMonitorFlags.WATCH_MOVES
flag is set. Since: 2.46. -
MOVED_OUT
the file was moved out of the monitored directory to another location -- only sent if theFileMonitorFlags.WATCH_MOVES
flag is set. Since: 2.46
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
of
Create a new FileMonitorEvent for the provided value- Parameters:
value
- the enum value- Returns:
- the enum for the provided value
-
getValue
public int getValue()Get the numeric value of this enum- Specified by:
getValue
in interfaceEnumeration
- Returns:
- the enum value
-
getType
-