Package com.palantir.ptoss.cinch.core
Enum Class ModelUpdates
- All Implemented Interfaces:
ModelUpdate
,Serializable
,Comparable<ModelUpdates>
,Constable
Pre-defined
ModelUpdate
types with special meanings to the framework.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThis is used to sync all listeners.You can use this to mean data, as opposed to meta-data.This can be used to separate data from meta-data.This is used for unspecified update types in the default implementations ofBindableModel
. -
Method Summary
Modifier and TypeMethodDescriptionstatic ModelUpdates
Returns the enum constant of this class with the specified name.static ModelUpdates[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNSPECIFIED
This is used for unspecified update types in the default implementations of
BindableModel
. Listeners that don't have a specified "on" parameter should react to these model updates.Note: when bound to a specific
ModelUpdate
, a control will not receive updates not sent specifically to anyModelUpdate
- i.e. default updates. To selectively answer a specificModelUpdate
and also still get default notifications, addUNSPECIFIED
to the list ofModelUpdate
s passed toBound.on()
.- See Also:
-
ALL
This is used to sync all listeners. All listeners, regardless of whether they have an "on" parameter, should react to these model updates. -
DATA
You can use this to mean data, as opposed to meta-data. No special meaning to the framework. -
META
This can be used to separate data from meta-data. No special meaning to the framework.
-
-
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
-