- java.lang.Object
-
- java.lang.Enum<ListenerNotification>
-
- io.github.stasgora.observetree.enums.ListenerNotification
-
- All Implemented Interfaces:
Serializable
,Comparable<ListenerNotification>
,Constable
public enum ListenerNotification extends Enum<ListenerNotification>
Observable listener notification method- Author:
- Stanisław Góra
- See Also:
ChangeListener
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AUTOMATIC
Immediately after aObservable.onValueChanged()
was calledMANUAL
Manually, throughObservable.notifyListeners()
(useful for complex multistage changes)
-
Method Summary
Modifier and Type Method Description static ListenerNotification
valueOf(String name)
Returns the enum constant of this type with the specified name.static ListenerNotification[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MANUAL
public static final ListenerNotification MANUAL
Manually, throughObservable.notifyListeners()
(useful for complex multistage changes)
-
AUTOMATIC
public static final ListenerNotification AUTOMATIC
Immediately after aObservable.onValueChanged()
was called
-
-
Method Detail
-
values
public static ListenerNotification[] values()
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ListenerNotification valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
-